HP Power Manager < 4.2.10 - Nessus

Critical   Plugin ID: 44109

This page contains detailed information about the HP Power Manager < 4.2.10 Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 44109
Name: HP Power Manager < 4.2.10
Filename: hp_power_mgr_4_2_10.nasl
Vulnerability Published: 2009-11-05
This Plugin Published: 2010-01-21
Last Modification Time: 2021-01-19
Plugin Version: 1.15
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: hp_power_mgr_web_detect.nasl
Required KB Items [?]: www/hp_power_mgr

Vulnerability Information


Severity: Critical
Vulnerability Published: 2009-11-05
Patch Published: 2010-01-19
CVE [?]: CVE-2009-2685, CVE-2009-3999, CVE-2009-4000
CPE [?]: cpe:/a:hp:power_manager

Synopsis

The power management application installed on the remote host has multiple vulnerabilities.

Description

The installed version of HP Power Manager is less than 4.2.10, and as such has the following vulnerabilities :

- Adequate bounds checking is not performed on the 'Login' parameter of the login page, which could lead to a buffer overflow. A remote, unauthenticated attacker could exploit this to execute arbitrary code as SYSTEM. (CVE-2009-2685)

- Adequate bounds checking is not performed on the 'fileName' or 'LogType' parameters of 'formExportDataLogs', which could lead to a buffer overflow. A remote, authenticated attacker could exploit this to execute arbitrary code as SYSTEM. (CVE-2009-3999)

- The 'fileName' parameter of 'formExportDataLogs' has a directory traversal vulnerability. A remote, authenticated attacker could exploit this to overwrite arbitrary files with almost arbitrary data. This could result in a denial of service or arbitrary code execution as SYSTEM. (CVE-2009-4000)

Solution

Upgrade to HP Power Manager 4.2.10 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the HP Power Manager < 4.2.10 vulnerability:

  1. Metasploit: exploit/windows/http/hp_power_manager_filename
    [HP Power Manager "formExportDataLogs" Buffer Overflow]
  2. Metasploit: exploit/windows/http/hp_power_manager_filename
    [HP Power Manager 'formExportDataLogs' Buffer Overflow]
  3. Metasploit: exploit/windows/http/hp_power_manager_login
    [Hewlett-Packard Power Manager Administration Buffer Overflow]
  4. Exploit-DB: exploits/windows/remote/16785.rb
    [EDB-16785: Hewlett-Packard (HP) Power Manager Administration - Remote Buffer Overflow (Metasploit)]
  5. Exploit-DB: exploits/cgi/remote/18015.rb
    [EDB-18015: HP Power Manager - 'formExportDataLogs' Remote Buffer Overflow (Metasploit)]
  6. Immunity Canvas: D2ExploitPack

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:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the hp_power_mgr_4_2_10.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(44109);
  script_version("1.15");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2009-2685", "CVE-2009-3999", "CVE-2009-4000");
  script_bugtraq_id(36933, 37866, 37867, 37873);
  script_xref(name:"EDB-ID", value:"18015");
  script_xref(name:"Secunia", value:"37276");
  script_xref(name:"Secunia", value:"37280");

  script_name(english:"HP Power Manager < 4.2.10");
  script_summary(english:"Checks the version of HPPM");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The power management application installed on the remote host has
multiple vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The installed version of HP Power Manager is less than 4.2.10, and as
such has the following vulnerabilities :

  - Adequate bounds checking is not performed on the
    'Login' parameter of the login page, which could lead to
    a buffer overflow.  A remote, unauthenticated attacker
    could exploit this to execute arbitrary code as SYSTEM.
    (CVE-2009-2685)

  - Adequate bounds checking is not performed on the 'fileName'
    or 'LogType' parameters of 'formExportDataLogs', which
    could lead to a buffer overflow.  A remote, authenticated
    attacker could exploit this to execute arbitrary code as
    SYSTEM. (CVE-2009-3999)

  - The 'fileName' parameter of 'formExportDataLogs' has a
    directory traversal vulnerability.  A remote, authenticated
    attacker could exploit this to overwrite arbitrary files with
    almost arbitrary data.  This could result in a denial of
    service or arbitrary code execution as SYSTEM.
    (CVE-2009-4000)"
  );
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-09-081/");
  script_set_attribute(
    attribute:"see_also",
    value:"https://secuniaresearch.flexerasoftware.com/secunia_research/2009-47/"
  );
  # http://web.archive.org/web/20120111202651/http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01905743
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?cd91a469"
  );
  # http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01971741
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?09f023c2"
  );
  # http://h18004.www1.hp.com/products/servers/proliantstorage/power-protection/software/power-manager/pm3-dl.html
  script_set_attribute(
    attribute:"see_also",
    value:"http://www.nessus.org/u?5d601101"
  );
  script_set_attribute(attribute:"solution", value:"Upgrade to HP Power Manager 4.2.10 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'HP Power Manager "formExportDataLogs" Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
  script_cwe_id(22, 119);

  script_set_attribute(attribute:"vuln_publication_date", value:"2009/11/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/01/19");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/01/21");

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

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

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

  script_dependencies("hp_power_mgr_web_detect.nasl");
  script_require_keys("www/hp_power_mgr");
  script_require_ports("Services/www", 80);

  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:80, embedded:TRUE);

