code | #
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(117358);
script_version("1.4");
script_cvs_date("Date: 2019/11/01");
script_cve_id("CVE-2018-15514");
script_bugtraq_id(105202);
script_xref(name:"IAVA", value:"2018-A-0283");
script_name(english:"Docker for Windows stable < 18.06.0-ce-win70 / edge < 18.06.0-ce-rc3-win68 Remote Privilege Escalation Vulnerability");
script_summary(english:"Checks the Docker for Windows version.");
script_set_attribute(attribute:"synopsis", value:
"The remote host has an application installed that is affected by
a remote privilege escalation vulnerability.");
script_set_attribute(attribute:"description", value:
"The version of Docker for Windows installed on the remote Windows
host is stable channel < 18.06.0-ce-win70 or edge channel <
18.06.0-ce-rc3-win68. It is, therefore, affected by a remote privilege
escalation vulnerability.");
# https://srcincite.io/blog/2018/08/31/you-cant-contain-me-analyzing-and-exploiting-an-elevation-of-privilege-in-docker-for-windows.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6032ba75");
script_set_attribute(attribute:"see_also", value:"https://docs.docker.com/docker-for-windows/release-notes/");
script_set_attribute(attribute:"see_also", value:"https://docs.docker.com/docker-for-windows/edge-release-notes/");
script_set_attribute(attribute:"solution", value:
"Upgrade to Docker for Windows stable 18.06.0-ce-win70 or edge
18.06.0-ce-rc3-win68 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
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:L/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-15514");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"vuln_publication_date", value:"2018/08/18");
script_set_attribute(attribute:"patch_publication_date", value:"2018/07/19");
script_set_attribute(attribute:"plugin_publication_date", value:"2018/09/07");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:docker:docker");
script_set_attribute(attribute:"stig_severity", value:"I");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("docker_for_windows_installed.nbin");
script_require_keys("installed_sw/Docker for Windows", "SMB/Registry/Enumerated");
exit(0);
}
include("vcf.inc");
include("vcf_extras.inc");
get_kb_item_or_exit("SMB/Registry/Enumerated");
app_info = vcf::get_app_info(app:"Docker for Windows", win_local:TRUE);
if (app_info.Channel == "stable")
constraints = [{"min_version":"17.0", "fixed_version":"18.6.0.19075", "fixed_display":"18.06.0-ce-win70"}];
else if (app_info.Channel == "edge")
constraints = [{"min_version":"17.0", "fixed_version":"18.6.0.18994", "fixed_display":"18.06.0-ce-rc3-win68"}];
else
vcf::audit();
vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_WARNING);
|