1. /
  2. Security Response/
  3. Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability

Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability

Risk

High

Date Discovered

December 9, 2008

Description

Microsoft SQL Server is prone to a remote memory-corruption vulnerability because it fails to properly handle user-supplied input. Authenticated attackers can exploit this issue to execute arbitrary code and completely compromise affected computers. Failed attacks will likely cause denial-of-service conditions. The issue affects the following: Microsoft SQL Server 2000 Microsoft SQL Server 2005

Technologies Affected

  • Microsoft SQL Server 2000
  • Microsoft SQL Server 2000 8.00.194
  • Microsoft SQL Server 2000 Desktop Engine
  • Microsoft SQL Server 2000 Desktop Engine SP1
  • Microsoft SQL Server 2000 Desktop Engine SP2
  • Microsoft SQL Server 2000 Desktop Engine SP3
  • Microsoft SQL Server 2000 Desktop Engine SP4
  • Microsoft SQL Server 2000 Itanium Edition
  • Microsoft SQL Server 2000 Itanium Edition SP1
  • Microsoft SQL Server 2000 Itanium Edition SP2
  • Microsoft SQL Server 2000 Itanium Edition SP3
  • Microsoft SQL Server 2000 Itanium Edition SP4
  • Microsoft SQL Server 2000 SP1
  • Microsoft SQL Server 2000 SP2
  • Microsoft SQL Server 2000 SP3
  • Microsoft SQL Server 2000 SP4
  • Microsoft SQL Server 2000 Sp3a
  • Microsoft SQL Server 2005
  • Microsoft SQL Server 2005 Backward Compatibility 8.05.1054
  • Microsoft SQL Server 2005 Books Online 9.00.1399.06
  • Microsoft SQL Server 2005 Express Edition
  • Microsoft SQL Server 2005 Express Edition SP1
  • Microsoft SQL Server 2005 Express Edition SP2
  • Microsoft SQL Server 2005 Express Edition with Advanced Serv SP1
  • Microsoft SQL Server 2005 Express Edition with Advanced Serv SP2
  • Microsoft SQL Server 2005 Integration Services 9.1.2047.00
  • Microsoft SQL Server 2005 Itanium Edition
  • Microsoft SQL Server 2005 Itanium Edition SP1
  • Microsoft SQL Server 2005 Itanium Edition SP2
  • Microsoft SQL Server 2005 Reporting Services 9.00.1399.06
  • Microsoft SQL Server 2005 SP1
  • Microsoft SQL Server 2005 SP2
  • Microsoft SQL Server 2005 Tools 9.00.1399.06
  • Microsoft SQL Server 2005 Upgrade Advisor 9.00.2407.00
  • Microsoft SQL Server 2005 Yukon
  • Microsoft SQL Server 2005 x64 Edition SP1
  • Microsoft SQL Server 2005 x64 Edition SP2
  • Microsoft Windows 2000 Advanced Server SP4
  • Microsoft Windows 2000 Datacenter Server SP4
  • Microsoft Windows 2000 Professional SP4
  • Microsoft Windows 2000 Server SP4
  • Microsoft Windows Internal Database (WYukon)
  • Microsoft Windows Internal Database (WYukon) SP1
  • Microsoft Windows Internal Database (WYukon) SP2
  • Microsoft Windows Internal Database (WYukon) x64
  • Microsoft Windows Internal Database (WYukon) x64 SP1
  • Microsoft Windows Internal Database (WYukon) x64 SP2
  • VMWare Vcenter Update Manager 1.0
  • VMWare Vcenter Update Manager 4.0
  • VMWare Vcenter Update Manager 4.1
  • VMWare VirtualCenter 2.5
  • VMWare VirtualCenter 2.5 Update 1
  • VMWare VirtualCenter 2.5 Update 2
  • VMWare VirtualCenter 2.5 Update 4
  • VMWare VirtualCenter 2.5 Update 5
  • VMWare VirtualCenter 2.5 Update 6
  • VMWare VirtualCenter 2.5.Update 3 Build 11983
  • VMWare vCenter 4.0
  • VMWare vCenter 4.1

Recommendations

Disallow anonymous access to services. Permit access for trusted individuals only.

Permitting access only for trusted individuals will greatly reduce the likelihood of attacks.

Run all software as a nonprivileged user with minimal access rights.

To mitigate the impact of a successful exploit, run the affected application as a user with minimal access rights.

Deploy network intrusion detection systems to monitor network traffic for malicious activity.

Deploy NIDS to monitor network traffic for signs of suspicious or anomalous activity. This may help detect malicious actions that an attacker may take after successfully exploiting vulnerabilities in applications. Review all applicable logs regularly.

Implement multiple redundant layers of security.

Since this issue may be leveraged to execute code, we recommend memory-protection schemes, such as nonexecutable stack/heap configurations and randomly mapped memory segments. This tactic may complicate exploit attempts of memory-corruption vulnerabilities.
Vendor updates are available. Please see the references for more information.

Credits

Bernhard Mueller
Copyright © Symantec Corporation.
Permission to redistribute this alert electronically is granted as long as it is not edited in any way unless authorized by Symantec Security Response. Reprinting the whole or part of this alert in any medium other than electronically requires permission from secure@symantec.com.

Disclaimer
The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information.
Symantec, Symantec products, Symantec Security Response, and secure@symantec.com are registered trademarks of Symantec Corp. and/or affiliated companies in the United States and other countries. All other registered and unregistered trademarks represented in this document are the sole property of their respective companies/owners.

Threat Intelligence

Subscribe
Follow the Threat Intelligence Twitter feed
STAR Antimalware Protection Technologies
Internet Security Threat Report, Volume 17
Symantec DeepSight Screensaver