Cisco IOS IP Detail Record DoS (cisco-sa-20160928-ipdr)

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

Description

According to its self-reported version, Cisco IOS is affected by a denial of service (DoS) vulnerability in the IP Detail Record (IPDR) due to improper handling of IPDR packets. An unauthenticated, remote attacker can exploit this, by sending crafted IPDR packets, to cause the device to reload and stop responding.

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 2f9650eeee2a709319ca7dd0e7a3ee8e7eb357b4b72fa38be99aa96a9259560966e30743aa24cca9a8a7e46b59d75b8a288e8e78392e2816085c0c2c3f450ad510f5879083ab1e7a6299814c13efeaedf748aebd0d1f6dca89d03755962fef7a3c21ff66001cd8a9d62d8e48f7f61d646205d926e284d2296b33a607d78b498b5803e411b0037ca1e835a21bf4cc91daa75503d794beb8427b38c3759d7f123aeb2612ede426c365acbc89a0620c59ed4d977da68528ba5403cafced7bbcad8d13922a0640fa6e9b2374abc44b2e8731e371f107cf80079348525290271d137f86ec41b16ba64e4b8e27d7998d611a0261fb4d5d44a2f7fbf4e0e7162235f46dde13274c281f1dd2d5a5af7369c7981364e248519382fba79e9e787c0358c0d34f046d1b6858580b26da4ed8f37b211e74b8b801eb80c5d500914fdf236f3a353436bfe0e64a4ed8a0eaf29a9d4cedd9e8c10d878345d367b7e8fee2b43700a9807ce7db7d752544a41fb0b3e521e314aa91a59f60f9e45a7b7e4a579a7fbfb6c80ba43bfb0061bcc98859a8efbfc1f23ddc05f2418aa94dec1d94fa7c26eba53d8b01eff209592dfe313eb43214962434ba5272a1aa305752f6f7c3cb15aad13ab05ba53736ecf7333302896aba96a5a61d396370512693c39a7590def0d19b4a8035d659ad32572f42eb7055c0ed66d0dde0f99a331e3c62212b897610b301
#
# (C) Tenable Network Security, Inc.
#

include('compat.inc');

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

  script_cve_id("CVE-2016-6379");
  script_bugtraq_id(93205);
  script_xref(name:"CISCO-BUG-ID", value:"CSCuu35089");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20160928-ipdr");

  script_name(english:"Cisco IOS IP Detail Record DoS (cisco-sa-20160928-ipdr)");

  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 is affected by a denial of service (DoS) vulnerability in the IP
Detail Record (IPDR) due to improper handling of IPDR packets. An unauthenticated, remote attacker can exploit this, by
sending crafted IPDR packets, to cause the device to reload and stop responding.

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-ipdr
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?3196a03e");
  script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCuu35089");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug ID(s) CSCuu35089.");
  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-6379");

  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:cpe:/o:cisco:ios");
  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_version.nasl");
  script_require_keys("Host/Cisco/IOS/Version", "Host/Cisco/IOS/Model");

  exit(0);
}

include('audit.inc');
include('cisco_workarounds.inc');
include('ccf.inc');

product_info = cisco::get_product_info(name:'Cisco IOS');

# Checking models with regex, since ccf only does explicit ver list
#
# Cisco cBR Series Converged Broadband Routers
# Cisco uBR7200 Series Universal Broadband Routers - not a specific model on the software download page. 
# https://www.cisco.com/c/en/us/support/docs/broadband-cable/cable-modem-termination-systems-cmts/16044-7200ubr.html
# suggests that the last 2 digits might be free.
# Cisco uBR7225VXR Universal Broadband Routers - a specific model on the software download page, uBR7246VXR also exists
# Cisco uBR10000 Series Universal Broadband Routers - only uBR10012 seen on software download page

model = get_kb_item_or_exit('Host/Cisco/IOS/Model');
if(
    model !~ '^cBR' &&
    model !~ '^uBR7225VXR' &&
    model !~ '^uBR72[0-9]{2}([^V]|$)' &&
    model !~ '^uBR100[0-9]{2}'
)
  audit(AUDIT_DEVICE_NOT_VULN, model);

version_list = make_list(
  '12.2(33)CX',
  '12.2(33)CY',
  '12.2(33)CY1',
  '12.2(33)SCH',
  '12.2(33)SCH1',
  '12.2(33)SCH2',
  '12.2(33)SCH0a',
  '12.2(33)SCH3',
  '12.2(33)SCH2a',
  '12.2(33)SCH4',
  '12.2(33)SCH5',
  '12.2(33)SCH6',
  '12.2(33)SCI',
  '12.2(33)SCI1',
  '12.2(33)SCI1a',
  '15.6(2)SP3',
  '15.6(2)SP3b'
);

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

reporting = make_array(
  'port'     , 0,
  'severity' , SECURITY_HOLE,
  'version'  , product_info['version'],
  'bug_id'   , 'CSCuu35089',
  'cmds'     , make_list('show ipdr exporter')
);

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