HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution - Nessus

High   Plugin ID: 66541

This page contains detailed information about the HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 66541
Name: HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution
Filename: hpsmh_7_2_0_14.nasl
Vulnerability Published: 2013-03-29
This Plugin Published: 2013-05-22
Last Modification Time: 2022-04-11
Plugin Version: 1.4
Plugin Type: remote
Plugin Family: Web Servers
Dependencies: compaq_wbem_detect.nasl
Required KB Items [?]: www/hp_smh

Vulnerability Information


Severity: High
Vulnerability Published: 2013-03-29
Patch Published: 2013-02-19
CVE [?]: N/A
CPE [?]: cpe:/a:hp:system_management_homepage

Synopsis

The remote web server is affected by a code execution vulnerability.

Description

According to the web server's banner, the version of HP System Management Homepage (SMH) hosted on the remote web server is a version prior to 7.2.0.14 and is, therefore, reportedly affected by a code execution vulnerability related to the 'iprange' parameter in requests made to '/proxy/DataValidation'

Note that successful exploitation requires that anonymous access is enabled.

Solution

Upgrade to HP System Management Homepage 7.2.0.14 or later.

Public Exploits


Target Network Port(s): 2301, 2381
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution vulnerability:

  1. Metasploit: exploit/linux/http/hp_system_management
    [HP System Management Anonymous Access Code Execution]
  2. Exploit-DB: exploits/linux/remote/24937.rb
    [EDB-24937: HP System Management - Anonymous Access Code Execution (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:M/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:ND
CVSS Base Score:9.3 (High)
Impact Subscore:10.0
Exploitability Subscore:8.6
CVSS Temporal Score:7.7 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.7 (High)

Go back to menu.

Plugin Source


This is the hpsmh_7_2_0_14.nasl nessus plugin source code. This script is Copyright (C) 2013-2022 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(66541);
  script_version("1.4");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
  script_bugtraq_id(58817);
  script_xref(name:"EDB-ID", value:"24937");

  script_name(english:"HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by a code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"According to the web server's banner, the version of HP System
Management Homepage (SMH) hosted on the remote web server is a version
prior to 7.2.0.14 and is, therefore, reportedly affected by a code
execution vulnerability related to the 'iprange' parameter in requests
made to '/proxy/DataValidation'

Note that successful exploitation requires that anonymous access is
enabled.");
  # http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?swItem=MTX-d5ca6742524148a7bc57859fc3&lang=en&cc=us&mode=5&
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f2db75ce");
  script_set_attribute(attribute:"solution", value:
"Upgrade to HP System Management Homepage 7.2.0.14 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:ND");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'HP System Management Anonymous Access Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/03/29");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/02/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/05/22");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:hp:system_management_homepage");
  script_set_attribute(attribute:"thorough_tests", value:"true");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Web Servers");

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

  script_dependencies("compaq_wbem_detect.nasl");
  script_require_keys("www/hp_smh");
  script_require_ports("Services/www", 2301, 2381);

  exit(0);
}


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


port    = get_http_port(default:2381, embedded:TRUE);

install = get_install_from_kb(appname:'hp_smh', port:port, exit_on_fail:TRUE);
dir     = install['dir'];
version = install['ver'];
prod    = get_kb_item_or_exit("www/"+port+"/hp_smh/variant");

if (version == UNKNOWN_VER)
  exit(1, 'The version of '+prod+' installed at '+build_url(port:port, qs:dir+"/")+' is unknown.');

# nb: 'version' can have non-numeric characters in it so we'll create
#     an alternate form and make sure that's safe for use in 'ver_compare()'.
version_alt = ereg_replace(pattern:"[_-]", replace:".", string:version);
if (!ereg(pattern:"^[0-9][0-9.]+$", string:version_alt))
  exit(1, 'The version of '+prod+' installed at '+build_url(port:port, qs:dir+"/")+' does not look valid ('+version+').');

fixed_version = '7.2.0.14';
if (ver_compare(ver:version_alt, fix:fixed_version, strict:FALSE) == -1)
{
  if (report_verbosity > 0)
  {
    source_line = get_kb_item("www/"+port+"/hp_smh/source");

    report = '\n  Product           : ' + prod;
    if (!isnull(source_line))
      report += '\n  Version source    : ' + source_line;
    report +=
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fixed_version + '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);

  exit(0);
}
else audit(AUDIT_LISTEN_NOT_VULN, prod, port, version);

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

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

Go back to menu.

How to Run


Here is how to run the HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution 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 Web Servers plugin family.
  6. On the right side table select HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution plugin ID 66541.
  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 hpsmh_7_2_0_14.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - hpsmh_7_2_0_14.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 hpsmh_7_2_0_14.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 46015 - HP System Management Homepage < 6.0.0.96 / 6.0.0-95 Multiple Vulnerabilities
  • 46677 - HP System Management Homepage < 6.1.0.102 / 6.1.0-103 Multiple Vulnerabilities
  • 49272 - HP System Management Homepage < 6.2 Multiple Vulnerabilities
  • 53532 - HP System Management Homepage < 6.3 Multiple Vulnerabilities
  • 58811 - HP System Management Homepage < 7.0 Multiple Vulnerabilities
  • 59851 - HP System Management Homepage < 7.1.1 Multiple Vulnerabilities
  • 69020 - HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST)
  • 90251 - HP System Management Homepage < 7.2.6 Multiple Vulnerabilities (FREAK)
  • 73639 - HP System Management Homepage OpenSSL Multiple Vulnerabilities (Heartbleed)
  • 76345 - HP System Management Homepage < 7.2.4.1 / 7.3.3.1 OpenSSL Multiple Vulnerabilities
  • 85181 - HP System Management Homepage < 7.2.5 / 7.4.1 Multiple Vulnerabilities (POODLE)
  • 78090 - HP System Management Homepage < 7.4 Multiple Vulnerabilities
  • 90150 - HP System Management Homepage < 7.5.4 Multiple Vulnerabilities (Logjam)
  • 91222 - HP System Management Homepage Multiple Vulnerabilities (HPSBMU03593)
  • 84923 - HP System Management Homepage 7.3.x / 7.4.x < 7.5.0 Multiple Vulnerabilities (FREAK)
  • 103530 - HP System Management Homepage < 7.6.1 Multiple Vulnerabilities (HPSBMU03753)
  • 94654 - HP System Management Homepage < 7.6 Multiple Vulnerabilities (HPSBMU03653) (httpoxy)
  • 70118 - HP System Management Homepage ginkgosnmp.inc Command Injection
  • 78111 - HP OfficeJet Printer Security Bypass (HPSBPI03107)
  • 74270 - HP OfficeJet Printer Heartbeat Information Disclosure (Heartbleed)

Version


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

Go back to menu.