Oracle Secure Backup Administration Server login.php Authentication Bypass - Nessus

High   Plugin ID: 47747

This page contains detailed information about the Oracle Secure Backup Administration Server login.php Authentication Bypass Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 47747
Name: Oracle Secure Backup Administration Server login.php Authentication Bypass
Filename: oracle_secure_backup_uname_auth_bypass.nasl
Vulnerability Published: 2010-07-13
This Plugin Published: 2010-07-16
Last Modification Time: 2021-01-19
Plugin Version: 1.22
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: http_version.nasl, os_fingerprint.nasl
Required KB Items [?]: www/PHP
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: High
Vulnerability Published: 2010-07-13
Patch Published: 2010-07-13
CVE [?]: CVE-2010-0904
CPE [?]: cpe:/a:oracle:secure_backup

Synopsis

The remote web server contains an application that is affected by an authentication bypass vulnerability.

Description

The remote version of Oracle Secure Backup Administration Server fails to correctly validate a successful login based on the input passed to 'uname' parameter in script 'login.php'. By setting 'uname' to a specially crafted value, it may be possible for a remote unauthenticatd attacker to bypass authentication, and access information reserved for authenticated users.

Solution

Apply patches referenced in the vendor advisory above.

Public Exploits


Target Network Port(s): 443
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Oracle Secure Backup Administration Server login.php Authentication Bypass vulnerability:

  1. Metasploit: auxiliary/admin/oracle/osb_execqr2
    [Oracle Secure Backup Authentication Bypass/Command Injection Vulnerability]
  2. Metasploit: auxiliary/admin/oracle/osb_execqr3
    [Oracle Secure Backup Authentication Bypass/Command Injection Vulnerability]
  3. Metasploit: exploit/windows/http/osb_uname_jlist
    [Oracle Secure Backup Authentication Bypass/Command Injection Vulnerability]
  4. Exploit-DB: exploits/php/webapps/17698.rb
    [EDB-17698: Oracle Secure Backup - Authentication Bypass/Command Injection (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:P/E:F/RL:OF/RC:C
CVSS Base Score:9.7 (High)
Impact Subscore:9.5
Exploitability Subscore:10.0
CVSS Temporal Score:8.0 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.0 (High)

Go back to menu.

Plugin Source


This is the oracle_secure_backup_uname_auth_bypass.nasl nessus plugin source code. This script is Copyright (C) 2010-2021 Tenable Network Security, Inc.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description) 
{
  script_id(47747);
  script_version("1.22");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2010-0904");
  script_bugtraq_id(41608);
  script_xref(name:"EDB-ID", value:"17698");
  script_xref(name:"Secunia", value:"40595");

  script_name(english:"Oracle Secure Backup Administration Server login.php Authentication Bypass");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web server contains an application that is affected by an
authentication bypass vulnerability.");
 script_set_attribute(attribute:"description", value:
"The remote version of Oracle Secure Backup Administration Server 
fails to correctly validate a successful login based on the input 
passed to 'uname' parameter in script 'login.php'. By setting 'uname'
to a specially crafted value, it may be possible for a remote 
unauthenticatd attacker to bypass authentication, and access
information reserved for authenticated users." );
 script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-10-118/" );
 script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2010/Jul/190");
 script_set_attribute(attribute:"see_also", value:"https://www.oracle.com/technetwork/topics/security/cpujul2010-155308.html");

 script_set_attribute(attribute:"solution", value:
"Apply patches referenced in the vendor advisory above." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_set_attribute(attribute:"exploit_framework_core", value:"true");
 script_set_attribute(attribute:"metasploit_name", value:'Oracle Secure Backup Authentication Bypass/Command Injection Vulnerability');
 script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
 script_set_attribute(attribute:"cpe",value:"cpe:/a:oracle:secure_backup");

 script_set_attribute(attribute:"vuln_publication_date", value:"2010/07/13"); 
 script_set_attribute(attribute:"patch_publication_date", value:"2010/07/13");
 script_set_attribute(attribute:"plugin_publication_date", value: "2010/07/16");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();
 
  script_summary(english:"Checks for authentication bypass");
 
  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2010-2021 Tenable Network Security, Inc.");

  script_dependencies("http_version.nasl","os_fingerprint.nasl");
  script_require_ports("Services/www", 443);
  script_require_keys("www/PHP");
  script_exclude_keys("Settings/disable_cgi_scanning");

  exit(0);
}


include("misc_func.inc");
include("global_settings.inc");
include("http.inc");

port = get_http_port(default:443,php:TRUE);

res = http_get_cache(item:"/login.php", port:port, exit_on_fail: 1);
if ("<title>Oracle Secure Backup Web Interface</title>" >!< res)
  exit(0,"Oracle Secure Backup is not running on port"+ port +".");

os = get_kb_item("Host/OS");
if (os)
{
  if ("Windows" >< os) exploit = '-';
  else exploit = '%00';
  exploits = make_list(exploit);
}
else exploits = make_list('%00','-');

foreach exploit (exploits)
{
  url = "/login.php?attempt=1&uname="+exploit;
  res = http_send_recv3(method:"GET", item:url, port:port, exit_on_fail:TRUE,follow_redirect:2);
  
  # Look for strings that indicate 
  # we are logged in

  if("button=Logout'>Logout</a>" >< res[2] &&
     "mode=2'>Configure</a>"     >< res[2] &&
     "mode=3'>Manage</a>"        >< res[2] &&
     "mode=4'>Backup</a>"        >< res[2])
  {
    if(report_verbosity > 0)
    {
      report = '\n'+
        'Nessus was able to bypass authentication using the following'+ 
        '\nURL :\n\n' +
        "  " +build_url(port:port,qs:url)+'\n';
      security_hole(port:port,extra:report);
    } 
    else security_hole(port);
    exit(0);
  }
}
exit(0, "Oracle Secure Backup listening on port "+ port+ " is not affected.");

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/oracle_secure_backup_uname_auth_bypass.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\oracle_secure_backup_uname_auth_bypass.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/oracle_secure_backup_uname_auth_bypass.nasl

Go back to menu.

How to Run


Here is how to run the Oracle Secure Backup Administration Server login.php Authentication Bypass as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Oracle Secure Backup Administration Server login.php Authentication Bypass plugin ID 47747.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl oracle_secure_backup_uname_auth_bypass.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a oracle_secure_backup_uname_auth_bypass.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - oracle_secure_backup_uname_auth_bypass.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state oracle_secure_backup_uname_auth_bypass.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: See also: Similar and related Nessus plugins:
  • 138526 - Oracle Primavera Gateway (Jul 2020 CPU)
  • 141641 - Oracle Primavera Unifier (Oct 2020 CPU)
  • 141785 - Oracle Primavera Gateway (Oct 2020 CPU)
  • 145223 - Oracle Primavera Gateway (Jan 2021 CPU)
  • 145245 - Oracle Primavera P6 Enterprise Project Portfolio Management (Jan 2021 CPU)
  • 145569 - Oracle Primavera Unifier (Jan 2021 CPU)
  • 148916 - Oracle Primavera Gateway (Apr 2021 CPU)
  • 148918 - Oracle Primavera Unifier (Apr 2021 CPU)
  • 151973 - Oracle Primavera Unifier (Jul 2021 CPU)
  • 151974 - Oracle Primavera Gateway (Jul 2021 CPU)
  • 154262 - Oracle Primavera Unifier (Oct 2021 CPU)
  • 154297 - Oracle Primavera Gateway (Oct 2021 CPU)
  • 156832 - Oracle Primavera Unifier (Jan 2022 CPU)
  • 156891 - Oracle Primavera P6 Enterprise Project Portfolio Management (Jan 2022 CPU)
  • 156893 - Oracle Primavera Gateway (Jan 2022 CPU)
  • 159919 - Oracle Primavera Unifier (Apr 2022 CPU)
  • 35363 - Oracle Secure Backup Administration Server login.php Arbitrary Command Injection
  • 69478 - Oracle WebCenter Content (April 2013 CPU)
  • 69479 - Oracle WebCenter Content (July 2013 CPU)
  • 73119 - Oracle Reports Servlet Remote File Access
  • 73120 - Oracle Reports Servlet Parsequery Function Remote Database Credentials Exposure
  • 78603 - Oracle Endeca Information Discovery Studio Multiple Vulnerabilities (October 2014 CPU)
  • 78749 - Oracle Enterprise Data Quality Multiple Vulnerabilities (October 2014 CPU)
  • 78776 - Oracle Business Transaction Management 'FlashTunnelService' 'WriteToFile' Message RCE

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file oracle_secure_backup_uname_auth_bypass.nasl version 1.22. For more plugins, visit the Nessus Plugin Library.

Go back to menu.