[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UNIRAS Brief - 421/03 - NGGSoftware - Oracle Extproc Buffer Overflow


- ----------------------------------------------------------------------------------
   UNIRAS (UK Govt CERT) Briefing Notice - 421/03 dated 28.07.03  Time: 10:48
 UNIRAS is part of NISCC(National Infrastructure Security Co-ordination Centre)
- ---------------------------------------------------------------------------------- 
  UNIRAS material is also available from its website at www.uniras.gov.uk and
         Information about NISCC is available from www.niscc.gov.uk
- ----------------------------------------------------------------------------------


NGGSoftware Security Advisoty:

Oracle Extproc Buffer Overflow


- - --------------------------BEGIN INCLUDED TEXT--------------------

NGSSoftware Insight Security Research Advisory

Name: Oracle Extproc Buffer Overflow
Systems Affected: Most OS platforms; Oracle9i Database Release 2 and 1, 8i
Severity: High Risk
Vendor URL: http://www.oracle.com
Authors: David Litchfield (david@xxxxxxxxxxxxxxx)
 Chris Anley (chris@xxxxxxxxxxxxxxx)
Date: 25th July 2003
Advisory number: #NISR25072003

Oracle's RDBMS, a leading database server package, supports stored packages
and procedures through the use of PL/SQL. These packages and procedures can
be extended by allowing calls to be made to operating system libraries. Any
library loaded in this way is done so by a process external to the main
RDBMS, namely extproc. Extproc is vulnerable to a classic stack based buffer
overflow. This can be exploited remotely by an attacker. No user ID or
password is necessary.

Previously, NGSSoftware discovered a vulnerability in the Oracle package
that allowed an attacker to force extproc to load any operating system
library and execute any function. This attack did not require a user ID or
password. Oracle took steps to resolve this security hole. By way of fixing
the vulnerability, attempts to load libraries would be logged but denied
unless the call came from the local machine. Remote attempts would be logged
as just stated. However, this logging process is vulnerable to a classic
stack based buffer overflow vulnerability. By supplying an overly long
library name a stack based buffer is overflowed, overwriting the saved
return address on the stack. When the vulnerable procedure returns, control
over the process' path of execution can be gained. As this does not require
a user ID or password it must be stressed that this is a critical
vulnerability. On Windows platforms Oracle typically runs in the security
context of the LOCAL SYSTEM account and, as such, allows for a complete
compromise of the server. On Unix-based systems extproc runs as the 'Oracle'
user. As the 'Oracle' user typcially is the owner of the software binaries
and data files, an attacker exploiting this can completely subvert the
integrity of the database software and data.

Fix Information
NGSSoftware alerted Oracle to this vulnerability on 30th September 2002.
Oracle has reviewed the code and created a patch which is available from:


NGSSoftware advise Oracle database customers to review and install the patch
as a matter of urgency.

A check for this issue already exists in NGSSQuirreL for Oracle, a
comprehensive automated vulnerability assessment tool for Oracle Database
Servers of which more information is available from the NGSSite.


It is further recommend that Oracle DBAs have their network/firewall
administrators ensure that the database server is protected from Internet
sourced traffic.

About NGSSoftware
NGSSoftware design, research and develop intelligent, advanced application
security assessment scanners. Based in the United Kingdom, NGSSoftware have
offices in the South of London and the East Coast of Scotland. NGSSoftware's
sister company NGSConsulting, offers best of breed security consulting
services, specialising in application, host and network security


Telephone +44 208 401 0070
Fax +44 208 401 0076


- - --------------------------END INCLUDED TEXT--------------------

- ----------------------------------------------------------------------------------

For additional information or assistance, please contact the HELP Desk by 
telephone or Not Protectively Marked information may be sent via EMail to:

Office Hours:
Mon - Fri: 08:30 - 17:00 Hrs
Tel: +44 (0) 20 7821 1330 Ext 4511
Fax: +44 (0) 20 7821 1686

Outside of Office Hours:
On Call Duty Officer:
Tel: +44 (0) 20 7821 1330 and follow the prompts

- ----------------------------------------------------------------------------------
UNIRAS wishes to acknowledge the contributions of NGGSoftware for the information
contained in this Briefing. 
- ----------------------------------------------------------------------------------
This Briefing contains the information released by the original author. Some 
of the information may have changed since it was released. If the vulnerability 
affects you, it may be prudent to retrieve the advisory from the canonical site 
to ensure that you receive the most current information concerning that problem.

Reference to any specific commercial product, process, or service by trade 
name, trademark manufacturer, or otherwise, does not constitute or imply 
its endorsement, recommendation, or favouring by UNIRAS or NISCC.  The views 
and opinions of authors expressed within this notice shall not be used for 
advertising or product endorsement purposes.

Neither UNIRAS or NISCC shall also accept responsibility for any errors 
or omissions contained within this briefing notice. In particular, they shall 
not be liable for any loss or damage whatsoever, arising from or in connection 
with the usage of information contained within this notice.

UNIRAS is a member of the Forum of Incident Response and Security Teams (FIRST) 
and has contacts with other international Incident Response Teams (IRTs) in 
order to foster cooperation and coordination in incident prevention, to prompt 
rapid reaction to incidents, and to promote information sharing amongst its 
members and the community at large. 
- ----------------------------------------------------------------------------------
<End of UNIRAS Briefing>
Version: PGP 8.0