Vulnerabilities > CVE-2014-2107 - Improper Input Validation vulnerability in Cisco IOS

047910
CVSS 7.1 - HIGH
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
network
cisco
CWE-20
nessus

Summary

Cisco IOS 12.2 and 15.0 through 15.3, when used with the Kailash FPGA before 2.6 on RSP720-3C-10GE and RSP720-3CXL-10GE devices, allows remote attackers to cause a denial of service (route switch processor outage) via crafted IP packets, aka Bug ID CSCug84789.

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-20140326-RSP72010GE.NASL
descriptionA vulnerability exists in Cisco 7600 Series Route Switch Processor 720 with 10 Gigabit Ethernet Uplinks that could allow a remote, unauthenticated attacker to cause the route processor to reboot or stop forwarding traffic, resulting in a denial of service condition. This vulnerability affects models RSP720-3C-10GE and RSP720-3CXL-10GE that have onboard Kailash FPGA versions prior to 2.6 and are running an affected version of Cisco IOS Software.
last seen2019-10-28
modified2014-03-31
plugin id73269
published2014-03-31
reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/73269
titleCisco 7600 Series Route Switch Processor 720 with 10 Gigabit Ethernet Uplinks Denial of Service (cisco-sa-20140326-RSP72010GE)
code
#TRUSTED 7d7e809cb3b429fb2717a1a1100a60ad6fa5588d40e874cd67c9843de9531e5268e8ee0f48765dae42a9ee8c0c6ed8d7aade26850ee4d5d3ffedc20378c84f34483041e29b9ccf1b8789f8e12ecfaa3731a83c852720fd610a238ff0d542004c1612f561d97862d04cab91eb0f91edec198c5b60dab4ac86f6934eeb74aa3917094327fae921bdd9ab0d4d8040240feb06debb580e24fbb09d7000c3938ec64bf353051ce6f1bcebc8accdc874f71728fa31cae7b0597a5c47e7e5a75132e57e5605539a20d052a12572ce864ed80a00c52836bf48beebb35f4a6a12d2c96bc2358915f81a0ade9e68a1a588ee79285fde08af5e46ebda76a1b7c4c2a5246b056f886003c4653bd1eeeda005078bb94bd9d9430f7fb6cce371002d1ff14e7ab969346bb3784fa24638cf38075287a70e420e69f51348741fda758a1373f7ca3207aa16c59c8a2cc3fef6247bccae26668822cac0881d8ee7034a28da4e6261b95b28b2bc1823ddfb74ce9576877c2e23a8c510c23b9deaed51d365b99a335bc52422f2e26bd45d6eb8b00bf0339d4bee3ef893b4566cc1b4c75399dc957e520394e045ef5c1fb6bca9e9abac134ec0c93ba3067af4068221a7915531986520305b9c7aab3aa0406cfd86ca0ee4f3401b5e09d0cb756778bdc574d4d8c69dcc9a44a3caecb7b81bc7fda54bdba8d06f5e85c3363629cd36149df9fa9efd816dfa
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Cisco Security Advisory cisco-sa-20131106-sip.
# The text itself is copyright (C) Cisco
#

include("compat.inc");

