Vigil@nce: Oracle Database, privilege elevation via DBMS_JVM/DBMS_JAVA
February 2010 by Vigil@nce
SYNTHESIS OF THE VULNERABILITY
An attacker, authenticated on an Oracle database, can call
procedures of DBMS_JVM_EXP_PERMS and DBMS_JAVA, in order to
execute commands with system privileges.
Severity: 2/4
Consequences: administrator access/rights, privileged access/rights
Provenance: user account
Means of attack: no proof of concept, no attack
Ability of attacker: expert (4/4)
Confidence: confirmed by the editor (5/5)
Diffusion of the vulnerable configuration: high (3/3)
Creation date: 08/02/2010
IMPACTED PRODUCTS
– Oracle Database
DESCRIPTION OF THE VULNERABILITY
The DBMS_JVM_EXP_PERMS package is used during Oracle updates. The
DBMS_JVM_EXP_PERMS.IMPORT_JVM_PERMS procedure changes Java
privileges of the user.
The DBMS_JAVA package creates and manipulates Java applications
from SQL. The DBMS_JAVA.SET_OUTPUT_TO_JAVA procedure defines a
method to call when a Java application writes on System.out/err.
By combining DBMS_JVM_EXP_PERMS.IMPORT_JVM_PERMS and
DBMS_JAVA.SET_OUTPUT_TO_JAVA, an attacker can elevate his
privileges and execute a shell command.
An attacker, authenticated on an Oracle database, can thus execute
commands with system privileges.
CHARACTERISTICS
Identifiers: BID-38115, VIGILANCE-VUL-9414
http://vigilance.fr/vulnerability/Oracle-Database-privilege-elevation-via-DBMS-JVM-DBMS-JAVA-9414