Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   


Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker

Category:   Application (Database)  >   MaxDB Vendors:
MaxDB Buffer Overflow in getIfHeader() WebDAV Function Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1013821
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Apr 27 2005
Impact:   Execution of arbitrary code via network, Root access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Description:   iDEFENSE reported a vulnerability in MaxDB in the WebDAV implementation. A remote user can execute arbitrary code on the target system.

A remote user can connect to the web administration interface and issue an HTTP request with the unlock method and with a specially crafted 'If' parameter string to trigger a stack overflow.

The flaw resides in getIfHeader().

The function does not properly limit the length of a user-supplied value that is copied into a fixed length buffer.

The vendor was notified on April 25, 2005.

The original advisory is available at:

iDEFENSE Labs discovered this vulnerability.

Impact:   A remote user can execute arbitrary code on the target system. On Windows-based systems, the code will run with System level privileges.
Solution:   The vendor has issued a fixed version (, available at:

Vendor URL: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (AIX), UNIX (HP/UX), UNIX (Solaris - SunOS), UNIX (Tru64), Windows (Any)

Message History:   None.

 Source Message Contents

Date:  Tue, 26 Apr 2005 11:06:47 -0400
Subject:  iDEFENSE Security Advisory 04.26.05: MySQL MaxDB Webtool Remote

MySQL MaxDB Webtool Remote 'If' Stack Overflow Vulnerability

iDEFENSE Security Advisory 04.26.05
April 26, 2005


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.


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 

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;
temp4 = (char*)sapdbwa_GetHeader(request,"If");
if (temp4 != NULL) {

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.


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.


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


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


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


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


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


iDEFENSE Labs is credited with this discovery.

Get paid for vulnerability research

Free tools, research and upcoming events


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

Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

Copyright 2017, LLC