Cisco IOS XE Software Smart Install Memory Leak (cisco-sa-20160928-smi)

2019-11-12T00:00:00
ID CISCO-SA-20160928-SMI-IOSXE.NASL
Type nessus
Reporter This script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
Modified 2020-07-02T00:00:00

Description

According to its self-reported version, Cisco IOS XE Software is affected by a denial of service (DoS) vulnerability in the Smart Install client feature due to incorrect handling of image list parameters. An unauthenticated, remote attacker can exploit this, by sending crafted Smart Install packets to TCP port 4786, causing the Cisco switch to leak memory and eventually reload, resulting in a DoS condition.

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

                                        
                                            #TRUSTED 16595f71badb644970aa1069ef0b488ef2edece96d87252a253b2254437e600e0eeae98e4581bf4d68107df0d6a91d8056cea9de37fbbdc16abfbf0cfea21192400eb7c5a5b056fb9e4690a64c120a0b01deff05f8c8214242c3ca950d3effc5a397e6319a67a035d73108acc615db6a685695bd75df0e559ec5f1f8de42abfd816074d74d6d2ce324cbfe69c8966cfba6bebeeeb26d852edbf8a5e406132a7b62725a6dcfc88927c5dda4795764685c209e37e88e3236ce8a354b048a44dba5ada9f672639af2e901210e4656a1f022b3d50e568a711b5f2dfec3b28677a6b3209e69400bd1910b0409777b222d315557d6ac1c0b01d3650b422fa7d98b2b15a869e3e5c8b34d8638a95ae390c38d7380965474f234fe60691044f23813c1f08b18bef3729707d881b8bea13d44a3d02728537fbd1fba1bdf182d3b1ccacb2261fd25766bdc0b66dcd43bd45e4548e19bfedcaa19e0649af97f32b2db0c0235df41630c47bcffe0fbe47053f58a98ce5c4b1d0030032088a1d7ee73a7fc7f255e45af60e4f61715373dbc74f7e275ed377f462a8b213876250495f5555dc036922d97d571f6c0bd6b7e10beb5a9c2338e994c36e1f2e2b1a91d26796e18c105214e82847434c1d64bdf5e23c7a49e07f58961c9dbc4760da94f34f9f86c0883c0fb7018e26cff0b7c392c58d883be9cc5e9123ab40c35cdbdda42c03b61589d
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

if (description)
{
  script_id(130767);
  script_version("1.4");
  script_cvs_date("Date: 2019/11/13");

  script_cve_id("CVE-2016-6385");
  script_bugtraq_id(93203);
  script_xref(name:"CISCO-BUG-ID", value:"CSCuy82367");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20160928-smi");

  script_name(english:"Cisco IOS XE Software Smart Install Memory Leak (cisco-sa-20160928-smi)");

  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 denial of service (DoS) vulnerability in
the Smart Install client feature due to incorrect handling of image list parameters. An unauthenticated, remote attacker
can exploit this, by sending crafted Smart Install packets to TCP port 4786, causing the Cisco switch to leak memory and
eventually reload, resulting in a DoS condition.

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-20160928-smi
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b04d6eae");
  script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuy82367");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug ID(s) CSCuy82367.");
  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:U/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:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2016-6385");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2016/10/05");
  script_set_attribute(attribute:"patch_publication_date", value:"2016/09/28");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/11/12");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios_xe");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CISCO");

  script_copyright(english:"This script is Copyright (C) 2019 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.2.0SE',
  '3.2.1SE',
  '3.2.2SE',
  '3.2.3SE',
  '3.3.0SE',
  '3.3.1SE',
  '3.3.2SE',
  '3.3.3SE',
  '3.3.4SE',
  '3.3.5SE',
  '3.3.0XO',
  '3.3.1XO',
  '3.3.2XO',
  '3.5.0E',
  '3.5.1E',
  '3.5.2E',
  '3.5.3E',
  '3.6.0E',
  '3.6.1E',
  '3.6.0aE',
  '3.6.0bE',
  '3.6.2aE',
  '3.6.2E',
  '3.6.3E',
  '3.6.4E',
  '3.7.0E',
  '3.7.1E',
  '3.7.2E',
  '3.7.3E',
  '3.2.0JA',
  '3.8.0E',
  '3.8.1E',
  '3.8.2E',
  '3.18.3bSP'
);

workarounds = make_list(CISCO_WORKAROUNDS['smart_install_check']);

reporting = make_array(
  'port'     , 0,
  'severity' , SECURITY_HOLE,
  'version'  , product_info['version'],
  'bug_id'   , 'CSCuy82367',
  'cmds'     , make_list('show vstack config')
);

cisco::check_and_report(
    product_info:product_info,
    workarounds:workarounds,
    reporting:reporting,
    vuln_versions:version_list,
    switch_only:TRUE
    );