copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Training
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2002.280 -- Microsoft Security Bulletin MS02-030 -- Unchecked Buffer in SQLXML Could Lead to Code Execution (Q321911)

Date: 13 June 2002
References: ESB-2002.368  

Click here for printable version
Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----

===========================================================================
             AUSCERT External Security Bulletin Redistribution

           ESB-2002.280 -- Microsoft Security Bulletin MS02-030
     Unchecked Buffer in SQLXML Could Lead to Code Execution (Q321911)
                               13 June 2002

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                SQLXML (Part of SQL Server 2000)
Vendor:                 Microsoft
Operating System:       Windows
Impact:                 Execute Arbitrary Code/Commands
                        Increased Privileges
Access Required:        Remote
                        Existing Account

Comment:                The PGP signature from the original security
                        bulletin was broken, although the content was
                        verified directly from the Microsoft web site.

- --------------------------BEGIN INCLUDED TEXT--------------------

- ----------------------------------------------------------------------
Title:      Unchecked Buffer in SQLXML Could Lead to Code Execution 
            (Q321911)
Date:       12 June 2002
Software:   Microsoft SQLXML
Impact:     Two vulnerabilities, the most serious of which could run 
            code of attacker's choice. 
Max Risk:   Moderate
Bulletin:   MS02-030

Microsoft encourages customers to review the Security Bulletin at:
http://www.microsoft.com/technet/security/bulletin/MS02-030.asp.
- ----------------------------------------------------------------------

Issue:
======
SQLXML enables the transfer of XML data to and from SQL Server 2000. 
Database queries can be returned in the form of XML documents which 
can then be stored or transferred easily. Using SQLXML, you can 
access SQL Server 2000 using XML through your browser over HTTP. 

Two vulnerabilities exist in SQLXML: 

- - An unchecked buffer vulnerability in an ISAPI extension that could,
  in the worst case, allow an attacker to run code of their choice 
  on the Microsoft Internet Information Services (IIS) Server. 

- - A vulnerability in a function specifying an XML tag that could 
  allow an attacker to run script on the user's computer with higher 
  privilege. For example, a script might be able to be run in the 
  Intranet Zone instead of the Internet Zone. 

Mitigating Factors:
====================
Unchecked buffer in SQLXML ISAPI extension: 

 - The administrator must have set up a virtual directory structure 
   and naming used by the SQLXML HTTP components on an IIS Server. 
   The vulnerability gives no means for an attacker to obtain the 
   directory structure. 

 - The attacker must know the location of the virtual directory on 
   the IIS Server that has been specifically set up for SQLXML. 

Script injection via XML tag: 

 - For an attack to succeed, the user must have privileges on the 
   SQL Server. 

 - The attacker must know the address of the SQL Server on which 
   the user has privileges. 

 - The attacker must lure the user to a website under their control. 

 - Queries submitted via HTTP are not enabled by default. 

 - Microsoft best practices recommends against allowing ad hoc URL 
   queries against the database through a virtual root. 

 - The script will run in the user's browser according to the IE 
   security zone used to connect with the IIS Server hosting the 
   SQLXML components. In most cases, this will be the Intranet Zone. 


Risk Rating:
============
 - Internet systems: Moderate
 - Intranet systems: Moderate
 - Client systems: None

Patch Availability:
===================
 - A patch is available to fix this vulnerability. Please read the
   Security Bulletin at
   http://www.microsoft.com/technet/security/bulletin/ms02-030.asp
   for information on obtaining this patch.

Acknowledgment:
===============
 - Matt Moore of Westpoint Ltd. (http://www.westpoint.ltd.uk/)

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content.  The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the original authors to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

	http://www.auscert.org.au/Information/advisories.html

If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Teams).

Internet Email: auscert@auscert.org.au
Facsimile:	(07) 3365 7031
Telephone:	(07) 3365 4417 (International: +61 7 3365 4417)
		AusCERT personnel answer during Queensland business hours
		which are GMT+10:00 (AEST).
		On call after hours for member emergencies.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: ftp://ftp.auscert.org.au/pub/auscert/AUSCERT_PGP.key

iQCVAwUBPQjNQSh9+71yA2DNAQH3dwP9FqW8ZNvePKPASrj3yNY81F9dHEJ8E1jl
W6FhQYpgTJzwjj+TyDVWnKsZXUBnYIsT1+zAbIlhykzHHwx2KcU+sDGL7JJXmEyk
aHRazlaebcQMQgePTA+qLOZqoDXRdMbC74nJ2dtth8ee21NXnkFLMN5CfXgpkD64
JuGN+sHikmU=
=Vvyh
-----END PGP SIGNATURE-----