search menu icon-carat-right cmu-wordmark

CERT Coordination Center


Microsoft SQL Server 2000 contains heap buffer overflow in SQL Server Resolution Service

Vulnerability Note VU#399260

Original Release Date: 2002-07-26 | Last Revised: 2003-02-05

Overview

Microsoft SQL Server 2000 contains a remotely exploitable heap buffer overflow that allows attackers to execute arbitrary code with the same privileges as the SQL server.

Description

The SQL Server Resolution Service (SSRS) was introduced in Microsoft SQL Server 2000 to provide referral services for multiple server instances running on the same machine. The service listens for requests on UDP port 1434 and returns the IP address and port number of the SQL server instance that provides access to the requested database.

The SSRS contains a heap buffer overflow that allows an attacker to execute arbitrary code by sending a crafted request to port 1434/udp. The code within such a request will be executed by the server host with the privileges of the SQL Server service account.

Impact

This vulnerability allows unauthenticated remote attackers to execute arbitrary code with the privileges of the SQL service account. If the privileges of the service account are elevated via VU#796313, this vulnerability may result in compromise of the server host.

Solution

Apply a patch

This vulnerability was originally addressed by Microsoft in Security Bulletin MS02-039. In January 2003, Microsoft updated MS02-039 to recommend that customers apply the patch from Microsoft Security Bulletin MS02-061, which addresses additional vulnerabilities. For more information, please see

    http://www.microsoft.com/technet/security/bulletin/MS02-039.asp
    http://www.microsoft.com/technet/security/bulletin/MS02-061.asp

    This vulnerability also affects any products that include the Microsoft Desktop Engine (MSDE) 2000. For more information, please see

    http://www.microsoft.com/technet/security/MSDEapps.asp

    Block port 1434/udp


    As a workaround, system administrators can use a firewall to block port 1434/udp at an appropriate network border, thus preventing external attackers from exploiting this vulnerability.

    Vendor Information

    399260
    Expand all

    Cisco Systems Inc.

    Notified:  January 26, 2003 Updated:  January 27, 2003

    Status

      Vulnerable

    Vendor Statement

    No statement is currently available from the vendor regarding this vulnerability.

    Vendor Information

    The vendor has not provided us with any further information regarding this vulnerability.

    Addendum

    Cisco Systems has published an Cisco Security Advisory to address this issue. For more information, please see:

    Microsoft Corporation

    Notified:  July 25, 2002 Updated:  July 25, 2002

    Status

      Vulnerable

    Vendor Statement

    No statement is currently available from the vendor regarding this vulnerability.

    Vendor Information

    The vendor has not provided us with any further information regarding this vulnerability.

    Addendum

    Microsoft has published Security Bulletin MS02-039 to address this vulnerability. For more information, please see


    CVSS Metrics

    Group Score Vector
    Base N/A N/A
    Temporal N/A N/A
    Environmental N/A

    References

    Credit

    The CERT/CC thanks Microsoft for the information provided in their advisory and NGSSoftware for their discovery and analysis of this vulnerability.

    This document was written by Jeffrey P. Lanza.

    Other Information

    CVE IDs: CVE-2002-0649
    CERT Advisory: CA-2002-22
    Severity Metric: 43.28
    Date Public: 2002-07-24
    Date First Published: 2002-07-26
    Date Last Updated: 2003-02-05 16:19 UTC
    Document Revision: 43

    Sponsored by the Department of Homeland Security Office of Cybersecurity and Communications.