Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
BID:5004
Info
Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
| Bugtraq ID: | 5004 |
| Class: | Boundary Condition Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 12 2002 12:00AM |
| Updated: | Jun 12 2002 12:00AM |
| Credit: | Credited to Matt Moore of Westpoint Ltd. |
| Vulnerable: |
Microsoft SQL Server 2000 SP2 Microsoft SQL Server 2000 SP1 Microsoft SQL Server 2000 |
| Not Vulnerable: | |
Discussion
Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
SQLXML is a component of SQL Server 2000, which enables SQL servers to receive and send database queries via XML (Extensible Markup Language) format. Such queries can be sent using various methods of communication, one of which is via HTTP. SQLXML HTTP components reside in a virtual directory on a web server and are not enabled by default, SQLXML ISAPI extensions run with LocalSystem privileges.
A buffer overflow issue has been discovered in the SQLXML ISAPI extension that handles data queries over HTTP(SQLXML HTTP).
It is possible for a user to initiate the overflow by connecting to a host and submitting malformed data.
This issue has been reported to exist in SQL Server 2000 Gold, other versions may be vulnerable as well.
SQLXML is a component of SQL Server 2000, which enables SQL servers to receive and send database queries via XML (Extensible Markup Language) format. Such queries can be sent using various methods of communication, one of which is via HTTP. SQLXML HTTP components reside in a virtual directory on a web server and are not enabled by default, SQLXML ISAPI extensions run with LocalSystem privileges.
A buffer overflow issue has been discovered in the SQLXML ISAPI extension that handles data queries over HTTP(SQLXML HTTP).
It is possible for a user to initiate the overflow by connecting to a host and submitting malformed data.
This issue has been reported to exist in SQL Server 2000 Gold, other versions may be vulnerable as well.
Exploit / POC
Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
The following proof of concept was provided by Matt Moore <[email protected]>:
IIS-Server/Nwind/Template/catalog.xml?contenttype=text/AAAA...AAA
This uses a 'template' file instead of a direct query to cause inetinfo.exe to crash.
The following proof of concept was provided by Matt Moore <[email protected]>:
IIS-Server/Nwind/Template/catalog.xml?contenttype=text/AAAA...AAA
This uses a 'template' file instead of a direct query to cause inetinfo.exe to crash.
Solution / Fix
Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
Solution:
Microsoft has released the following patches which rectify this issue:
Microsoft SQL Server 2000
Microsoft SQL Server 2000 SP1
Microsoft SQL Server 2000 SP2
Solution:
Microsoft has released the following patches which rectify this issue:
Microsoft SQL Server 2000
-
Microsoft SQLXML2_Q321460
For SQL Server 2000 Client Tools installed and SQLXML Web Release 2
http://download.microsoft.com/download/SQLSVR2000/Patch/Q321460/W98NT4 2KMe/EN-US/SQLXML2_Q321460.EXE
Microsoft SQL Server 2000 SP1
-
Microsoft SQLXML2_Q321460
For SQL Server 2000 Client Tools installed and SQLXML Web Release 2
http://download.microsoft.com/download/SQLSVR2000/Patch/Q321460/W98NT4 2KMe/EN-US/SQLXML2_Q321460.EXE
Microsoft SQL Server 2000 SP2
-
Microsoft Q321858_SQL_Security_MDAC26
For SQL Server 2000 Gold MDAC26
http://download.microsoft.com/download/SQLSVR2000/SQLXML/Q321858/NT45X P/EN-US/Q321858_SQL_Security_MDAC26.exe -
Microsoft Q321858_SQL_Security_MDAC27
For SQL Server 2000 Gold MDAC27
http://download.microsoft.com/download/SQLSVR2000/SQLXML/Q321858/NT45X P/EN-US/Q321858_SQL_Security_MDAC27.exe -
Microsoft SQLXML2_Q321460
For SQL Server 2000 Client Tools installed and SQLXML Web Release 2
http://download.microsoft.com/download/SQLSVR2000/Patch/Q321460/W98NT4 2KMe/EN-US/SQLXML2_Q321460.EXE -
Microsoft SQLXML3_Q320833
For SQL Server 2000 Client Tools installed and SQLXML Web Release 3
http://download.microsoft.com/download/SQLSVR2000/Patch/Q320833/W98NT4 2KMe/EN-US/SQLXML3_Q320833.EXE
References
Microsoft SQL Server SQLXML Buffer Overflow Vulnerability
References:
References:
- Microsoft Security Bulletin MS02-030 (Microsoft)
- Vulnerability Note VU#811371 (CERT/CC)