code | #TRUSTED 9537b2ddc0f74118cf502f11efac03f020ceed6a37868edee7ba9420e2b15557de67bd8b4630f0d9692b38e5175514019e2ec7551b90805286e142ad3d827f7e4904a891291cf4bcc1863f0528c65010baaf590d15787ba62f2a8123624b22e4174f3c6b585f55aed554b6b56256693e29468094568b34ca27713225f5d048594d6227ecdbe6cacfec195c934f2bf69b8defdcfe16f8e00efedbdcecadb0f0e7afe8b3237cf5846cf61dca5ae215ed30267daabd64955cf69f389cefd70b4b09a888ab02be488f3c5b19b4e5b3c91c626f9d40c08f584ae6db698a4a434b75ecccd19ec5a06881571948556177c16320091721f64d53d5c74ac10b33831f6167615de6122affa3b3d6e0bb4b6e9717fb8b3947f4fee3640137c664c9d51bf72a6aacde841fbf8681d48a8ca8e1f66f750486f780f4ace01694bdc1f11eefbacf91b9f0bbd03a5701946989be37ee6db4327b9f2112b80157633136fff59ed9bc8bccb578c8fa39b10d719365bab8e54d95ce7a0cb32bd23bb05f0616664f039431f980479380e4aab6884b3101160e6a23b146f1393e16715fd5aece0e21299c071e208cdc015eef2902638ba8e746b03d02f8ed9e2f54957beb485653240703a06072775bcba4dac74470df9312e23acd8e22ee0adeba9b43cd4abefde60939a61ca6e71ae634f2b583de844a0aef5b0c27486be44fb65b6d929e16a8821989
#
# (C) Tenable Network Security, Inc.
#
include('compat.inc');
if (description)
{
script_id(132044);
script_version("1.4");
script_cvs_date("Date: 2020/01/16");
script_cve_id("CVE-2018-15368");
script_xref(name:"CISCO-BUG-ID", value:"CSCuw45594");
script_xref(name:"CISCO-SA", value:"cisco-sa-20180926-privesc");
script_xref(name:"IAVA", value:"2019-A-0264");
script_name(english:"Cisco IOS XE Software Privileged EXEC Mode Root Shell Access (cisco-sa-20180926-privesc)");
script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch");
script_set_attribute(attribute:"description", value:
"According to its self-reported version, Cisco IOS XE Software is affected by a vulnerability in the CLI parser due to
the affected software improperly sanitizing command arguments to prevent modifications to the underlying Linux
file system on a device. An authenticated, local attacker who has privileged EXEC mode (privilege level 15) access can
exploit this by executing CLI commands that contain crafted arguments in order to gain access to the underlying Linux
shell of the affected device and execute arbitrary commands with root privileges.
Please see the included Cisco BIDs and Cisco Security Advisory for more information.
Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
# https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20180926-privesc
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?06dfb1b7");
script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuw45594");
script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug ID CSCuw45594.");
script_set_cvss_base_vector("CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:L/AC:L/PR:H/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-15368");
script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
script_set_attribute(attribute:"vuln_publication_date", value:"2018/09/26");
script_set_attribute(attribute:"patch_publication_date", value:"2018/09/26");
script_set_attribute(attribute:"plugin_publication_date", value:"2019/12/13");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios_xe");
script_set_attribute(attribute:"stig_severity", value:"I");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CISCO");
script_copyright(english:"This script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("cisco_ios_xe_version.nasl");
script_require_keys("Host/Cisco/IOS-XE/Version");
exit(0);
}
include('cisco_workarounds.inc');
include('ccf.inc');
product_info = cisco::get_product_info(name:'Cisco IOS XE Software');
version_list=make_list(
'3.7.0S',
'3.7.1S',
'3.7.2S',
'3.7.3S',
'3.7.4S',
'3.7.5S',
'3.7.6S',
'3.7.7S',
'3.7.8S',
'3.7.4aS',
'3.7.2tS',
'3.7.0bS',
'3.7.1aS',
'3.8.0S',
'3.8.1S',
'3.8.2S',
'3.9.1S',
'3.9.0S',
'3.9.2S',
'3.9.1aS',
'3.9.0aS',
'3.10.0S',
'3.10.1S',
'3.10.2S',
'3.10.3S',
'3.10.4S',
'3.10.5S',
'3.10.6S',
'3.10.2aS',
'3.10.2tS',
'3.11.1S',
'3.11.2S',
'3.11.0S',
'3.11.3S',
'3.11.4S',
'3.12.0S',
'3.12.1S',
'3.12.2S',
'3.12.3S',
'3.12.0aS',
'3.12.4S',
'3.13.0S',
'3.13.1S',
'3.13.2S',
'3.13.3S',
'3.13.4S',
'3.13.2aS',
'3.13.0aS',
'3.14.0S',
'3.14.1S',
'3.14.2S',
'3.14.3S',
'3.14.4S',
'3.15.0S',
'3.15.1S',
'3.15.2S',
'3.15.1cS',
'3.15.3S',
'3.15.4S',
'3.16.0S',
'3.16.1S',
'3.16.0aS',
'3.16.1aS',
'3.16.0bS',
'3.16.0cS',
'3.17.0S'
);
workarounds = make_list(CISCO_WORKAROUNDS['no_workaround']);
workaround_params = make_list();
reporting = make_array(
'port' , 0,
'severity' , SECURITY_HOLE,
'version' , product_info['version'],
'bug_id' , 'CSCuw45594'
);
cisco::check_and_report(
product_info:product_info,
workarounds:workarounds,
workaround_params:workaround_params,
reporting:reporting,
vuln_versions:version_list
);
|