HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST) - Nessus

High   Plugin ID: 69020

This page contains detailed information about the HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 69020
Name: HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST)
Filename: hpsmh_7_2_1_0.nasl
Vulnerability Published: 2011-08-31
This Plugin Published: 2013-07-23
Last Modification Time: 2022-04-11
Plugin Version: 1.16
Plugin Type: remote
Plugin Family: Web Servers
Dependencies: compaq_wbem_detect.nasl
Required KB Items [?]: www/hp_smh

Vulnerability Information


Severity: High
Vulnerability Published: 2011-08-31
Patch Published: 2013-05-21
CVE [?]: CVE-2011-3389, CVE-2012-0883, CVE-2012-2110, CVE-2012-2311, CVE-2012-2329, CVE-2012-2335, CVE-2012-2336, CVE-2012-5217, CVE-2013-2355, CVE-2013-2356, CVE-2013-2357, CVE-2013-2358, CVE-2013-2359, CVE-2013-2360, CVE-2013-2361, CVE-2013-2362, CVE-2013-2363, CVE-2013-2364, CVE-2013-4821
CPE [?]: cpe:/a:hp:system_management_homepage
In the News: True

Synopsis

The remote web server is affected by multiple vulnerabilities.

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.1.0. It is, therefore, affected by the following vulnerabilities :

- An information disclosure vulnerability, known as BEAST, exists in the SSL 3.0 and TLS 1.0 protocols due to a flaw in the way the initialization vector (IV) is selected when operating in cipher-block chaining (CBC) modes. A man-in-the-middle attacker can exploit this to obtain plaintext HTTP header data, by using a blockwise chosen-boundary attack (BCBA) on an HTTPS session, in conjunction with JavaScript code that uses the HTML5 WebSocket API, the Java URLConnection API, or the Silverlight WebClient API. (CVE-2011-3389)

- The utility 'apachectl' can receive a zero-length directory name in the LD_LIBRARY_PATH via the 'envvars' file. A local attacker with access to that utility could exploit this to load a malicious Dynamic Shared Object (DSO), leading to arbitrary code execution. (CVE-2012-0883)

- Numerous, unspecified errors could allow remote denial of service attacks. (CVE-2012-2110, CVE-2012-2329, CVE-2012-2336, CVE-2013-2357, CVE-2013-2358, CVE-2013-2359, CVE-2013-2360)

- The fix for CVE-2012-1823 does not completely correct the CGI query parameter vulnerability. Disclosure of PHP source code and code execution are still possible. Note that this vulnerability is exploitable only when PHP is used in CGI-based configurations. Apache with 'mod_php' is not an exploitable configuration. (CVE-2012-2311, CVE-2012-2335)

- Unspecified errors exist that could allow unauthorized access. (CVE-2012-5217, CVE-2013-2355)

- Unspecified errors exist that could allow disclosure of sensitive information. (CVE-2013-2356, CVE-2013-2363)

- An unspecified error exists that could allow cross-site scripting attacks. (CVE-2013-2361)

- Unspecified errors exist that could allow a local attacker to cause denial of service conditions. (CVE-2013-2362, CVE-2013-2364)

- An as-yet unspecified vulnerability exists that could cause a denial of service condition. (CVE-2013-4821)

Solution

