Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Database)  >   MaxDB Vendors:
MySQL MaxDB Buffer Overflow in websql Password Parameter Lets Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1012893
SecurityTracker URL:
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Updated:  Jan 19 2005
Original Entry Date:  Jan 14 2005
Impact:   Execution of arbitrary code via network, Root access via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 7.5.00
Description:   iDEFENSE reported a buffer overflow in MySQL MaxDB. A remote user can execute arbitrary code on the target system.

The websql application does not properly validate the bounds of user-supplied input. A remote user can supply a specially crafted password parameter to trigger a stack overflow and execute arbitrary code (with System level privileges on Windows-based systems).

The vendor was notified on December 22, 2004.

The original advisory is available at:

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

Subject:  iDEFENSE Security Advisory 01.13.05: MySQL MaxDB WebAgent websql

MySQL MaxDB WebAgent websql logon Buffer Overflow Vulnerability

iDEFENSE Security Advisory 01.13.05
January 13, 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, scalability 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 vulnerability specifically exists due to a lack of bounds checking 
in the websql CGI application. In this case, the value of the password 
parameter is converted to unicode and then copied to the stack. The 
resulting overflow can overwrite the saved values for eip and ebp if 
supplied with a 294 byte value. The stored register values are 
overwritten with portions of the unicode copy of the string which may be

leveraged to execute arbitrary code with SYSTEM privileges. A simple 
overwrite with a long password value will result in the following 
debugger output:

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 328.0xc80]
0x00410041 in ?? ()
(gdb) bt
#0  0x00410041 in ?? ()
#1  0x00410041 in ?? ()
#2  0x00420042 in ?? ()
#3  0x00430043 in ?? ()
#4  0x00440044 in ?? ()
(gdb) i r
eax            0x0      0
ecx            0x440044 4456516
edx            0x440044 4456516
ebx            0x1a789e0        27757024
esp            0x1559490        0x1559490
ebp            0x410041 0x410041
esi            0x1a72190        27730320
edi            0x1a3d2d4        27513556
eip            0x410041 0x410041


Successful exploitation of the vulnerability can 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 listen on public facing 
network interfaces.


iDEFENSE has confirmed the existence of this vulnerability in MySQL 
MaxDB 7.5.00.


Employ firewalls, access control lists or other TCP/UDP restriction 
mechanism to limit access to administrative systems and services.


The vulnerability has been addressed in MaxDB

Further details are available at:


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


12/22/2004  Initial vendor notification
12/27/2004  Initial vendor response
01/13/2005  Public disclosure


The discoverer of this vulnerability wishes to remain anonymous.

Get paid for vulnerability research


Copyright (c) 2004 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

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC