Vulnerabilities > CVE-2019-1746 - Improper Input Validation vulnerability in Cisco IOS

047910
CVSS 6.1 - MEDIUM
Attack vector
ADJACENT_NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
low complexity
cisco
CWE-20
nessus

Summary

A vulnerability in the Cluster Management Protocol (CMP) processing code in Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, adjacent attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to insufficient input validation when processing CMP management packets. An attacker could exploit this vulnerability by sending malicious CMP management packets to an affected device. A successful exploit could cause the switch to crash, resulting in a DoS condition. The switch will reload automatically.

Vulnerable Configurations

Part Description Count
OS
Cisco
567

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Server Side Include (SSI) Injection
    An attacker can use Server Side Include (SSI) Injection to send code to a web application that then gets executed by the web server. Doing so enables the attacker to achieve similar results to Cross Site Scripting, viz., arbitrary code execution and information disclosure, albeit on a more limited scale, since the SSI directives are nowhere near as powerful as a full-fledged scripting language. Nonetheless, the attacker can conveniently gain access to sensitive files, such as password files, and execute shell commands.
  • Cross Zone Scripting
    An attacker is able to cause a victim to load content into their web-browser that bypasses security zone controls and gain access to increased privileges to execute scripting code or other web objects such as unsigned ActiveX controls or applets. This is a privilege elevation attack targeted at zone-based web-browser security. In a zone-based model, pages belong to one of a set of zones corresponding to the level of privilege assigned to that page. Pages in an untrusted zone would have a lesser level of access to the system and/or be restricted in the types of executable content it was allowed to invoke. In a cross-zone scripting attack, a page that should be assigned to a less privileged zone is granted the privileges of a more trusted zone. This can be accomplished by exploiting bugs in the browser, exploiting incorrect configuration in the zone controls, through a cross-site scripting attack that causes the attackers' content to be treated as coming from a more trusted page, or by leveraging some piece of system functionality that is accessible from both the trusted and less trusted zone. This attack differs from "Restful Privilege Escalation" in that the latter correlates to the inadequate securing of RESTful access methods (such as HTTP DELETE) on the server, while cross-zone scripting attacks the concept of security zones as implemented by a browser.
  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.

Nessus

NASL familyCISCO
NASL idCISCO-SA-20190327-CMP-DOS.NASL
descriptionAccording to its self-reported version, Cisco IOS XE Software is affected by A vulnerability in the Cluster Management Protocol (CMP) processing code in Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, adjacent attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to insufficient input validation when processing CMP management packets. An attacker could exploit this vulnerability by sending malicious CMP management packets to an affected device. A successful exploit could cause the switch to crash, resulting in a DoS condition. The switch will reload automatically. Please see the included Cisco BIDs and Cisco Security Advisory for more information
last seen2020-04-30
modified2019-04-24
plugin id124277
published2019-04-24
reporterThis script is Copyright (C) 2019-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/124277
titleCisco IOS and IOS XE Software Cluster Management Protocol Denial of Service Vulnerability
code
#TRUSTED 175e62f7a4e1a4d5356f42d1cbc99cde589e4a73718eecee3c550f511569392a19e5a46fa195736efc028caac46d5fc8089ab000af2f442064240180bbe614d38593dd25bfc731f230e6a3cb2c772ef81ee9e719a0f0b494adbca39e5c5d12ea5a1a0990632d8a7bcb1d5adfe7b9ae57ced1a1098204976436ac1b4c3a7eb78196c1caab2b3b11280865d1d714e883b3776c2d2b7188e4d1b2d35bafba2017ddcb3cc76537b09317812dbdaa072cf31ae652fe497d6037a73e0837ad95b826a357e8c98a2f011ae1c0626f7a9da74555a81a1509f8a8aec34f9a0ecaf97599f86d6fcdc30b9435fd9c23cd999d027ad5d07403a136ca932bd27ae6bd18303c0aec0ad5b9b507220a7623375c67496ba2b2e60cf526ca8e28607ce2c53a4d40214a0f9de938f83875dfa2e3647e5439b96bcf22cb7857e67c2e02f0cfb57a3e7f0332c40679567e36628ba5017aa87509f60eb5dfca62f92925f9989cf114f8d0aef5045a58586406e9cb0c49c367ff9cde2464efe8b6143fa663672053d57f078012319139e78011fb1de3a7b4c6d19a8b6cc99eeedcdd84a651c4386c1769f27f6cd50b58f353c85dca59fe71f71a6b3486edfd3b7e74b7147536512704ae20266617c55205f379a9ce1c2c4b8d54088d8e70262b63e8b9eacab29688a3f54d1e0e2ce92998ef50a0da792d0e300cf9548993c22b420885b18a5c7b1950f9c1
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(124277);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/27");

  script_cve_id("CVE-2019-1746");
  script_xref(name:"CWE", value:"CWE-20");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvj25068");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvj25124");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20190327-cmp-dos");

  script_name(english:"Cisco IOS and IOS XE Software Cluster Management Protocol Denial of Service Vulnerability");
  script_summary(english:"Checks the version of Cisco IOS XE Software");

  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 Cluster Management
Protocol (CMP) processing code in Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, adjacent
attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to insufficient
input validation when processing CMP management packets. An attacker could exploit this vulnerability by sending
malicious CMP management packets to an affected device. A successful exploit could cause the switch to crash, resulting
in a DoS condition. The switch will reload automatically.

Please see the included Cisco BIDs and Cisco Security Advisory for more information");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190327-cmp-dos
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?69f78412");
  script_set_attribute(attribute:"see_also", value:"http://tools.cisco.com/security/center/viewErp.x?alertId=ERP-71135");
  script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvj25124");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco bug ID CSCvj25124");
  script_set_cvss_base_vector("CVSS2#AV:A/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:A/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-2019-1746");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2019/03/27");
  script_set_attribute(attribute:"patch_publication_date", value:"2019/03/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2019/04/24");

  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-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("audit.inc");
include("cisco_workarounds.inc");
include("ccf.inc");

product_info = cisco::get_product_info(name:"Cisco IOS XE Software");

version_list=make_list(
  "3.9.2bE",
  "3.9.2E",
  "3.9.1E",
  "3.9.0E",
  "3.8.7E",
  "3.8.6E",
  "3.8.5aE",
  "3.8.5E",
  "3.8.4E",
  "3.8.3E",
  "3.8.2E",
  "3.8.1E",
  "3.8.0E",
  "3.7.5E",
  "3.7.4E",
  "3.7.3E",
  "3.7.2E",
  "3.7.1E",
  "3.7.0E",
  "3.6.9E",
  "3.6.8E",
  "3.6.7bE",
  "3.6.7aE",
  "3.6.7E",
  "3.6.6E",
  "3.6.5bE",
  "3.6.5aE",
  "3.6.5E",
  "3.6.4E",
  "3.6.3E",
  "3.6.2aE",
  "3.6.2E",
  "3.6.1E",
  "3.6.10E",
  "3.6.0bE",
  "3.6.0aE",
  "3.6.0E",
  "3.5.8SQ",
  "3.5.7SQ",
  "3.5.6SQ",
  "3.5.5SQ",
  "3.5.4SQ",
  "3.5.3SQ",
  "3.5.3E",
  "3.5.2SQ",
  "3.5.2E",
  "3.5.1SQ",
  "3.5.1E",
  "3.5.0SQ",
  "3.5.0E",
  "3.4.8SG",
  "3.4.7SG",
  "3.4.6SG",
  "3.4.5SG",
  "3.4.4SG",
  "3.4.3SG",
  "3.4.2SG",
  "3.4.1SQ",
  "3.4.1SG",
  "3.4.0SQ",
  "3.4.0SG",
  "3.3.2XO",
  "3.3.2SG",
  "3.3.1XO",
  "3.3.1SQ",
  "3.3.1SG",
  "3.3.0XO",
  "3.3.0SQ",
  "3.3.0SG",
  "3.2.9SG",
  "3.2.8SG",
  "3.2.7SG",
  "3.2.6SG",
  "3.2.5SG",
  "3.2.4SG",
  "3.2.3SG",
  "3.2.2SG",
  "3.2.1SG",
  "3.2.11SG",
  "3.2.10SG",
  "3.2.0SG",
  "3.16.1S",
  "3.16.10S",
  "3.16.0bS",
  "3.12.0aS",
  "3.10.4S",
  "3.10.1sE",
  "3.10.1aE",
  "3.10.1E",
  "3.10.0cE",
  "3.10.0E",
  "16.9.2h",
  "16.12.1"
);

workarounds = make_list(CISCO_WORKAROUNDS['cluster']);
workaround_params = {'is_configured' : 1};

reporting = make_array(
'port'     , 0,
'severity' , SECURITY_WARNING,
'version'  , product_info['version'],
'bug_id'   , "CSCvj25068, CSCvj25124"
);

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