VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007) - Nessus

High   Plugin ID: 86945

This page contains detailed information about the VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 86945
Name: VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007)
Filename: vmware_esxi_5_0_build_3021432_remote.nasl
Vulnerability Published: 2015-08-06
This Plugin Published: 2015-11-19
Last Modification Time: 2019-11-20
Plugin Version: 1.9
Plugin Type: remote
Plugin Family: Misc.
Dependencies: vmware_vsphere_detect.nbin
Required KB Items [?]: Host/VMware/release, Host/VMware/version

Vulnerability Information


Severity: High
Vulnerability Published: 2015-08-06
Patch Published: 2015-10-01
CVE [?]: CVE-2015-1047, CVE-2015-2342, CVE-2015-5177
CPE [?]: cpe:/o:vmware:esxi

Synopsis

The remote VMware ESXi host is affected by a remote code execution vulnerability.

Description

The remote VMware ESXi host is version 5.0 prior to build 3021432. It is, therefore, affected by a remote code execution vulnerability due to a double-free error in the SLPDProcessMessage() function in OpenSLP. An unauthenticated, remote attacker can exploit this, via a crafted package, to execute arbitrary code or cause a denial of service condition.

Solution

Apply patch ESXi500-201510101-SG for ESXi 5.0.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, GitHub, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007) vulnerability:

  1. Metasploit: exploit/multi/misc/java_jmx_server
    [Java JMX Server Insecure Configuration Java Code Execution]
  2. Metasploit: auxiliary/scanner/misc/java_jmx_server
    [Java JMX Server Insecure Endpoint Code Execution Scanner]
  3. GitHub: https://github.com/ACIC-Africa/metasploitable3
    [CVE-2015-2342]

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-2015-2342
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)
CVSS V3 Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:F/RL:O/RC:C
CVSS Base Score:8.6 (High)
Impact Subscore:6.0
Exploitability Subscore:1.8
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 vmware_esxi_5_0_build_3021432_remote.nasl nessus plugin source code. This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(86945);
  script_version("1.9");
  script_cvs_date("Date: 2019/11/20");

  script_cve_id("CVE-2015-1047", "CVE-2015-2342", "CVE-2015-5177");
  script_bugtraq_id(76635, 76930, 76932);
  script_xref(name:"VMSA", value:"2015-0007");
  script_xref(name:"ZDI", value:"ZDI-15-455");

  script_name(english:"VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007)");
  script_summary(english:"Checks the ESXi version and build number.");

  script_set_attribute(attribute:"synopsis", value:
"The remote VMware ESXi host is affected by a remote code execution
vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote VMware ESXi host is version 5.0 prior to build 3021432. It
is, therefore, affected by a remote code execution vulnerability due
to a double-free error in the SLPDProcessMessage() function in
OpenSLP. An unauthenticated, remote attacker can exploit this, via a
crafted package, to execute arbitrary code or cause a denial of
service condition.");
  script_set_attribute(attribute:"see_also", value:"https://www.vmware.com/security/advisories/VMSA-2015-0007.html");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-15-455/");
  script_set_attribute(attribute:"solution", value:
"Apply patch ESXi500-201510101-SG for ESXi 5.0.");
  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_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2015-2342");

  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:'Java JMX Server Insecure Configuration Java Code Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/08/06");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/10/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/11/19");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esxi");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Misc.");

  script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("vmware_vsphere_detect.nbin");
  script_require_keys("Host/VMware/version", "Host/VMware/release");

  exit(0);
}

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

ver = get_kb_item_or_exit("Host/VMware/version");
rel = get_kb_item_or_exit("Host/VMware/release");

if ("ESXi" >!< rel) audit(AUDIT_OS_NOT, "ESXi");
if ("VMware ESXi 5.0" >!< rel) audit(AUDIT_OS_NOT, "ESXi 5.0");

match = pregmatch(pattern:'^VMware ESXi.*build-([0-9]+)$', string:rel);
if (isnull(match)) exit(1, 'Failed to extract the ESXi build number.');

build = int(match[1]);
fixed_build = 3021432;

if (build < fixed_build)
{
  if (report_verbosity > 0)
  {
    report = '\n  ESXi version    : ' + ver +
             '\n  Installed build : ' + build +
             '\n  Fixed build     : ' + fixed_build +
             '\n';
    security_hole(port:0, extra:report);
  }
  else security_hole(0);
}
else audit(AUDIT_INST_VER_NOT_VULN, "VMware ESXi", ver - "ESXi " + " build " + build);

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

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

Go back to menu.

How to Run


Here is how to run the VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007) 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 Misc. plugin family.
  6. On the right side table select VMware ESXi 5.0 < Build 3021432 OpenSLP RCE (VMSA-2015-0007) plugin ID 86945.
  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 vmware_esxi_5_0_build_3021432_remote.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: VMSA | VMware Security Advisory: ZDI | Zero Day Initiative: See also: Similar and related Nessus plugins:
  • 86946 - VMware ESXi 5.1 < Build 3021178 OpenSLP RCE (VMSA-2015-0007)
  • 86947 - VMware ESXi 5.5 < Build 3029944 OpenSLP RCE (VMSA-2015-0007)
  • 86255 - VMware vCenter Multiple Vulnerabilities (VMSA-2015-0007)
  • 86254 - VMSA-2015-0007 : VMware vCenter and ESXi updates address critical security issues

Version


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

Go back to menu.