Vulnerabilities > CVE-2014-2113 - Improper Input Validation vulnerability in Cisco IOS and IOS XE

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

Summary

Cisco IOS 15.1 through 15.3 and IOS XE 3.3 and 3.5 before 3.5.2E; 3.7 before 3.7.5S; and 3.8, 3.9, and 3.10 before 3.10.2S allow remote attackers to cause a denial of service (I/O memory consumption and device reload) via a malformed IPv6 packet, aka Bug ID CSCui59540.

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-IPV6-IOSXE.NASL
    descriptionAccording to its self-reported version, the version of Cisco IOS XE running on the remote host is affected by a denial of service vulnerability in the IPv6 protocol stack. This issue exists due to improper handling of certain, unspecified types of IPv6 packets. An unauthenticated, remote attacker could potentially exploit this issue by sending a specially crafted IPv6 packet resulting in a denial of service. Note that this issue only affects hosts with IPv6 enabled.
    last seen2019-10-28
    modified2014-04-04
    plugin id73343
    published2014-04-04
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73343
    titleCisco IOS XE Software IPv6 Denial of Service (cisco-sa-20140326-ipv6
    code
    #TRUSTED 169e67836c356066715c6e1cee161fa08d491ab11d6605fccec5b9f125d8b1cdc0efa33e3383c9122627d89ef11c688f1d7025881275b840ddd96e9d2a700dec38c134856b072413b21b97628cc854a792b88fd425cb603bc4c12dc4720de6f4a4a4078f9997abeecd999e2a3045925657dce4b316af58647c8e5951ddfdd3e4782a15400c3c2755421521f857555b77cfe2fbad66c01841d775d46487d25f0df288cded2c180488a6fdaf4f01abdb028f4ec1b6ce42ae26d0c5666bd6f9848d883af947a8a01e447b2a96056bbb88836c73c2afda3e783623cd1264c3def767ab218e00a20c0bc25df4f0da0cfee6c9e30eb6e4451f0747bdb3a93816fef85090a0c8cdad8e6339582a0406e8e23a50633750614254c41d94913eaa9048968663508e31bbe1881ed3f80c90888d3bf6e94c07784866ee96bba5f5f80a0c715ce823e3d63b6aacd95af63d91917f29c8dbb5f254b1114faa8fd87ebaeaaae37d061f7c35a64d42da569991d47f7a3f9cbf37f254580b522b5d43582f0a8abdad5f97df999ebc50822f0a321eb31b5061cc1d161786044bee07e6a38aa22970b1db482bdea1f8f1ac5e6216de5de18150d616b6f9b18d99c233e50f93d597cec5ea81a0119c2159162a99ca43940515a42ac167e3e2988a4d09075f5e9444bd724f69a2358be64636b1b46580fea462ee768c29f231641ce46a7a3002b80fcf72
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(73343);
      script_version("1.10");
      script_set_attribute(attribute:"plugin_modification_date", value:"2018/11/15");
    
      script_cve_id("CVE-2014-2113");
      script_bugtraq_id(66467);
      script_xref(name:"CISCO-BUG-ID", value:"CSCui59540");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20140326-ipv6");
    
      script_name(english:"Cisco IOS XE Software IPv6 Denial of Service (cisco-sa-20140326-ipv6");
      script_summary(english:"Checks the IOS XE version.");
    
      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, the version of Cisco IOS XE
    running on the remote host is affected by a denial of service
    vulnerability in the IPv6 protocol stack. This issue exists due to
    improper handling of certain, unspecified types of IPv6 packets. An
    unauthenticated, remote attacker could potentially exploit this issue
    by sending a specially crafted IPv6 packet resulting in a denial of
    service.
    
    Note that this issue only affects hosts with IPv6 enabled.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140326-ipv6
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0ffd6d00");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=33351");
      script_set_attribute(attribute:"solution", value:
    "Apply the relevant patch referenced in Cisco Security Advisory
    cisco-sa-20140326-ipv6.");
      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_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_xe");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2014/03/26");
      script_set_attribute(attribute:"patch_publication_date", value:"2014/01/31");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/04/04");
    
      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_xe_version.nasl");
      script_require_keys("Host/Cisco/IOS-XE/Version");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("cisco_func.inc");
    include("cisco_kb_cmd_func.inc");
    
    flag = 0;
    override = 0;
    report = "";
    fixed_ver = "";
    cbi = "CSCui59540";
    
    ver = get_kb_item_or_exit("Host/Cisco/IOS-XE/Version");
    
    # 3.7xS
    if (ver == '3.7.0S' || ver == '3.7.1S' || ver == '3.7.2S' || ver == '3.7.3S' || ver == '3.7.4S')
             fixed_ver = '3.7.5S';
    
    # 3.5xE
    else if (ver == '3.5.0E' || ver == '3.5.1E')
             fixed_ver = '3.5.2E';
    
    # 3.3xXO
    else if (ver == '3.3.0XO)')
             fixed_ver = '3.6.0E';
    
    # 3.8xS
    else if (ver == '3.8.0S' || ver == '3.8.1S' || ver == '3.8.2S')
             fixed_ver = '3.10.2S';
    # 3.9xS
    else if (ver == '3.9.0S' || ver == '3.9.1S')
             fixed_ver = '3.10.2S';
    # 3.10xS
    else if (ver == '3.10.0S' || ver == '3.10.1S')
             fixed_ver = '3.10.2S';
    
    
    
    if (fixed_ver) flag++;
    
    if (get_kb_item("Host/local_checks_enabled"))
    {
      if (flag)
      {
        flag = 0;
        buf = cisco_command_kb_item("Host/Cisco/Config/show_ipv6_interface", "show ipv6 interface");
        if (check_cisco_result(buf))
        {
          if (preg(multiline: TRUE, pattern:"IPv6\s+is\s+enabled", string:buf)) { flag = 1; }
        } else if (cisco_needs_enable(buf)) { flag = 1; override = 1; }
      }
    }
    
    if (flag)
    {
      report +=
        '\n  Cisco Bug ID        : ' + cbi +
        '\n    Installed release : ' + ver +
        '\n    Fixed release     : ' + fixed_ver + '\n';
      security_hole(port:0, extra:report + cisco_caveat(override));
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCISCO
    NASL idCISCO-SA-20140326-IPV6.NASL
    descriptionAccording to its self-reported version, the version of Cisco IOS running on the remote host is affected by a denial of service vulnerability in the IPv6 protocol stack. This issue exists due to improper handling of certain, unspecified types of IPv6 packets. An unauthenticated, remote attacker could potentially exploit this issue by sending a specially crafted IPv6 packet resulting in a denial of service. Note that this only affects hosts with IPv6 enabled.
    last seen2019-10-28
    modified2014-04-04
    plugin id73344
    published2014-04-04
    reporterThis script is Copyright (C) 2014-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/73344
    titleCisco IOS Software IPv6 Denial of Service (cisco-sa-20140326-ipv6
    code
    #TRUSTED 6355abb6bf5ba285194b8d0b4535aed2f6ca1c3880b823422b5de22aad999a45ee5a9007c2bbfee1111a4c933696c2311e1b4ba7329f48bb62a9b69c2f336dc8444fd68392f05b5a4bad255cc5a73e0cf514ba4bd5b17d4d0babf0ac89bcf47308408887c674fea1582d25ee089bbaa41c25ad2af20d2c12bf30f7e8d131c0eea6287f1faa818bd301b44afa21efa8c3f57562798d4a4e5570054b24e6767a3fbb076ea7fc25ff96af7bd1836b63c497cc8ca7318974ffc3229d22b7ce91ebf0e0d08c5348a7e21a3b5b8dafb1a4236b0144f4f7f52064553c1bba8177048c37e427b992aedc43310c9e634320e14d78af3bcd37793e0e37b57e1b6392c312fb3ddd41bdda2d11e451761bc7753df66157e26be511273d95b05ad925e067cdc3083ce155e51ab3687ff154701464365d2557283ea4b4459e1eaab1024cb70b42f622e3ac0c7666e284491690c771035a7852cbc9b4586281773ea9ebd50fb2f4bd03bf531aad665bcbced6e7be19e1b866b5b838c46c1b5c7bd2ff5d8f113dba26423088718193f417fcb3143a2d590acc5f56e38081e9ef4ffd11eefee12e15eada421454c35a8f1c2ff218c81b64ccb14cc197992d381ae05f8c1a0b88bbc59022e32987cfef505ff7384c20b31a8e3e900e55af1e124679c0617693b46585ff804b6baa54383af95e76346cfa5b09bf5c60c9c7742fb514eddb4860d6ac1b
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(73344);
      script_version("1.8");
      script_set_attribute(attribute:"plugin_modification_date", value:"2018/11/15");
    
      script_cve_id("CVE-2014-2113");
      script_bugtraq_id(66467);
      script_xref(name:"CISCO-BUG-ID", value:"CSCui59540");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20140326-ipv6");
    
      script_name(english:"Cisco IOS Software IPv6 Denial of Service (cisco-sa-20140326-ipv6");
      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:
    "According to its self-reported version, the version of Cisco IOS
    running on the remote host is affected by a denial of service
    vulnerability in the IPv6 protocol stack. This issue exists due to
    improper handling of certain, unspecified types of IPv6 packets. An
    unauthenticated, remote attacker could potentially exploit this issue
    by sending a specially crafted IPv6 packet resulting in a denial of
    service.
    
    Note that this only affects hosts with IPv6 enabled.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20140326-ipv6
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0ffd6d00");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=33351");
      script_set_attribute(attribute:"solution", value:
    "Apply the relevant patch referenced in Cisco Security Advisory
    cisco-sa-20140326-ipv6.");
      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_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/01/31");
      script_set_attribute(attribute:"plugin_publication_date", value:"2014/04/04");
    
      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;
    report = "";
    fixed_ver = "";
    cbi = "CSCui59540";
    
    ver = get_kb_item_or_exit("Host/Cisco/IOS/Version");
    
    #15.2E
    if (ver == "15.2(1)E" || ver == "15.2(1)E1")
      fixed_ver = "15.2(1)E2";
    #15.2EY
    else if (ver == "15.2(1)EY")
      fixed_ver = "15.2(1)E2";
    #15.2GC
    else if (ver == "15.2(4)GC")
      fixed_ver = "15.2(4)GC1";
    #15.2JA
    else if (ver == "15.2(4)JA" || ver == "15.2(4)JA1")
      fixed_ver = "Refer to the vendor for a fix.";
    #15.2JAY
    else if (ver == "15.2(4)JAY")
      fixed_ver = "Refer to the vendor for a fix.";
    #15.2JB
    else if (ver == "15.2(4)JB" || ver == "15.2(4)JB1" || ver == "15.2(4)JB2" || ver == "15.2(4)JB3" || ver == "15.2(4)JB3a")
      fixed_ver = "Refer to the vendor for a fix.";
    #15.2JN
    else if (ver == "15.2(4)JN")
      fixed_ver = "Refer to the vendor for a fix.";
    #15.2M
    else if (ver == "15.2(4)M" || ver == "15.2(4)M1" || ver == "15.2(4)M2" || ver == "15.2(4)M3" || ver == "15.2(4)M4" || ver == "15.2(4)M5")
      fixed_ver = "15.2(4)M6";
    #15.2S
    else if (ver == "15.2(4)S" || ver == "15.2(4)S0c" || ver == "15.2(4)S1" || ver == "15.2(4)S2" || ver == "15.2(4)S3" || ver == "15.2(4)S3a" || ver == "15.2(4)S4" || ver == "15.2(4)S4a")
      fixed_ver = "15.2(4)S5";
    #15.2XB
    else if (ver == "15.2(4)XB10")
      fixed_ver = "Refer to the vendor for a fix.";
    #15.3M
    else if (ver == "15.3(3)M" || ver == "15.3(3)M1")
      fixed_ver = "15.3(3)M2";
    #15.3S
    else if (ver == "15.3(1)S" || ver == "15.3(1)S1" || ver == "15.3(1)S1e" || ver == "15.3(1)S2" || ver == "15.3(2)S" || ver == "15.3(2)S0a" || ver == "15.3(2)S0xa" || ver == "15.3(2)S1" || ver == "15.3(2)S1b" || ver == "15.3(2)S1c" || ver == "15.3(2)S2" || ver == "15.3(3)S" || ver == "15.3(3)S0b" || ver == "15.3(3)S1" || ver == "15.3(3)S1a")
      fixed_ver = "15.3(3)S2";
    #15.3T
    else if (ver == "15.3(1)T" || ver == "15.3(1)T1" || ver == "15.3(1)T2" || ver == "15.3(1)T3" || ver == "15.3(2)T" || ver == "15.3(2)T1" || ver == "15.3(2)T2")
      fixed_ver = "15.3(2)T3 / 15.3(1)T4";
    
    
    
    if (fixed_ver) flag++;
    
    if (get_kb_item("Host/local_checks_enabled"))
    {
      if (flag)
      {
        flag = 0;
        buf = cisco_command_kb_item("Host/Cisco/Config/show_ipv6_interface", "show ipv6 interface");
        if (check_cisco_result(buf))
        {
          if (preg(multiline: TRUE, pattern:"IPv6\s+is\s+enabled", string:buf)) { flag = 1; }
        } else if (cisco_needs_enable(buf)) { flag = 1; override = 1; }
      }
    }
    
    if (flag)
    {
      report +=
        '\n  Cisco Bug ID        : ' + cbi +
        '\n    Installed release : ' + ver +
        '\n    Fixed release     : ' + fixed_ver + '\n';
      security_hole(port:0, extra:report + cisco_caveat(override));
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");