HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check) - Nessus

Critical   Plugin ID: 62902

This page contains detailed information about the HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 62902
Name: HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check)
Filename: hp_loadrunner_cve-2011-4789.nasl
Vulnerability Published: 2012-01-12
This Plugin Published: 2012-11-13
Last Modification Time: 2022-04-11
Plugin Version: 1.5
Plugin Type: remote
Plugin Family: Gain a shell remotely
Dependencies: loadrunner_agent_detect.nasl, os_fingerprint.nasl, ssl_supported_versions.nasl
Required KB Items [?]: SSL/Supported

Vulnerability Information


Severity: Critical
Vulnerability Published: 2012-01-12
Patch Published: 2012-05-29
CVE [?]: CVE-2011-4789
CPE [?]: cpe:/a:hp:loadrunner

Synopsis

The remote Windows host has a software performance testing application that is affected by a remote code execution vulnerability.

Description

The version of HP LoadRunner hosted on the remote Windows host is potentially affected by a code execution vulnerability. The application fails to properly handle incoming packets with '0x00000000' as the first 32-bit value. A remote, unauthenticated attacker, exploiting this flaw, could execute arbitrary code on the remote host subject to the privileges of the user running the affected application.

This plugin sends crafted packets to the LoadRunner Agent service, which will crash a vulnerable instance. If it is successful, a manual restart of the service is necessary.

Solution

Upgrade to HP LoadRunner 11.00 Patch 4 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check) vulnerability:

  1. Metasploit: exploit/windows/misc/hp_magentservice
    [HP Diagnostics Server magentservice.exe Overflow]
  2. Exploit-DB: exploits/windows/remote/18423.rb
    [EDB-18423: HP Diagnostics Server - 'magentservice.exe' Remote Overflow (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: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_loadrunner_cve-2011-4789.nasl nessus plugin source code. This script is Copyright (C) 2012-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(62902);
  script_version("1.5");
  script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");

  script_cve_id("CVE-2011-4789");
  script_bugtraq_id(51398);

  script_name(english:"HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check)");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has a software performance testing application
that is affected by a remote code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of HP LoadRunner hosted on the remote Windows host is
potentially affected by a code execution vulnerability.  The application
fails to properly handle incoming packets with '0x00000000' as the first
32-bit value.  A remote, unauthenticated attacker, exploiting this flaw,
could execute arbitrary code on the remote host subject to the
privileges of the user running the affected application. 

This plugin sends crafted packets to the LoadRunner Agent service, which
will crash a vulnerable instance.  If it is successful, a manual restart
of the service is necessary.");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-12-016/");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/522928/30/0/threaded");
  # https://h20566.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-c03216705-1%257CdocLocale%253Den%257CcalledBy%253DSearch_Result&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b6425436");
  script_set_attribute(attribute:"solution", value:
"Upgrade to HP LoadRunner 11.00 Patch 4 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 Diagnostics Server magentservice.exe Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/01/12");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/05/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/11/13");

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

  script_category(ACT_DESTRUCTIVE_ATTACK);
  script_family(english:"Gain a shell remotely");

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

  script_dependencies("loadrunner_agent_detect.nasl", "ssl_supported_versions.nasl", "os_fingerprint.nasl");
  script_require_keys("SSL/Supported");
  script_require_ports("Services/loadrunner_agent", 54345);

  exit(0);
}

include('audit.inc');
include('byte_func.inc');
include('global_settings.inc');
include('misc_func.inc');


#
# HPSBMU02785 SSRT100526 says only HP LoadRunner running on Windows is affected
#
if (report_paranoia < 2)
{
  os = get_kb_item_or_exit('Host/OS');
  if ('Windows' >!< os) audit(AUDIT_OS_NOT, 'Windows');
}

port = get_service(svc:'loadrunner_agent', default:54345, exit_on_fail:TRUE);

# 
# The attack appears to work on SSLv3 only
# Check for SSLv3 on remote port
ssl3 = 0;
list = get_kb_list('SSL/Transport/'+port);
if (!isnull(list))
{
  list = make_list(list);
  foreach encap (list)
  {
    if(encap == ENCAPS_SSLv3)
    {
      ssl3 = 1;
      break;
    }
  }
}