if (description)
{
  script_id(73269);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2018/11/15");

  script_cve_id("CVE-2014-2107");
  script_bugtraq_id(66468);
  script_xref(name:"CISCO-BUG-ID", value:"CSCug84789");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20140326-RSP72010GE");

  script_name(english:"Cisco 7600 Series Route Switch Processor 720 with 10 Gigabit Ethernet Uplinks Denial of Service (cisco-sa-20140326-RSP72010GE)");
  script_summary(english:"Checks the IOS version.");

  script_set_attribute(attribute:"synopsis", value:"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"A vulnerability exists in Cisco 7600 Series Route Switch Processor
720 with 10 Gigabit Ethernet Uplinks that could allow a remote,
unauthenticated attacker to cause the route processor to reboot or
stop forwarding traffic, resulting in a denial of service condition.

This vulnerability affects models RSP720-3C-10GE and RSP720-3CXL-10GE
that have onboard Kailash FPGA versions prior to 2.6 and are running
an affected version of Cisco IOS Software.");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140326-RSP72010GE
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?7bc99620");
  script_set_attribute(attribute:"solution", value:
"Apply the relevant patch referenced in Cisco Security Advisory
cisco-sa-20140326-RSP72010GE.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:N/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

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

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/03/26");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/03/26");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/03/31");

  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
  script_family(english:"CISCO");

  script_dependencies("cisco_ios_version.nasl");
  script_require_keys("Host/Cisco/IOS/Version");

  exit(0);
}

include("audit.inc");
include("cisco_func.inc");
include("cisco_kb_cmd_func.inc");

flag = 0;
override = 0;
cbi = "CSCug84789";

ver = get_kb_item_or_exit("Host/Cisco/IOS/Version");
if (ver == '12.2SRC') flag++;
if (ver == '12.2(33)SRC') flag++;
if (ver == '12.2(33)SRC1') flag++;
if (ver == '12.2(33)SRC2') flag++;
if (ver == '12.2(33)SRC3') flag++;
if (ver == '12.2(33)SRC4') flag++;
if (ver == '12.2(33)SRC5') flag++;
if (ver == '12.2(33)SRC6') flag++;
if (ver == '12.2SRD') flag++;
if (ver == '12.2(33)SRD') flag++;
if (ver == '12.2(33)SRD1') flag++;
if (ver == '12.2(33)SRD2') flag++;
if (ver == '12.2(33)SRD2a') flag++;
if (ver == '12.2(33)SRD3') flag++;
if (ver == '12.2(33)SRD4') flag++;
if (ver == '12.2(33)SRD4a') flag++;
if (ver == '12.2(33)SRD5') flag++;
if (ver == '12.2(33)SRD6') flag++;
if (ver == '12.2(33)SRD7') flag++;
if (ver == '12.2(33)SRD8') flag++;
if (ver == '12.2SRE') flag++;
if (ver == '12.2(33)SRE') flag++;
if (ver == '12.2(33)SRE0a') flag++;
if (ver == '12.2(33)SRE1') flag++;
if (ver == '12.2(33)SRE2') flag++;
if (ver == '12.2(33)SRE3') flag++;
if (ver == '12.2(33)SRE4') flag++;
if (ver == '12.2(33)SRE5') flag++;
if (ver == '12.2(33)SRE6') flag++;
if (ver == '12.2(33)SRE7') flag++;
if (ver == '12.2(33)SRE7a') flag++;
if (ver == '12.2(33)SRE8') flag++;
if (ver == '12.2(33)SRE9') flag++;
if (ver == '12.2(33)SRE9a') flag++;
if (ver == '12.2ZI') flag++;
if (ver == '12.2(33)ZI') flag++;
if (ver == '12.2ZZ') flag++;
if (ver == '12.2(33)ZZ') flag++;
if (ver == '15.0S') flag++;
if (ver == '15.0(1)S') flag++;
if (ver == '15.0(1)S1') flag++;
if (ver == '15.0(1)S2') flag++;
if (ver == '15.0(1)S3a') flag++;
if (ver == '15.0(1)S4') flag++;
if (ver == '15.0(1)S4a') flag++;
if (ver == '15.0(1)S5') flag++;
if (ver == '15.0(1)S6') flag++;
if (ver == '15.1S') flag++;
if (ver == '15.1(1)S') flag++;
if (ver == '15.1(1)S1') flag++;
if (ver == '15.1(1)S2') flag++;
if (ver == '15.1(2)S') flag++;
if (ver == '15.1(2)S1') flag++;
if (ver == '15.1(2)S2') flag++;
if (ver == '15.1(3)S') flag++;
if (ver == '15.1(3)S0a') flag++;
if (ver == '15.1(3)S1') flag++;
if (ver == '15.1(3)S2') flag++;
if (ver == '15.1(3)S3') flag++;
if (ver == '15.1(3)S4') flag++;
if (ver == '15.1(3)S6') flag++;
if (ver == '15.2S') flag++;
if (ver == '15.2(1)S') flag++;
if (ver == '15.2(1)S1') flag++;
if (ver == '15.2(1)S2') flag++;
if (ver == '15.2(2)S') flag++;
if (ver == '15.2(2)S1') flag++;
if (ver == '15.2(2)S2') flag++;
if (ver == '15.2(4)S') flag++;
if (ver == '15.2(4)S1') flag++;
if (ver == '15.2(4)S3a') flag++;
if (ver == '15.2(4)S4') flag++;
if (ver == '15.2(4)S4a') flag++;
if (ver == '15.3S') flag++;
if (ver == '15.3(1)S') flag++;
if (ver == '15.3(1)S2') flag++;
if (ver == '15.3(2)S') flag++;
if (ver == '15.3(2)S0a') flag++;
if (ver == '15.3(2)S1') flag++;
if (ver == '15.3(2)S2') flag++;
if (ver == '15.3(3)S') flag++;
if (ver == '15.3(3)S1') flag++;

if (get_kb_item("Host/local_checks_enabled") && flag)
{
  flag = 0;
  buf = cisco_command_kb_item("Host/Cisco/Config/show_module", "show module");
  if (check_cisco_result(buf))
  {
    pattern = "(\d+)\s+\d+\s+Route Switch Processor 720.*?(RSP720-3CXL-10GE|RSP720-3C-10GE)";
    match = eregmatch(string:buf, pattern:pattern);
    if (!isnull(match))
    {
      temp_flag = 1;
      slot = match[1];
    }
  }
  else if (cisco_needs_enable(buf)) override = 1;

  if (temp_flag)
  {
    buf = cisco_command_kb_item(
      "Host/Cisco/Config/show_asic-version_slot_" + slot,
      "show asic-version slot " + slot);
    if (check_cisco_result(buf))
    {
      pattern = "KAILASH\s+\d+\s+\(((?:\d+\.)*\d+)\)";
      match = eregmatch(string:buf, pattern:pattern);
      if (!isnull(match) && ver_compare(ver:match[1], fix:"2.6", strict:FALSE) == -1) flag = 1;
    }
    else if (cisco_needs_enable(buf)) override = 1;
  }

  if (override) flag = 1;
}

if (flag)
{
  report =
    '\n  Cisco Bug ID      : ' + cbi +
    '\n  Installed release : ' + ver + '\n';
  security_hole(port:0, extra:report + cisco_caveat(override));
  exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");

Seebug

bulletinFamilyexploit
descriptionCVE(CAN) ID: CVE-2014-2107 Cisco IOS是多数思科系统路由器和网络交换机上使用的互联网络操作系统。 Cisco 7600 Series Route Switch Processor 720 with 10 Gigabit Ethernet Uplinks models RSP720-3C-10GE/RSP720-3CXL-10GE版本存在安全漏洞,未经身份验证的远程攻击者利用此漏洞可造成路由处理器重新启动或停止转发流量。此漏洞源于Kailash field-programmable gate array (FPGA) 2.6之前版本内的错误。 0 Cisco IOS 15.x Cisco IOS 12.2 Cisco已经为此发布了一个安全公告(cisco-sa-20140326-RSP72010GE)以及相应补丁: http://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140326-RSP72010GE
idSSV:61975
last seen2017-11-19
modified2014-03-28
published2014-03-28
reporterRoot
titleCisco 7600 Series Route Switch Processor 720 with 10 Gigabit Ethernet Up模块拒绝服务漏洞