Oracle DB SQL Injection via SYS.DBMS_CDC_PUBLISH.DROP_CHANGE_SOURCE - Metasploit


This page contains detailed information about how to use the auxiliary/sqli/oracle/dbms_cdc_publish2 metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.

Module Overview


Name: Oracle DB SQL Injection via SYS.DBMS_CDC_PUBLISH.DROP_CHANGE_SOURCE
Module: auxiliary/sqli/oracle/dbms_cdc_publish2
Source code: modules/auxiliary/sqli/oracle/dbms_cdc_publish2.rb
Disclosure date: 2010-04-26
Last modification time: 2020-10-02 17:38:06 +0000
Supported architecture(s): -
Supported platform(s): -
Target service / protocol: -
Target network port(s): 1521
List of CVEs: CVE-2010-0870

The module exploits an sql injection flaw in the DROP_CHANGE_SOURCE procedure of the PL/SQL package DBMS_CDC_PUBLISH. Any user with execute privilege on the vulnerable package can exploit this vulnerability. By default, users granted EXECUTE_CATALOG_ROLE have the required privilege.

Module Ranking and Traits


Module Ranking:

  • normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.

Basic Usage


msf > use auxiliary/sqli/oracle/dbms_cdc_publish2
msf auxiliary(dbms_cdc_publish2) > show targets
    ... a list of targets ...
msf auxiliary(dbms_cdc_publish2) > set TARGET target-id
msf auxiliary(dbms_cdc_publish2) > show options
    ... show and set options ...
msf auxiliary(dbms_cdc_publish2) > exploit

Go back to menu.

Msfconsole Usage


Here is how the sqli/oracle/dbms_cdc_publish2 auxiliary module looks in the msfconsole:

msf6 > use auxiliary/sqli/oracle/dbms_cdc_publish2

msf6 auxiliary(sqli/oracle/dbms_cdc_publish2) > show info

       Name: Oracle DB SQL Injection via SYS.DBMS_CDC_PUBLISH.DROP_CHANGE_SOURCE
     Module: auxiliary/sqli/oracle/dbms_cdc_publish2
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2010-04-26

Provided by:
  MC <[email protected]>

Check supported:
  No

Basic options:
  Name    Current Setting     Required  Description
  ----    ---------------     --------  -----------
  DBPASS  TIGER               yes       The password to authenticate with.
  DBUSER  SCOTT               yes       The username to authenticate with.
  RHOST                       yes       The Oracle host.
  RPORT   1521                yes       The TNS port.
  SID     ORCL                yes       The sid to authenticate with.
  SQL     GRANT DBA TO SCOTT  no        SQL to execute.

Description:
  The module exploits an sql injection flaw in the DROP_CHANGE_SOURCE 
  procedure of the PL/SQL package DBMS_CDC_PUBLISH. Any user with 
  execute privilege on the vulnerable package can exploit this 
  vulnerability. By default, users granted EXECUTE_CATALOG_ROLE have 
  the required privilege.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2010-0870
  OSVDB (63772)
  http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuapr2010.html

Module Options


This is a complete list of options available in the sqli/oracle/dbms_cdc_publish2 auxiliary module:

msf6 auxiliary(sqli/oracle/dbms_cdc_publish2) > show options

Module options (auxiliary/sqli/oracle/dbms_cdc_publish2):

   Name    Current Setting     Required  Description
   ----    ---------------     --------  -----------
   DBPASS  TIGER               yes       The password to authenticate with.
   DBUSER  SCOTT               yes       The username to authenticate with.
   RHOST                       yes       The Oracle host.
   RPORT   1521                yes       The TNS port.
   SID     ORCL                yes       The sid to authenticate with.
   SQL     GRANT DBA TO SCOTT  no        SQL to execute.

Advanced Options


Here is a complete list of advanced options supported by the sqli/oracle/dbms_cdc_publish2 auxiliary module:

msf6 auxiliary(sqli/oracle/dbms_cdc_publish2) > show advanced

Module advanced options (auxiliary/sqli/oracle/dbms_cdc_publish2):

   Name       Current Setting  Required  Description
   ----       ---------------  --------  -----------
   VERBOSE    false            no        Enable detailed status messages
   WORKSPACE                   no        Specify the workspace for this module

Auxiliary Actions


This is a list of all auxiliary actions that the sqli/oracle/dbms_cdc_publish2 module can do:

msf6 auxiliary(sqli/oracle/dbms_cdc_publish2) > show actions

Auxiliary actions:

   Name  Description
   ----  -----------

Evasion Options


Here is the full list of possible evasion options supported by the sqli/oracle/dbms_cdc_publish2 auxiliary module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):

msf6 auxiliary(sqli/oracle/dbms_cdc_publish2) > show evasion

Module evasion options:

   Name  Current Setting  Required  Description
   ----  ---------------  --------  -----------

Go back to menu.


References


See Also


Check also the following modules related to this module:

Authors


  • MC

Version


This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.

Go back to menu.