The version of Citrix XenServer running on the remote host is affected by an information disclosure vulnerability due to improper validation of user-supplied input in the C+ mode offload emulation of the RTL8139 network card device model in QEMU. A remote attacker can exploit this to read process heap memory, resulting in the disclosure of sensitive information.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(85661);
script_version("1.8");
script_cvs_date("Date: 2018/07/06 11:26:07");
script_cve_id("CVE-2015-5165");
script_bugtraq_id(76153);
script_name(english:"Citrix XenServer QEMU RTL8139 Guest Network Device Information Disclosure (CTX201717)");
script_summary(english:"Checks for patches.");
script_set_attribute(attribute:"synopsis", value:
"The remote host is affected by an information disclosure
vulnerability.");
script_set_attribute(attribute:"description", value:
"The version of Citrix XenServer running on the remote host is affected
by an information disclosure vulnerability due to improper validation
of user-supplied input in the C+ mode offload emulation of the RTL8139
network card device model in QEMU. A remote attacker can exploit this
to read process heap memory, resulting in the disclosure of sensitive
information.");
script_set_attribute(attribute:"see_also", value:"https://support.citrix.com/article/CTX201717");
script_set_attribute(attribute:"solution", value:
"Apply the relevant hotfix referenced in the vendor advisory.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"exploit_available", value:"false");
script_set_attribute(attribute:"vuln_publication_date",value:"2015/08/03");
script_set_attribute(attribute:"patch_publication_date",value:"2015/08/03");
script_set_attribute(attribute:"plugin_publication_date", value:"2015/08/27");
script_set_attribute(attribute:"plugin_type",value:"local");
script_set_attribute(attribute:"cpe",value:"cpe:/a:citrix:xenserver");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Misc.");
script_copyright(english:"This script is Copyright (C) 2015-2018 Tenable Network Security, Inc.");
script_dependencies("citrix_xenserver_version.nbin");
script_require_keys("Host/XenServer/version", "Host/local_checks_enabled");
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
app_name = "Citrix XenServer";
version = get_kb_item_or_exit("Host/XenServer/version");
get_kb_item_or_exit("Host/local_checks_enabled");
patches = get_kb_item("Host/XenServer/patches");
vuln = FALSE;
fix = '';
# We will do our checks within the branches because 6.0.2 needs
# special treatment.
if (version == "6.0.0")
{
fix = "XS60E051";
if ("XS60E051" >!< patches) vuln = TRUE;
}
else if (version == "6.0.2")
{
fix = "XS602E046 or XS602ECC022";
if ("XS602E046" >!< patches && "XS602ECC022" >!< patches) vuln = TRUE;
}
else if (version =~ "^6\.1\.")
{
fix = "XS61E058";
if ("XS61E058" >!< patches) vuln = TRUE;
}
else if (version =~ "^6\.2\.")
{
fix = "XS62ESP1032";
if ("XS62ESP1032" >!< patches) vuln = TRUE;
}
else if (version =~ "^6\.5\.")
{
fix = "XS65ESP1009 or XS65E014";
if ("XS65ESP1009" >!< patches && "XS65E014" >!< patches) vuln = TRUE;
}
else audit(AUDIT_INST_VER_NOT_VULN, app_name, version);
if (vuln)
{
port = 0;
report =
'\n Installed version : ' + version +
'\n Missing hotfix : ' + fix +
'\n';
security_report_v4(severity:SECURITY_WARNING, extra:report, port:port);
}
else audit(AUDIT_PATCH_INSTALLED, fix);