The remote VMware ESXi host is less than version 7.0 and is affected by a reflected denial of service vulnerability:
Note that Nessus has not tested for this issue but has instead relied only on the application’s self-reported version number.
#%NASL_MIN_LEVEL 70300
##
# (C) Tenable Network Security, Inc.
##
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(176249);
script_version("1.2");
script_set_attribute(attribute:"plugin_modification_date", value:"2023/11/09");
script_cve_id("CVE-2023-29552");
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2023/11/29");
script_name(english:"ESXi < 7.0 Reflected Denial of Service");
script_set_attribute(attribute:"synopsis", value:
"The remote VMware ESXi host is missing a security patch and is affected by a vulnerability.");
script_set_attribute(attribute:"description", value:
"The remote VMware ESXi host is less than version 7.0 and is affected by a reflected denial of service vulnerability:
- The Service Location Protocol (SLP, RFC 2608) allows an unauthenticated, remote attacker to register arbitrary
services. This could allow the attacker to use spoofed UDP traffic to conduct a denial-of-service attack with a
significant amplification factor. (CVE-2023-29552)
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
# https://blogs.vmware.com/security/2023/04/vmware-response-to-cve-2023-29552-reflective-denial-of-service-dos-amplification-vulnerability-in-slp.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?117c4e79");
script_set_attribute(attribute:"see_also", value:"https://kb.vmware.com/s/article/76372");
script_set_attribute(attribute:"solution", value:
"Upgrade to ESXi 7.0 U2c, ESXi 8.0 GA or newer or disable SLP.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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-2023-29552");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2023/04/25");
script_set_attribute(attribute:"plugin_publication_date", value:"2023/05/23");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esxi");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Misc.");
script_copyright(english:"This script is Copyright (C) 2023 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("vmware_vsphere_detect.nbin", "slp_tcp_detect.nasl", "slp_udp_detect.nasl");
script_require_keys("Host/VMware/version", "Host/VMware/release");
exit(0);
}
# checking if slp service is enabled from workaround https://kb.vmware.com/s/article/76372
if (!get_kb_item("Services/slp")) exit(0, "The SLP service is not enabled on the target device.");
var rel = get_kb_item_or_exit('Host/VMware/release');
if ('ESXi' >!< rel) audit(AUDIT_OS_NOT, 'ESXi');
var ver = get_kb_item_or_exit('Host/VMware/version');
var port = get_kb_item_or_exit('Host/VMware/vsphere');
var match = pregmatch(pattern:"^ESXi? ([0-9]+\.[0-9]+).*$", string:ver);
if (isnull(match)) audit(AUDIT_UNKNOWN_BUILD, 'VMware ESXi', '6.5 / 6.7 / 7.0 / 8.0');
ver = match[1];
var fixed_version = "7.0";
if (ver !~ "^(6\.(5|7))$") audit(AUDIT_OS_NOT, 'ESXi 6.5 / 6.7 / 7.0');
if (ver_compare(ver:ver, fix:fixed_version) < 0)
{
var report = '\n ESXi version : ' + ver +
'\n Fixed version : ' + fixed_version +
'\n';
security_report_v4(port:port, severity:SECURITY_HOLE, extra:report);
}
else
{
audit(AUDIT_HOST_NOT, " vulnerable.");
}