Rapid7 Vulnerability & Exploit Database

Oracle DB SQL Injection in MDSYS.SDO_TOPO_DROP_FTBL Trigger

Back to Search

Oracle DB SQL Injection in MDSYS.SDO_TOPO_DROP_FTBL Trigger

Disclosed
01/13/2009
Created
05/30/2018

Description

This module will escalate an Oracle DB user to MDSYS by exploiting a sql injection bug in the MDSYS.SDO_TOPO_DROP_FTBL trigger. After that exploit escalate user to DBA using "CREATE ANY TRIGGER" privilege given to MDSYS user by creating evil trigger in system scheme (2-stage attack).

Author(s)

  • Sh2kerr <research[ad]dsec.ru>

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/sqli/oracle/droptable_trigger
msf auxiliary(droptable_trigger) > show actions
    ...actions...
msf auxiliary(droptable_trigger) > set ACTION < action-name >
msf auxiliary(droptable_trigger) > show options
    ...show and set options...
msf auxiliary(droptable_trigger) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;