Description
Multiple buffer overflows in the Resolution Service for Microsoft SQL Server 2000 and Microsoft Desktop Engine 2000 (MSDE) allow remote attackers to cause a denial of service or execute arbitrary code via UDP packets to port 1434 in which (1) a 0x04 byte that causes the SQL Monitor thread to generate a long registry key name, or (2) a 0x08 byte with a long string causes heap corruption, as exploited by the Slammer/Sapphire worm.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
MS02-039 Microsoft SQL Server Resolution Overflow
exploit/windows/mssql/ms02_039_slammer
Exploit-DB 2
- Microsoft SQL Server - Resolution Overflow (MS02-039) (Metasploit) EDB-16393 · remote · Apr 30, 2010 · verified
- Microsoft SQL Server 2000 - Resolution Service Heap Overflow EDB-21652 · remote · Jul 25, 2002 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 20030126 RE: MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- 20030125 Sapphire SQL Worm Analysis Complete mailing-list
- oval:org.mitre.oval:def:1077 vdb-entry signature
- CA-2002-22 third-party-advisory
- VU#484891 third-party-advisory
- VU#399260 third-party-advisory
- 20020725 Microsoft SQL Server 2000 Unauthenticated System Compromise (#NISR25072002) mailing-list
- 7945 third-party-advisory
- 20030128 Re: MSDE contained in... mailing-list
- 20030125 Re: MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- 20030125 SQL Sapphire Worm Analysis mailing-list
- 20030125 MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- 20030125 Fw: MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- 20030128 RE: MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- 20030129 Re: MSDE contained in... mailing-list
- MS02-039 vendor-advisory
- 20030126 Tool: Sapphire SQL Worm Scanner mailing-list
- 20020725 Microsoft SQL Server 2000 Unauthenticated System Compromise (#NISR25072002) mailing-list
- 20030125 RE: MS SQL WORM IS DESTROYING INTERNET BLOCK PORT 1434! mailing-list
- CA-2003-04 third-party-advisory
- 5310 vdb-entry
- 20030130 RE: MSDE contained in... mailing-list
- 20030201 The Spread of the Sapphire/Slammer SQL Worm mailing-list