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


This page contains detailed information about how to use the auxiliary/sqli/oracle/dbms_cdc_publish 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.ALTER_AUTOLOG_CHANGE_SOURCE
Module: auxiliary/sqli/oracle/dbms_cdc_publish
Source code: modules/auxiliary/sqli/oracle/dbms_cdc_publish.rb
Disclosure date: 2008-10-22
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-2008-3995

The module exploits an sql injection flaw in the ALTER_AUTOLOG_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. Affected versions: Oracle Database Server versions 10gR1, 10gR2 and 11gR1. Fixed with October 2008 CPU.

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_publish
msf auxiliary(dbms_cdc_publish) > show targets
    ... a list of targets ...
msf auxiliary(dbms_cdc_publish) > set TARGET target-id
msf auxiliary(dbms_cdc_publish) > show options
    ... show and set options ...
msf auxiliary(dbms_cdc_publish) > exploit

Go back to menu.

Msfconsole Usage


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

msf6 > use auxiliary/sqli/oracle/dbms_cdc_publish

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

       Name: Oracle DB SQL Injection via SYS.DBMS_CDC_PUBLISH.ALTER_AUTOLOG_CHANGE_SOURCE
     Module: auxiliary/sqli/oracle/dbms_cdc_publish
    License: Metasploit Framework License (BSD)
       Rank: Normal
  Disclosed: 2008-10-22

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 
  ALTER_AUTOLOG_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. Affected versions: 
  Oracle Database Server versions 10gR1, 10gR2 and 11gR1. Fixed with 
  October 2008 CPU.

References:
  https://nvd.nist.gov/vuln/detail/CVE-2008-3995
  OSVDB (49320)

Module Options


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

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

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

   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_publish auxiliary module:

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

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

   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_publish module can do:

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

Auxiliary actions:

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

Evasion Options


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

msf6 auxiliary(sqli/oracle/dbms_cdc_publish) > 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.