SQL Server 2000 Vulnerable to Buffer Overflow

SQL Server 2000 is vulnerable to multiple buffer overflows that can result in arbitrary commands being executed.

Steve Manzuik

November 30, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Reported December 1, 2000 by @Stake

VERSIONS AFFECTED

DESCRIPTIONMultiple vulnerabilities have been discovered in Microsoft SQL Server 2000. The vulnerabilities let an attacker run arbitrary code on the SQL Server system in the context of a local administrator. Several extended stored procedures exist within SQL Server 2000 that are vulnerable to buffer overflow attacks.

DEMONSTRATION

The following extended stored procedures are found to be vulnerable, xp_peekqueue (xpqueue.dll), and xp_printstatements (xprepl.dll).

The following query will return a directory tree of C:WinNT;

exec xp_dirtree C:winnt

If a malicious user was to pass extremely long strings in place of various parameters the buffer overflow will occure.

VENDOR RESPONSE

Microsoft has issued a security bulletin, MS00-092 and is available at;

http://support.microsoft.com/support/sql/xp_security.asp

CREDITDiscovered by @Stake

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like