Upgrade to HP System Management Homepage 7.2.1.0 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST) vulnerability:

  1. Metasploit: exploit/windows/http/php_apache_request_headers_bof
    [PHP apache_request_headers Function Buffer Overflow]
  2. Metasploit: encoder/x86/avoid_underscore_tolower
    [Avoid underscore/tolower]
  3. Exploit-DB: exploits/multiple/dos/18756.txt
    [EDB-18756: OpenSSL - ASN1 BIO Memory Corruption]
  4. Exploit-DB: exploits/windows/remote/19231.rb
    [EDB-19231: PHP 5.4.3 - apache_request_headers Function Buffer Overflow (Metasploit)]
  5. GitHub: https://github.com/Artem-Salnikov/devops-netology
    [CVE-2011-3389]
  6. GitHub: https://github.com/Astrogeorgeonethree/Starred
    [CVE-2011-3389]
  7. GitHub: https://github.com/Vladislav-Pugachev/netology-DevOps-dz_-14
    [CVE-2011-3389]
  8. GitHub: https://github.com/WiktorMysz/devops-netology
    [CVE-2011-3389]
  9. GitHub: https://github.com/alexandrburyakov/Rep2
    [CVE-2011-3389]
  10. GitHub: https://github.com/bysart/devops-netology
    [CVE-2011-3389]
  11. GitHub: https://github.com/daniel1302/litecoin
    [CVE-2011-3389]
  12. GitHub: https://github.com/ilya-starchikov/devops-netology
    [CVE-2011-3389]
  13. GitHub: https://github.com/mpgn/BEAST-PoC
    [CVE-2011-3389: :muscle: Proof Of Concept of the BEAST attack against SSL/TLS CVE-2011-3389 :muscle: ...]
  14. GitHub: https://github.com/pashicop/3.9_1
    [CVE-2011-3389]
  15. GitHub: https://github.com/yellownine/netology-DevOps
    [CVE-2011-3389]
  16. GitHub: https://github.com/GiJ03/ReconScan
    [CVE-2012-0883]
  17. GitHub: https://github.com/RoliSoft/ReconScan
    [CVE-2012-0883]
  18. GitHub: https://github.com/issdp/test
    [CVE-2012-0883]
  19. GitHub: https://github.com/matoweb/Enumeration-Script
    [CVE-2012-0883]
  20. GitHub: https://github.com/cyberharsh/PHP_CVE-2012-1823
    [CVE-2012-2311]

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 Score Source [?]: CVE-2012-2335
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the hpsmh_7_2_1_0.nasl nessus plugin source code. This script is Copyright (C) 2013-2022 and is owned by Tenable, Inc. or an Affiliate thereof.

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

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

if (description)
{
  script_id(69020);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id(
    "CVE-2011-3389",
    "CVE-2012-0883",
    "CVE-2012-2110",
    "CVE-2012-2311",
    "CVE-2012-2329",
    "CVE-2012-2335",
    "CVE-2012-2336",
    "CVE-2012-5217",
    "CVE-2013-2355",
    "CVE-2013-2356",
    "CVE-2013-2357",
    "CVE-2013-2358",
    "CVE-2013-2359",
    "CVE-2013-2360",
    "CVE-2013-2361",
    "CVE-2013-2362",
    "CVE-2013-2363",
    "CVE-2013-2364",
    "CVE-2013-4821"
  );
  script_bugtraq_id(
    49778,
    53046,
    53158,
    53388,
    53455,
    61332,
    61333,
    61335,
    61336,
    61337,
    61338,
    61339,
    61340,
    61341,
    61342,
    61343,
    62622
  );
  script_xref(name:"CERT", value:"895524");
  script_xref(name:"HP", value:"HPSBMU02900");
  script_xref(name:"HP", value:"SSRT100740");
  script_xref(name:"HP", value:"SSRT101209");
  script_xref(name:"HP", value:"SSRT101210");
  script_xref(name:"HP", value:"SSRT100992");
  script_xref(name:"HP", value:"SSRT101137");
  script_xref(name:"HP", value:"SSRT100696");
  script_xref(name:"HP", value:"SSRT100835");
  script_xref(name:"HP", value:"SSRT100907");
  script_xref(name:"HP", value:"SSRT101007");
  script_xref(name:"HP", value:"SSRT101076");
  script_xref(name:"HP", value:"SSRT101150");
  script_xref(name:"HP", value:"SSRT101151");
  script_xref(name:"HP", value:"SSRT101254");
  script_xref(name:"HP", value:"emr_na-c03839862");

  script_name(english:"HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST)");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by multiple vulnerabilities.");
  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.1.0. It is, therefore, affected by the following
vulnerabilities :

  - An information disclosure vulnerability, known as BEAST,
    exists in the SSL 3.0 and TLS 1.0 protocols due to a
    flaw in the way the initialization vector (IV) is
    selected when operating in cipher-block chaining (CBC)
    modes. A man-in-the-middle attacker can exploit this
    to obtain plaintext HTTP header data, by using a
    blockwise chosen-boundary attack (BCBA) on an HTTPS
    session, in conjunction with JavaScript code that uses
    the HTML5 WebSocket API, the Java URLConnection API,
    or the Silverlight WebClient API. (CVE-2011-3389)

  - The utility 'apachectl' can receive a zero-length
    directory name in the LD_LIBRARY_PATH via the 'envvars'
    file. A local attacker with access to that utility
    could exploit this to load a malicious Dynamic Shared
    Object (DSO), leading to arbitrary code execution.
    (CVE-2012-0883)

  - Numerous, unspecified errors could allow remote denial
    of service attacks. (CVE-2012-2110, CVE-2012-2329,
    CVE-2012-2336, CVE-2013-2357, CVE-2013-2358,
    CVE-2013-2359, CVE-2013-2360)

  - The fix for CVE-2012-1823 does not completely correct
    the CGI query parameter vulnerability. Disclosure of
    PHP source code and code execution are still possible.
    Note that this vulnerability is exploitable only when
    PHP is used in CGI-based configurations.  Apache with
    'mod_php' is not an exploitable configuration.
    (CVE-2012-2311, CVE-2012-2335)

  - Unspecified errors exist that could allow unauthorized
    access. (CVE-2012-5217, CVE-2013-2355)

  - Unspecified errors exist that could allow disclosure of
    sensitive information. (CVE-2013-2356, CVE-2013-2363)

  - An unspecified error exists that could allow cross-site
    scripting attacks. (CVE-2013-2361)

  - Unspecified errors exist that could allow a local
    attacker to cause denial of service conditions.
    (CVE-2013-2362, CVE-2013-2364)

  - An as-yet unspecified vulnerability exists that could 
    cause a denial of service condition. (CVE-2013-4821)");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-13-204/");
  # https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c03839862-2
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?2031110c");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/528723/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www.imperialviolet.org/2011/09/23/chromeandbeast.html");
  script_set_attribute(attribute:"see_also", value:"https://www.openssl.org/~bodo/tls-cbc.txt");
  script_set_attribute(attribute:"solution", value:
"Upgrade to HP System Management Homepage 7.2.1.0 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-2335");

  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:'PHP apache_request_headers Function Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_set_attribute(attribute:"in_the_news", value:"true");
  script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/08/31");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/05/21");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/23");

  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 and is owned by Tenable, Inc. or an Affiliate thereof.");

  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.1.0';
