Microsoft SQL Server 2000 Password Encrypt Procedure Buffer Overflow Vulnerability
BID:5014
Info
Microsoft SQL Server 2000 Password Encrypt Procedure Buffer Overflow Vulnerability
| Bugtraq ID: | 5014 |
| Class: | Boundary Condition Error |
| CVE: |
CVE-2002-0624 |
| Remote: | No |
| Local: | Yes |
| Published: | Jun 14 2002 12:00AM |
| Updated: | Jul 11 2009 01:56PM |
| Credit: | This issue was reported by martin rakhmanoff <[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 Password Encrypt Procedure Buffer Overflow Vulnerability
A buffer overflow vulnerability has been reported in SQL Server 2000. The vunerability is a result of an unchecked buffer when using the password encrypt procedure. This procedure is used by administrators to provides support for the storage of SQL Server Authentication credentials.
The overrun condition is due to an unbounded data copy operation that occurs when processing the procedure arguments. Attackers may exploit this vulnerability by invoking the password encrypt procedure with excessive input.
This issue may be related to the vulnerabilities reported in Bugtraq ID 4847.
A buffer overflow vulnerability has been reported in SQL Server 2000. The vunerability is a result of an unchecked buffer when using the password encrypt procedure. This procedure is used by administrators to provides support for the storage of SQL Server Authentication credentials.
The overrun condition is due to an unbounded data copy operation that occurs when processing the procedure arguments. Attackers may exploit this vulnerability by invoking the password encrypt procedure with excessive input.
This issue may be related to the vulnerabilities reported in Bugtraq ID 4847.
Exploit / POC
Microsoft SQL Server 2000 Password Encrypt Procedure Buffer Overflow Vulnerability
The following proof-of-concept was submitted:
SELECT pwdencrypt(REPLICATE('A',353))
Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
The following proof-of-concept was submitted:
SELECT pwdencrypt(REPLICATE('A',353))
Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Solution / Fix
Microsoft SQL Server 2000 Password Encrypt Procedure 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 Q316333
SQL Server Service Pack 2 must be installed prior to installing this patch.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316333 -
Microsoft sql2ksp3
http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=GN&LN=en-us&gss nb=1
Microsoft SQL Server 2000 SP2
-
Microsoft Q316333
http://support.microsoft.com/default.aspx?scid=http://download.microso ft.com/download/SQLSVR2000/Update/8.00.0578/W982KMeXP/EN-US/8.00.0578. exe -
Microsoft Q316333
http://support.microsoft.com/default.aspx?scid=http://download.microso ft.com/download/SQLSVR2000/Update/8.00.0650/W98NT42KMeXP/EN-US/8.00.06 50_enu.exe -
Microsoft Q316333
SQL Server Service Pack 2 must be installed prior to installing this patch.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316333 -
Microsoft Q316333
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316333& -
Microsoft Q316333
For Microsoft SQL Server 2000 SP2.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q316333& -
Microsoft sql2ksp3
http://www.microsoft.com/sql/downloads/2000/sp3.asp?SD=GN&LN=en-us&gss nb=1
References
Microsoft SQL Server 2000 Password Encrypt Procedure Buffer Overflow Vulnerability
References:
References:
- Microsoft Security Bulletin MS02-034 (Microsoft)
- SQL Server's Undocumented Password Encryption Functions (SQLServer Magazine)