what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ms-sqlbi.txt

ms-sqlbi.txt
Posted Jul 12, 2002
Authored by Mark Litchfield | Site ngssoftware.com

NGSSoftware Security Advisory - Microsoft's SQL Server 2000's BULK INSERT query contains a buffer overflow which allows remote code execution as LOCAL SYSTEM. To be able to use the 'BULK INSERT' query one must have the privileges of the database owner or dbo. Microsoft Security bulletin available here..

tags | remote, overflow, local, code execution, sql injection
SHA-256 | beed091eb087b240ade24c710d5e6642ca80b3f180a2cb4baf37c543862b35d4

ms-sqlbi.txt

Change Mirror Download
NGSSoftware Insight Security Research Advisory

Name: BULK INSERT Buffer Overflow
Systems Affected: Microsoft SQL Server 2000
Severity: Medium
Category: Buffer Overrun
Vendor URL: https://www.microsoft.com/
Authors: Mark Litchfield (mark@ngssoftware.com)
Advisory URL: https://www.ngssoftware.com/advisories/ms-sqlbi.txt
Date: 11th July 2002
Advisory number: #NISR11072002
VNA Reference: https://www.nextgenss.com/vna/ms-sql.txt

[Please note that this advisory relates to one of the issues discussed in
the SQL Server VNA. There are still more to be fixed.]


Description
***********
Microsoft's SQL Server 2000 contains functionality that allows a database
owner to populate a table with data with one fell swoop using the 'BULK
INSERT' query. This functionality contains a remotely exploitable buffer
overrun vulnerability that can be exploited by an attacker to run arbitrary
code.


Details
*******
The 'BULK INSERT' query will take a user supplied file name and insert the
contents of this file into a specified table. By supplying an overly long
filename to the query, a buffer is overflowed and the saved return address
stored on the stack is overwritten. This allows the attacker to gain control
over the process'
execution. SQL Server 2000 can be run in the security context of a domain
account or LOCAL SYSTEM, so depending upon the particular setup, an attacker
may be able to gain complete control over the vulnerable system.

To be able to use the 'BULK INSERT' query one must have the privileges of
the database owner or dbo. Note this does not necessarily imply 'sa'
equivalence.

Another point to note is that whilst this overflow is 'UNICODE' in nature by
supplying code as a UNICODE string exploitation is made easier.

Fix Information
***************
NGSSoftware alerted Microsoft to this problem on the 28th May 2002.
Microsoft have created a patch.

Please see their bulletin for more details:

https://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/
bulletin/MS02-034.asp

Whilst NGSSoftware rate this as a medium risk issue, we still urge customers
to apply the patch as soon as is possible as it contains fixes for other
issues such as a buffer overflow in the pwdencrypt() function.

Further Information
*******************

For further information about the scope and effects of buffer overflows,
please see

https://www.ngssoftware.com/papers/non-stack-bo-windows.pdf
https://www.ngssoftware.com/papers/ntbufferoverflow.html
https://www.ngssoftware.com/papers/bufferoverflowpaper.rtf
https://www.ngssoftware.com/papers/unicodebo.pdf






Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    21 Files
  • 17
    Sep 17th
    51 Files
  • 18
    Sep 18th
    23 Files
  • 19
    Sep 19th
    48 Files
  • 20
    Sep 20th
    36 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    38 Files
  • 24
    Sep 24th
    65 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close