-----BEGIN PGP SIGNED MESSAGE-----

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

           ESB-2002.338 -- Microsoft Security Bulletin MS02-034
                 Cumulative Patch for SQL Server (Q316333)
                               12 July 2002

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

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

Product:                Microsoft SQL Server 2000 all editions
                        Microsoft SQL Server Desktop Engine (MSDE) 2000
Vendor:                 Microsoft
Operating System:       Windows
Impact:                 Increased Privileges
                        Administrator Compromise

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

- -----BEGIN PGP SIGNED MESSAGE-----

- - ----------------------------------------------------------------------
Title:      Cumulative Patch for SQL Server (Q316333)
Date:       10 July 2002
Software:   SQL Server 2000
Impact:     Elevation of privilege
Max Risk:   Moderate
Bulletin:   MS02-034

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

Issue:
======
This is a cumulative patch that includes the functionality of all 
previously released patches for SQL Server 2000. In addition, it 
eliminates three newly discovered vulnerabilities affecting SQL 
Server 2000 and MSDE 2000 (but not any previous versions of SQL 
Server or MSDE): 

- - - A buffer overrun vulnerability in a procedure used to encrypt SQL 
  Server credential information. An attacker who was able to 
  successfully exploit this vulnerability could gain significant 
  control over the database and possibly the server itself depending
  on the account SQL server runs as. 
- - - A buffer overrun vulnerability in a procedure that relates to the
  bulk inserting of data in SQL Server tables. An attacker who was 
  able to successfully exploit this vulnerability could gain 
  significant control over the database and possibly the server 
  itself. 
- - - A privilege elevation vulnerability that results because of in-
  correct permissions on the Registry key that stores the SQL Server 
  service account information. An attacker who was able to success-
  fully exploit this vulnerability could gain greater privileges on 
  the system than had been granted by the system administrator -- 
  potentially even the same rights as the operating system. 


Mitigating Factors:
====================

Unchecked Buffer in Password Encryption Procedure
CVE-CAN-2002-0624
- - - The effect of exploiting the vulnerability would depend on the 
  specific configuration of the SQL Server service. SQL Server can 
  be configured to run in a security context chosen by the admin-
  istrator. By default, this context is as a domain user. If the 
  default was chosen, it would minimize the amount of damage an 
  attacker could achieve. 
- - - The vulnerability could be blocked by following best practices. 
  Specifically, untrusted users should not be able to load and 
  execute queries of their choice on a database server. In addition,
  publicly accessible database queries should filter all inputs prior
  to processing. 

Unchecked Buffer in Bulk Insert Procedure
CVE-CAN-2002-0641 
- - - An attacker would need to already possess significant rights on 
  the server in order to exploit the vulnerability, as only Bulk 
  Admins and full administrators have the ability to load and run 
  queries that invoke the vulnerable procedure. 
- - - The effect of exploiting the vulnerability would depend on the 
  specific configuration of the SQL Server service. SQL Server can 
  be configured to run in a security context chosen by the admin-
  istrator. By default, it runs in the context of a domain user; 
  if chosen, this would minimize the amount of damage an attacker 
  could achieve. 
- - - Best practices could help minimize the vulnerability. Specifically,
  untrusted users should not be able to load and execute queries of 
  their choice on a database server. In addition, publicly accessible
  database queries should filter all inputs prior to processing. 

Incorrect Permission on SQL Server Service Account Registry Key
CVE-CAN-2002-0642
- - - Successfully exploiting this vulnerability would require the 
  ability to load and run queries on the system. By following best 
  practices and limiting this ability to administrators, users can
  mitigate the threat posed by this vulnerability. 
- - - Successfully exploiting this vulnerability would also require a 
  sysadmin or someone that has been granted xp_regwrite execute
  permissions. 



Risk Rating:
============
Unchecked Buffer in Password Encryption Procedure
 - Internet systems: Moderate
 - Intranet systems: Moderate
 - Client systems: Moderate

Unchecked Buffer in Bulk Insert Procedure
 - Internet systems: Moderate
 - Intranet systems: Moderate
 - Client systems: Moderate

Incorrect Permission on SQL Server Service Account Registry Key
 - Internet systems: Moderate
 - Intranet systems: Moderate
 - Client systems: Moderate

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

Acknowledgment:
===============
 - Microsoft thanks Cesar Cerrudo and David Litchfield of Next 
   Generation Security Software Ltd. for reporting the Unchecked 
   Buffer in Bulk Update Procedure to us and working with us to 
   protect customers.

- - ---------------------------------------------------------------------

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS 
PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS 
ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES 
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT 
SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY 
DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, 
CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF 
MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE 
POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION 
OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES 
SO THE FOREGOING LIMITATION MAY NOT APPLY.



- -----BEGIN PGP SIGNATURE-----
Version: PGP 7.1

iQEVAwUBPSzJXo0ZSRQxA/UrAQErqQf/VHkFJx9CySTHFyAoKor6xJTfw51hSg1S
AwTQ5yoAtj6VJwF7RJh76ae4D3aqJCQbsrE3r8WooFdwwPLpBZ1WL5EpgqFJTpbc
FnJ/uxWzIwgG5GZUdEBDJOpb9H985f7P5Tis9Ij4nuWxmnW1to+nrCwqiZoUf8Qq
W8Ef+D2kOrYDMbXU9dEU4TFcdYsjKFTmECZxENhRHQDAbin6iCJGvYNC1nd43AtT
G3v4h9J0e/v6016/T5zP0YT0otA1RI9RxijkS6fg0Ku+Wsw7s7ft1YKRq5uNb2B8
ezpUm/NPd1oco+7jazvGZC1zNeggQ+rhrm9R3zWzk3JURFUYX6uIaA==
=as/2
- -----END PGP SIGNATURE-----

- --------------------------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

iQCVAwUBPS7vpCh9+71yA2DNAQEniQP+Oq25HDsM/v0Zwz9zzxUbcA/JPLvBlncw
NN1dU61bbPEhElIFpllQ81F7hiBx2v7NfKZd0H9DhGe2E9ogWwHGWaAMYHgpxtk7
YrWC2ecJ9K1GRyd5NVcytFCG+wTyCbPrKydnuJOZUywDVF+4zausZu6NXsiVry2F
AKCoGKF6sPU=
=dyH+
-----END PGP SIGNATURE-----