Public Vulnerability Reports

Oracle Database 11g WMSYS.LT.COPYFORUPDATE SQL Injection Vulnerability

04.14.09

BACKGROUND

Oracle Database Server is a family of database products that range from personal databases to enterprise solutions. Further information is available at the following URL:

http://www.oracle.com/database/index.html

DESCRIPTION

Local exploitation of an input validation vulnerability in the COPYFORUPDATE procedure in the LT package of WMSYS schema in Oracle Corp.'s Oracle Database 11g database product allows attackers to gain elevated privileges.

WMSYS schema is used to store all metadata information for Oracle Workspace Manager. WMSYS includes CONNECT, RESOURCE and WM_ADMIN_ROLE database roles.

The vulnerability exists within the COPYFORUPDATE function in the LT package. This package is part of the WMSYS schema and runs with the WMSYS privileges. The WHERE_CLAUSE parameter of this function is passed directly to an SQL query without being properly validated. This allows an attacker to execute arbitrary SQL queries with the WMSYS privileges.

ANALYSIS

Exploitation allows the attacker to gain to access to the Workspace Manager Admin (WM_ADMIN_ROLE) role. WMSYS is a privileged admin role, and elevation to DBA from WMSYS is possible using other vulnerabilities.

To exploit this vulnerability, the attacker would need to have the CREATE SESSION and CREATE PROCEDURE privilege.

DETECTION

iDefense has confirmed the existence of this vulnerability in Oracle Database 11g and Workspace Manager version 11.1.0.6.0. Previous versions may also be affected.

WORKAROUND

iDefense is currently unaware of any workaround for this issue.

VENDOR RESPONSE

Oracle has released a patch which addresses this issue. For more information, consult their advisory at the following URL.

http://www.oracle.com/technology/deploy/security/critical-patch-update s/cpuapr2009.html

CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2009-0976 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org/), which standardizes names for security problems.

DISCLOSURE TIMELINE

01/18/2008 - Initial Vendor Notification
01/22/2008 - Initial Vendor Response
11/24/2008 - Status update from Vendor
04/14/2009 - Coordinated Public Disclosure

CREDIT

This vulnerability was reported to iDefense by Joxean Koret.

Get paid for vulnerability research
http://labs.idefense.com/methodology/vulnerability/vcp.php

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

LEGAL NOTICES

Copyright © 2010 Verisign, 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 e-mail customer service 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.