exploit the possibilities

iDEFENSE Security Advisory 2008-07-08.1

iDEFENSE Security Advisory 2008-07-08.1
Posted Jul 10, 2008
Authored by iDefense Labs, Brett Moore | Site idefense.com

iDefense Security Advisory 07.08.08 - Remote exploitation of an integer underflow vulnerability within Microsoft Corp.'s SQL Server could allow a remote attacker to execute arbitrary code with the privileges of the SQL Server. The vulnerability exists within the code responsible for parsing a stored backup file. A 32-bit integer value, representing the size of a record, is taken from the file and used to calculate the number of bytes to read into a heap buffer. This calculation can underflow, which leads to insufficient memory being allocated. The buffer is subsequently overfilled leading to an exploitable condition. iDefense confirmed the existence of this vulnerability in Microsoft SQL Server 2005 Service Pack 2 Hot Fix 4. Additional tests against SQL Server 2005 without any updates suggest it is also vulnerable. Previous versions are also suspected to be vulnerable.

tags | advisory, remote, arbitrary
advisories | CVE-2008-0107, CVE-2008-0106, CVE-2008-0086
MD5 | 8b9cc4e45c191c51974cb00c251a4d03

iDEFENSE Security Advisory 2008-07-08.1

Change Mirror Download
iDefense Security Advisory 07.08.08
http://labs.idefense.com/intelligence/vulnerabilities/
Jul 08, 2008

I. BACKGROUND

SQL Server is Microsoft's database server product. It supports the
restoration and inspection of backups via SQL statements. For more
information see the vendor's website found at the following URL.

http://www.microsoft.com/sql/default.mspx

II. DESCRIPTION

Remote exploitation of an integer underflow vulnerability within
Microsoft Corp.'s SQL Server could allow a remote attacker to execute
arbitrary code with the privileges of the SQL Server.

The vulnerability exists within the code responsible for parsing a
stored backup file. A 32-bit integer value, representing the size of a
record, is taken from the file and used to calculate the number of
bytes to read into a heap buffer. This calculation can underflow, which
leads to insufficient memory being allocated. The buffer is subsequently
overfilled leading to an exploitable condition.

III. ANALYSIS

Exploitation of this vulnerability results in the execution of arbitrary
code with the privileges of the SQL Server. SQL Server 2005 runs under
the "NETWORK SERVICE" account, which is similar to an unprivileged user
account.

The target function can be run by any user with access to query the
database. This attack could also be conducted anonymously through a Web
application if it contained an SQL Injection vulnerability.

For the server to load the corrupted backup file, an attacker would have
to supply a path to a remote file using either SMB or WebDAV.

IV. DETECTION

iDefense confirmed the existence of this vulnerability in Microsoft SQL
Server 2005 Service Pack 2 Hot Fix 4. Additional tests against SQL
Server 2005 without any updates suggest it is also vulnerable. Previous
versions are also suspected to be vulnerable.

V. WORKAROUND

iDefense is currently unaware of any direct workaround for this issue.
Administrators can disable SMB and WebDAV support on affected SQL
Servers to prevent access to remote files.

VI. VENDOR RESPONSE

Microsoft has officially addressed this vulnerability with Security
Bulletin MS08-040. For more information, consult their bulletin at the
following URL.

http://www.microsoft.com/technet/security/bulletin/ms08-040.mspx

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2008-0107 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org/), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

12/06/2007 Initial vendor notification
12/06/2007 Initial vendor response
07/08/2008 Coordinated public disclosure

IX. CREDIT

This vulnerability was reported to iDefense by Brett Moore, from
Insomnia Security, brett.moore@insomniasec.com www.insomniasec.com

Get paid for vulnerability research
http://labs.idefense.com/methodology/vulnerability/vcp.php

Free tools, research and upcoming events
http://labs.idefense.com/

X. LEGAL NOTICES

Copyright © 2008 iDefense, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDefense. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically,
please e-mail customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct,
indirect, or consequential loss or damage arising from use of, or
reliance on, this information.
Login or Register to add favorites

File Archive:

May 2020

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    14 Files
  • 2
    May 2nd
    3 Files
  • 3
    May 3rd
    1 Files
  • 4
    May 4th
    18 Files
  • 5
    May 5th
    15 Files
  • 6
    May 6th
    21 Files
  • 7
    May 7th
    15 Files
  • 8
    May 8th
    19 Files
  • 9
    May 9th
    1 Files
  • 10
    May 10th
    2 Files
  • 11
    May 11th
    18 Files
  • 12
    May 12th
    39 Files
  • 13
    May 13th
    15 Files
  • 14
    May 14th
    17 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    2 Files
  • 17
    May 17th
    2 Files
  • 18
    May 18th
    15 Files
  • 19
    May 19th
    21 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    15 Files
  • 22
    May 22nd
    6 Files
  • 23
    May 23rd
    1 Files
  • 24
    May 24th
    1 Files
  • 25
    May 25th
    2 Files
  • 26
    May 26th
    23 Files
  • 27
    May 27th
    13 Files
  • 28
    May 28th
    18 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2020 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close