what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

OracleDBMS-TNS.txt

OracleDBMS-TNS.txt
Posted Jan 22, 2006
Authored by Amichai Shulman | Site imperva.com

During the login process an Oracle user with no more than "create session" privileges can execute commands in the context of the special database user SYS. This of course grants any user the highest administrative privileges possible.

tags | advisory
SHA-256 | 5654f5ca442c76e942e2de9a76a7f061f6bb9e8ac7882e58e3aaf46e84d49f71

OracleDBMS-TNS.txt

Change Mirror Download
Oracle DBMS - Access Control Bypass in Login

**********************************************************


Background


***********************

Oracle is a widely deployed DBMS. Clients use a protocol called TNS to
communicate to the Oracle server. Protocol messages are used for session
setup, authentication and data transfer. The standard authentication
mechanism requires a client to supply a valid pair of user name and
password.


Scope


****************************

Imperva's Application Defense Center is conducting an extensive research
of the TNS protocol and its implementation. As part of the research the
team has identified a severe vulnerability in Oracle's access control
mechanism.


Findings


***************************

During the login process an Oracle user with no more than "create
session" privileges can execute commands in the context of the special
database user SYS. This of course grants any user the highest
administrative privileges possible.


Details


**********************************

The authentication part of the protocol is comprised of two steps,
including two different client requests and two server responses
respectively. The first request (message code 0x76) contains only the
user name while the second (message code 0x73) contains the user name
and an obfuscated password.=20

This second request also contains a list of name-value pairs describing
various attributes of the client. The value named "AUTH_ALTER_SESSION"
is intended for setting up session attributes related to the locale and
language, in the form of an ALTER SESSION SQL statement.

It turns out that this value can contain any SQL statement. Moreover,
this command is executed in the context of the SYS user, which operates
outside of the Oracle access control mechanism. Thus, by setting the
value of "AUTH_ALTER_SESSION" to an arbitrary SQL statement an attacker
can execute any arbitrary command in the database. In particular, the
attacker can create a new database account and create DBA privileges to
the new account.

Notice that if the attacker tries to execute "GRANT DBA TO
attacker_account" a deadlock occurs and attacker_account cannot login to
the database until the connection is closed.


Exploit


*********************************

Change the value of the AUTH_ALTER_SESSION attribute in TNS
authentication message.


Tested Versions


***********************************


Vulnerable


Oracle 8i (8.1.7.x.x)

Oracle 9i (9.2.0.7)

Oracle 10g Release 1 (10.1.0.4.2)

Oracle 10g Release 2 (10.2.0.1.0)


Not Vulnerable


Vendor's Status


*****************************

Vendor notified on 02-Nov-05

Patch released on 17-Jan-06 (5745699 OAUTH - REMOTE AUTHENTICATED
ESCALATE TO DBA VIA AUTH_ALTER_SESSION)


Workaround


*********************************

None.

=20

Copyright (c) 2006 Imperva

Redistribution of this alert electronically is allowed as long as it is
not edited in any way. To reprint this alert, in whole or in part, in
any medium other than electronic medium, please email adc@imperva.com
for permission.

=20

Disclaimer

The information within this advisory is subject to change without
notice. Use of this information constitutes acceptance for use in an AS
IS condition. Any use of this information is at the user's own risk.
There are no warranties, implied or express, with regard to this
information. In no event shall the author be liable for any direct or
indirect damages whatsoever arising out of or in connection with the use
or spread of this information.

Amichai Shulman
CTO

Imperva, Inc. <http://www.imperva.com/>=20
12 Hachilazon St.
Ramat-Gan
Israel

Office: 972-3-6120133 (103)
Mobile: 972-54-5885083=20
E-mail: shulman@imperva.com

=20
................................<outbind://1-0000000044163070C8CC2F4FAE7
B0EB7C70691860700BC3B7C5C1CE51F4093A17834685D3AC100000000CD69000096242AC
DF1723A4BBF70D21211FB9B230000016AE35C0000/cid:034083219@31102005-0A4B>=20

<http://imperva.com/go/iw/>=20

InfoWorld product review
gives Imperva the
HIGHEST SCORE
in Application Security
http://imperva.com/go/iw/
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close