if (!ssl3) exit(0, 'The service listening on port '+port+' does not appear to support SSL 3.0.'); 

if (!get_port_state(port))  audit(AUDIT_PORT_CLOSED, port, 'TCP');

soc = open_sock_tcp(port, transport: ENCAPS_SSLv3);
if (!soc) audit(AUDIT_SOCK_FAIL, port, 'TCP');  


send(socket:soc, data:'\x00\x00\x00\x00');
# Wait a bit before closing the socket so that the remote end can read on a still open socket.
# Closing the socket immediately after the send may cause SSL_Read() on the remote host to fail
# because Nessus has just closed the connection. 
recv(socket:soc, length:1024);
close(soc);

# Vulnerable server should be dead now
soc = open_sock_tcp(port, transport: ENCAPS_SSLv3);
if (!soc) security_hole(port:port);

# We should be able to reconnect to the patched server
else audit(AUDIT_LISTEN_NOT_VULN, 'HP LoadRunner', port);

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

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

Go back to menu.

How to Run


Here is how to run the HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check) 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 Gain a shell remotely plugin family.
  6. On the right side table select HP LoadRunner < 11.00 Patch 4 Code Execution (intrusive check) plugin ID 62902.
  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_loadrunner_cve-2011-4789.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a hp_loadrunner_cve-2011-4789.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - hp_loadrunner_cve-2011-4789.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_loadrunner_cve-2011-4789.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 59718 - HP LoadRunner < 11.00 Patch 4 Code Execution Vulnerability
  • 55552 - HP Data Protector <= A.06.20 Multiple Vulnerabilities (uncredentialed check)
  • 53641 - HP Data Protector Remote Command Execution
  • 43635 - HP Data Protector OmniInet.exe MSG_PROTOCOL Command RCE
  • 65255 - HP Intelligent Management Center < 5.2 E401 Multiple Vulnerabilities
  • 63265 - HP Intelligent Management Center User Access Manager Datagram Parsing Code Execution
  • 55907 - HP iNode Management Center Buffer Overflow (HPSB3C02687) (remote check)
  • 69424 - HP LoadRunner < 11.52 SSL Connection Handling Stack Buffer Overflow RCE
  • 58516 - HP OpenView Network Node Manager Multiple Code Execution Vulnerabilities (HPSBMU02712 SSRT100649)
  • 61612 - HP SAN/iQ <= 10.0 Root Shell Command Injection
  • 59330 - HP SAN/iQ < 9.5 Root Shell Command Injection
  • 64633 - HP LeftHand Virtual SAN Appliance < 10.0 hydra Service Multiple RCE
  • 27054 - HP Linux Imaging and Printing Project (hplip) hpssd from Address Command Injection
  • 66408 - Adobe ColdFusion Authentication Bypass (APSB13-13) (intrusive check)
  • 57701 - HP Managed Printing Administration jobDelivery Script Directory Traversal (intrusive check)
  • 121515 - JBoss Remoting RemoteMessageChannel DoS (intrusive check)
  • 82078 - ManageEngine Desktop Central statusUpdate Arbitrary File Upload RCE (intrusive check)
  • 82080 - ManageEngine Desktop Central Remote Security Bypass (Intrusive Check)
  • 71217 - ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload RCE (intrusive check)
  • 62992 - NetIQ Privileged User Manager ldapagnt_eval() Function Remote Code Execution (intrusive check)
  • 62991 - NetIQ Privileged User Manager Password Change Authentication Bypass (intrusive check)
  • 47581 - Novell 'modulemanager' Servlet Arbitrary File Upload (intrusive check)
  • 83289 - Novell ZENworks Configuration Management < 11.3.2 Remote Code Execution (intrusive check)
  • 66914 - Novell ZENworks Control Center File Upload Remote Code Execution (intrusive check)
  • 41947 - Adobe RoboHelp Server Security Bypass (APSA09-05 / intrusive check)
  • 59208 - Symantec Web Gateway ipchange.php Shell Command Injection (SYM12-006) (intrusive check)
  • 59210 - Symantec Web Gateway upload_file() Remote Code Execution (SYM12-006) (intrusive check)

Version


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

Go back to menu.