install = get_install_from_kb(appname:'hp_power_mgr', port:port);
if (isnull(install))
  exit(1, "No HP Power Manager installs on port "+port+" were found in the KB.");

version = install['ver'];
if (version == UNKNOWN_VER)
  exit(1, 'The version of HP Power Manager on port '+port+' is unknown.');

ver = split(version, sep:'.', keep:FALSE);
fix = split('4.2.10', sep:'.', keep:FALSE);
vuln = FALSE;

for (i = 0; i < max_index(ver) && !vuln; i++)
{
  if (int(ver[i]) < int(fix[i])) vuln = TRUE;
  else if (int(ver[i]) > int(fix[i])) break;
}

if (vuln)
{
  if (report_verbosity > 0)
  {
    report = '\n  URL               : '+build_url(port:port, qs:install['dir']+"/index.asp")+
             '\n  Installed Version : '+version+
             '\n  Fixed Version     : 4.2.10\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
}
else exit(0, 'HP Power Manager version '+version+' is listening on port "+port+" and thus 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/hp_power_mgr_4_2_10.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\hp_power_mgr_4_2_10.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/hp_power_mgr_4_2_10.nasl

Go back to menu.

How to Run


Here is how to run the HP Power Manager < 4.2.10 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 HP Power Manager < 4.2.10 plugin ID 44109.
  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 hp_power_mgr_4_2_10.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Secunia Advisory: CWE | Common Weakness Enumeration:
  • CWE-22 (Weakness) Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-119 (Weakness) Improper Restriction of Operations within the Bounds of a Memory Buffer
See also: Similar and related Nessus plugins:
  • 76284 - HP AutoPass License Server Remote Code Execution (HPSBMU03045)
  • 57700 - HP Managed Printing Administration < 2.6.4 Multiple Vulnerabilities
  • 57701 - HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check)
  • 93844 - HP Network Automation RMI Registry Java Object Deserialization RCE
  • 76776 - HP OneView < 1.10 OpenSSL Multiple Vulnerabilities (HPSBGN03068)
  • 43155 - HP OpenView Network Node Manager Multiple Scripts hostname Parameter Remote Command Execution
  • 51850 - HP OpenView Performance Insight Server Backdoor Account
  • 90099 - HP Operations Orchestration 10.x < 10.51 Java Object Deserialization RCE
  • 62099 - HP SiteScope getFileInternal Arbitrary File Download
  • 101299 - HP SiteScope Multiple Vulnerabilities (HPESBGN03763)
  • 69195 - HP SiteScope Multiple Unspecified Remote Code Execution Vulnerabilities
  • 79719 - HP SiteScope SSLv3 Padding Oracle On Downgraded Legacy Encryption Vulnerability (POODLE)
  • 69983 - HP SiteScope SOAP Call runOMAgentCommand SOAP Request Arbitrary Remote Code Execution
  • 76769 - HP Smart Update Manager 6.x < 6.4.1 Multiple Vulnerabilities
  • 81917 - HP Universal Configuration Management Database Server Authentication Bypass
  • 102803 - HP iLO 4 <= 2.52 RCE
  • 140770 - HP iLO 3 < 1.93 / HP iLO 4 < 2.75 / HP iLO Superdome 4 < 1.64 / HP iLO 5 < 2.18 / HP Moonshot/Edgeline iLO 5 < 2.30 Ripple20 Multiple vulnerabilities
  • 29249 - HP OpenView Network Node Manager Multiple CGI Remote Overflows
  • 19555 - HP OpenView Network Node Manager Multiple Scripts Remote Command Execution
  • 51645 - HP OpenView Network Node Manager Remote Execution of Arbitrary Code (HPSBMA02621 SSRT100352)
  • 35657 - HP OpenView Network Node Manager webappmon.exe Command Injection (c01661610)

Version


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

Go back to menu.