[Full-Disclosure] iDEFENSE Security Advisory 09.02.04a: Oracle Database Server dbms_system.ksdwrt Buffer Overflow Vulnerability
idlabs-advisories at idefense.com
idlabs-advisories at idefense.com
Thu Sep 2 18:34:59 BST 2004
Oracle Database Server dbms_system.ksdwrt Buffer Overflow Vulnerability
iDEFENSE Security Advisory 09.02.04a
September 2, 2004
Oracle Database Server is a family of database products that range from
personal databases to enterprise solutions. Further information is
Remote exploitation of a buffer overflow vulnerability in Oracle Corp.'s
Oracle Database Server could allow attackers to crash the server and
potentially execute arbitrary code.
The problem specifically exists within dbms_system.ksdwrt(), a function
that allows writing messages to alert.log. If a long string is passed as
the second argument to this function, a buffer overflow occurs.
Successful exploitation allows authorized remote users to cause the
Oracle server process to crash and potentially execute arbitrary code.
Authorized users include any users who are members of the SYS or SYSTEM
roles, as well as users who are granted execute permissions on the
Successful exploitation of this vulnerability on Microsoft Corp.'s
Windows platforms can lead to a full system compromise, as most systems
are configured to run the Oracle service under Local System. Successful
exploitation of this vulnerability on Linux/Unix platforms usually
compromises only the database because the Oracle service runs under a
In cases where Oracle Internet Directory has been installed, an added
exploitation vector exists. This is because Oracle Internet Directory
creates a database user called ODSCOMMON that has a default password of
ODSCOMMON which cannot be changed, thereby allowing any attacker to
connect to the database server and exploit this vulnerability.
The following versions of Oracle Database Server are affected:
* Oracle 9i Database Server Release 2, versions 188.8.131.52 and 184.108.40.206
* Oracle 9i Database Server Release 1, versions 220.127.116.11 and 18.104.22.168
* Oracle 8i Database Server Release 1, version 22.214.171.124
Oracle 10g Database Server is not affected.
iDEFENSE is currently unaware of any workarounds that fully address this
VI. VENDOR RESPONSE
"[This] issue [has] been addressed in Alert 68."
VII. CVE INFORMATION
The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CAN-2004-0638 to this issue. This is a candidate for inclusion in
the CVE list (http://cve.mitre.org), which standardizes names for
VIII. DISCLOSURE TIMELINE
05/06/2004 Initial vendor notification
05/06/2004 iDEFENSE clients notified
05/06/2004 Initial vendor response
09/02/2004 Public disclosure
Alexander Kornbrust (www.red-database-security.com) is credited with
Get paid for vulnerability research
X. LEGAL NOTICES
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 customerservice at 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,
Full-Disclosure is hosted and sponsored by Secunia.