exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2005-04-26.1

iDEFENSE Security Advisory 2005-04-26.1
Posted Jun 16, 2005
Authored by iDefense Labs | Site idefense.com

iDEFENSE Security Advisory 04.25.06-1 - Remote exploitation of a stack-based buffer overflow vulnerability in MySQL MaxDB could allow attackers to execute arbitrary code. The vulnerabiltiy specifically exists because of a lack of bounds checking in the WebDAV functionality of the web tool. When an attacker issues an HTTP request with the unlock method, along with a long 'If' parameter string, a stack-based overflow occurs.

tags | advisory, remote, web, overflow, arbitrary
SHA-256 | 05c5b0f03940866f73bc2159f99ff530a95dc33e323dfd87ee1f15e5782c0aa5

iDEFENSE Security Advisory 2005-04-26.1

Change Mirror Download
MySQL MaxDB Webtool Remote 'If' Stack Overflow Vulnerability

iDEFENSE Security Advisory 04.26.05
www.idefense.com/application/poi/display?id=236&type=vulnerabilities
April 26, 2005

I. BACKGROUND

MaxDB by MySQL is a re-branded and enhanced version of SAP DB, SAP AG's
open source database. MaxDB is a heavy-duty, SAP-certified open source
database that offers high availability, salability and a comprehensive
feature set. MaxDB complements the MySQL database server, targeted for
large mySAP ERP environments and other applications that require maximum
enterprise-level database functionality.

II. DESCRIPTION

Remote exploitation of a stack-based buffer overflow vulnerability in
MySQL MaxDB could allow attackers to execute arbitrary code.

The vulnerabiltiy specifically exists because of a lack of bounds
checking in the WebDAV functionality of the web tool. When an attacker
issues an HTTP request with the unlock method, along with a long "If"
parameter string, a stack-based overflow occurs. The offending code
follows:

WDVH_Bool getIfHeader(sapdbwa_HttpRequestP request,
WDVH_Char *sIf,
WDVH_Int4 len)
{
WDVH_Char *temp1, *temp2, *temp4, *temp5;
WDVH_UInt4 length;
WDVH_Char temp3[WDVH_MAX_IF_HEADER_LEN];

if (request==NULL || sIf==NULL)
return WDVH_False;

strcpy(sIf,"");
temp4 = (char*)sapdbwa_GetHeader(request,"If");
if (temp4 != NULL) {
strcpy(temp3,temp4);

The variable temp3 is a fixed-length stack buffer. The function
sapdbwa_GetHeader() returns the user-supplied value for the "If"
parameter. This user-supplied value is then copied into the fixed-size
buffer using a strcpy() call. Because there is no boundary checking, it
is possible to overflow the stack buffer and overwrite stack memory,
ultimately leading to control of execution flow and execution of
arbitrary code.

III. ANALYSIS

Successful exploitation of the vulnerability could allow remote
attackers to execute code with SYSTEM privileges. Note that the
vulnerability is in the web administration service, which should be
configured to not allow connections from untrusted hosts or listening on

public-facing network interfaces.

IV. DETECTION

iDEFENSE has confirmed the existence of this vulnerability in MySQL
MaxDB 7.5.00.23. All versions are suspected vulnerable.

V. WORKAROUND

Filter traffic on TCP port 9999 from untrusted hosts destined for the
MaxDB Webtool server.

VI. VENDOR RESPONSE

This vulnerability is fixed in MySQL MaxDB 7.5.00.26 which available for
download at:

http://dev.mysql.com/downloads/maxdb/7.5.00.html

VII. CVE INFORMATION

A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.

VIII. DISCLOSURE TIMELINE

04/25/2005 Initial vendor notification
04/26/2005 Initial vendor response
04/26/2005 Coordinated public disclosure

IX. CREDIT

iDEFENSE Labs is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

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

X. LEGAL NOTICES

Copyright (c) 2005 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
email 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:

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
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 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