Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
BID:32710
Info
Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
| Bugtraq ID: | 32710 |
| Class: | Design Error |
| CVE: |
CVE-2008-4270 CVE-2008-5416 |
| Remote: | Yes |
| Local: | No |
| Published: | Dec 09 2008 12:00AM |
| Updated: | Feb 11 2011 03:09PM |
| Credit: | Bernhard Mueller |
| Vulnerable: |
VMWare VirtualCenter 2.5.Update 3 build 1 VMWare VirtualCenter 2.5 Update 6 VMWare VirtualCenter 2.5 Update 5 VMWare VirtualCenter 2.5 Update 4 VMWare VirtualCenter 2.5 Update 2 VMWare VirtualCenter 2.5 Update 1 VMWare VirtualCenter 2.5 VMWare Vcenter Update Manager 4.1 VMWare Vcenter Update Manager 4.0 VMWare Vcenter Update Manager 1.0 VMWare vCenter 4.1 VMWare vCenter 4.0 Microsoft Windows Internal Database (WYukon) x64 SP2 Microsoft Windows Internal Database (WYukon) x64 SP1 Microsoft Windows Internal Database (WYukon) x64 0 Microsoft Windows Internal Database (WYukon) SP2 Microsoft Windows Internal Database (WYukon) SP1 Microsoft Windows Internal Database (WYukon) 0 Microsoft Windows 2000 Server SP4 Microsoft Windows 2000 Professional SP4 Microsoft Windows 2000 Datacenter Server SP4 Microsoft Windows 2000 Advanced Server SP4 Microsoft SQL Server 2005 x64 Edition SP2 Microsoft SQL Server 2005 x64 Edition SP1 Microsoft SQL Server 2005 Upgrade Advisor 9.0.2407 .00 Microsoft SQL Server 2005 Tools 9.0.1399 .06 Microsoft SQL Server 2005 Reporting Services 9.0.1399 .06 Microsoft SQL Server 2005 Itanium Edition SP2 Microsoft SQL Server 2005 Itanium Edition SP1 Microsoft SQL Server 2005 Itanium Edition 0 Microsoft SQL Server 2005 Integration Services 9.1.2047 .00 Microsoft SQL Server 2005 Express Edition with Advanced Serv SP2 Microsoft SQL Server 2005 Express Edition with Advanced Serv SP1 Microsoft SQL Server 2005 Express Edition SP2 Microsoft SQL Server 2005 Express Edition SP1 Microsoft SQL Server 2005 Express Edition 0 Microsoft SQL Server 2005 Books Online 9.0.1399 .06 Microsoft SQL Server 2005 Backward Compatibility 8.5.1054 Microsoft SQL Server 2005 Yukon Microsoft SQL Server 2005 SP2 Microsoft SQL Server 2005 SP1 Microsoft SQL Server 2005 0 Microsoft SQL Server 2000 Itanium Edition SP4 Microsoft SQL Server 2000 Itanium Edition SP3 Microsoft SQL Server 2000 Itanium Edition SP2 Microsoft SQL Server 2000 Itanium Edition SP1 Microsoft SQL Server 2000 Itanium Edition 0 Microsoft SQL Server 2000 Desktop Engine SP4 Microsoft SQL Server 2000 Desktop Engine SP3 Microsoft SQL Server 2000 Desktop Engine SP2 Microsoft SQL Server 2000 Desktop Engine SP1 Microsoft SQL Server 2000 Desktop Engine 0 Microsoft SQL Server 2000 Desktop Engine Microsoft SQL Server 2000 8.0.194 Microsoft SQL Server 2000 SP4 Microsoft SQL Server 2000 SP3a Microsoft SQL Server 2000 SP3 Microsoft SQL Server 2000 SP2 Microsoft SQL Server 2000 SP1 Microsoft SQL Server 2000 |
| Not Vulnerable: |
VMWare Vcenter Update Manager 4.1 Update 1 VMWare vCenter 4.1 Update 1 Microsoft SQL Server 2005 x64 Edition SP3 Microsoft SQL Server 2005 Itanium Edition SP3 Microsoft SQL Server 2005 SP3 |
Discussion
Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
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
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
Exploit / POC
Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
The following exploit code is available to members of the Immunity Partners Program:
https://www.immunityinc.com/downloads/immpartners/mssql_replwritetovarbin_ceu.tar.gz
The following proof of concept and exploits are available:
The following exploit code is available to members of the Immunity Partners Program:
https://www.immunityinc.com/downloads/immpartners/mssql_replwritetovarbin_ceu.tar.gz
The following proof of concept and exploits are available:
Solution / Fix
Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
Solution:
Vendor updates are available. Please see the references for more information.
Microsoft SQL Server 2005 Itanium Edition SP2
Microsoft SQL Server 2005 Express Edition SP2
Microsoft SQL Server 2005 SP2
Microsoft SQL Server 2000 SP4
Microsoft SQL Server 2000 Desktop Engine SP4
Microsoft SQL Server 2005 Express Edition with Advanced Serv SP2
Microsoft SQL Server 2000 Itanium Edition SP4
Microsoft SQL Server 2005 x64 Edition SP2
Solution:
Vendor updates are available. Please see the references for more information.
Microsoft SQL Server 2005 Itanium Edition SP2
-
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960090)
http://www.microsoft.com/downloads/details.aspx?familyid=aa2b82ca-e94e -4491-8639-f0749b1a0f3a -
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960089)
http://www.microsoft.com/downloads/details.aspx?familyid=5dfb7998-0316 -40e5-9fc5-7a1afc18e15e
Microsoft SQL Server 2005 Express Edition SP2
-
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960090)
http://www.microsoft.com/downloads/details.aspx?familyid=aa2b82ca-e94e -4491-8639-f0749b1a0f3a -
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960089)
http://www.microsoft.com/downloads/details.aspx?familyid=5dfb7998-0316 -40e5-9fc5-7a1afc18e15e
Microsoft SQL Server 2005 SP2
-
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960089)
http://www.microsoft.com/downloads/details.aspx?familyid=5dfb7998-0316 -40e5-9fc5-7a1afc18e15e -
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960090)
http://www.microsoft.com/downloads/details.aspx?familyid=aa2b82ca-e94e -4491-8639-f0749b1a0f3a
Microsoft SQL Server 2000 SP4
-
Microsoft Security Update for SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960083)
http://www.microsoft.com/downloads/details.aspx?familyid=a93f3cfe-18c9 -4218-a551-13bf415e418a&displaylang=en -
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960082)
http://www.microsoft.com/downloads/details.aspx?familyid=d5bb816a-6e1a -47cb-92be-51c565ee184c -
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960083)
http://www.microsoft.com/downloads/details.aspx?familyid=a93f3cfe-18c9 -4218-a551-13bf415e418a
Microsoft SQL Server 2000 Desktop Engine SP4
-
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960082)
http://www.microsoft.com/downloads/details.aspx?familyid=d5bb816a-6e1a -47cb-92be-51c565ee184c -
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960083)
http://www.microsoft.com/downloads/details.aspx?familyid=a93f3cfe-18c9 -4218-a551-13bf415e418a
Microsoft SQL Server 2005 Express Edition with Advanced Serv SP2
-
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960089)
http://www.microsoft.com/downloads/details.aspx?familyid=5dfb7998-0316 -40e5-9fc5-7a1afc18e15e -
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960090)
http://www.microsoft.com/downloads/details.aspx?familyid=aa2b82ca-e94e -4491-8639-f0749b1a0f3a
Microsoft SQL Server 2000 Itanium Edition SP4
-
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960082)
http://www.microsoft.com/downloads/details.aspx?familyid=d5bb816a-6e1a -47cb-92be-51c565ee184c -
Microsoft SQL Server 2000 Service Pack 4 and MSDE 2000 (KB960083)
http://www.microsoft.com/downloads/details.aspx?familyid=a93f3cfe-18c9 -4218-a551-13bf415e418a
Microsoft SQL Server 2005 x64 Edition SP2
-
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960090)
http://www.microsoft.com/downloads/details.aspx?familyid=aa2b82ca-e94e -4491-8639-f0749b1a0f3a -
Microsoft Security Update for SQL Server 2005 Service Pack 2 (KB960089)
http://www.microsoft.com/downloads/details.aspx?familyid=5dfb7998-0316 -40e5-9fc5-7a1afc18e15e
References
Microsoft SQL Server 'sp_replwritetovarbin' Remote Memory Corruption Vulnerability
References:
References:
- Microsoft Security Advisory: Vulnerability in SQL Server could allow remote code (Microsoft)
- Microsoft SQL Server 2000 sp_replwritetovarbin limited memory overwrite (SEC Consult)
- Microsoft SQL Server Homepage (Microsoft)
- More information about the SQL stored procedure vulnerability (Microsoft)
- Tuesday 12/23 Update: Microsoft Security Advisory 961040 (Microsoft)
- Microsoft SQL Server 2005 sp_replwritetovarbin memory overwrite (update to SEC C (Bernhard Mueller
) - SEC Consult SA-20081109-0 :: Microsoft SQL Server 2000 sp_replwritetovarbin limi (Bernhard Mueller
) - Microsoft Security Advisory (961040) Vulnerability in SQL Server Could Allow Rem (Microsoft)
- Microsoft Security Bulletin MS09-004 (Microsoft)
- Vulnerability Note VU#696644 - Microsoft SQL Server fails to properly validate p (US-CERT)