if (ver_compare(ver:version_alt, fix:fixed_version, strict:FALSE) == -1)
{
  set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
  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_1_0.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\hpsmh_7_2_1_0.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/hpsmh_7_2_1_0.nasl

Go back to menu.

How to Run


Here is how to run the HP System Management Homepage < 7.2.1.0 Multiple Vulnerabilities (BEAST) 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.1.0 Multiple Vulnerabilities (BEAST) plugin ID 69020.
  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_1_0.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a hpsmh_7_2_1_0.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_1_0.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_1_0.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: Hewlett Packard Security:
  • emr_na-c03839862, HPSBMU02900, SSRT100696, SSRT100740, SSRT100835, SSRT100907, SSRT100992, SSRT101007, SSRT101076, SSRT101137, SSRT101150, SSRT101151, SSRT101209, SSRT101210, SSRT101254
CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-74 (Weakness) Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-442 (Category) DEPRECATED: Web Problems
  • CWE-629 (View) Weaknesses in OWASP Top Ten (2007)
  • CWE-711 (View) Weaknesses in OWASP Top Ten (2004)
  • CWE-712 (Category) OWASP Top Ten 2007 Category A1 - Cross Site Scripting (XSS)
  • CWE-722 (Category) OWASP Top Ten 2004 Category A1 - Unvalidated Input
  • CWE-725 (Category) OWASP Top Ten 2004 Category A4 - Cross-Site Scripting (XSS) Flaws
  • CWE-750 (View) Weaknesses in the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-751 (Category) 2009 Top 25 - Insecure Interaction Between Components
  • CWE-800 (View) Weaknesses in the 2010 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-801 (Category) 2010 Top 25 - Insecure Interaction Between Components
  • CWE-809 (View) Weaknesses in OWASP Top Ten (2010)
  • CWE-811 (Category) OWASP Top Ten 2010 Category A2 - Cross-Site Scripting (XSS)
  • CWE-864 (Category) 2011 Top 25 - Insecure Interaction Between Components
  • CWE-900 (View) Weaknesses in the 2011 CWE/SANS Top 25 Most Dangerous Software Errors
  • CWE-928 (View) Weaknesses in OWASP Top Ten (2013)
  • CWE-931 (Category) OWASP Top Ten 2013 Category A3 - Cross-Site Scripting (XSS)
  • CWE-990 (Category) SFP Secondary Cluster: Tainted Input to Command
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
  • 66541 - HP System Management Homepage < 7.2.0.14 iprange Parameter Code Execution
  • 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_1_0.nasl version 1.16. For more plugins, visit the Nessus Plugin Library.

Go back to menu.