Vulnerabilities > CVE-2015-0636 - 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

The Autonomic Networking Infrastructure (ANI) implementation in Cisco IOS 12.2, 12.4, 15.0, 15.2, 15.3, and 15.4 and IOS XE 3.10.xS through 3.13.xS before 3.13.1S allows remote attackers to cause a denial of service (disrupted domain access) via spoofed AN messages that reset a finite state machine, aka Bug ID CSCup62293.

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-20150325-ANI-IOS.NASL
    descriptionAccording to its self-reported version, the Cisco IOS software running on the remote device is affected by the following vulnerabilities in the Autonomic Networking Infrastructure (ANI) : - A flaw exists in the ANI implementation due to failing to properly validate Autonomic Networking (AN) response messages. An unauthenticated, remote attacker, using crafted AN messages, can boot the device into an untrusted automatic domain, thus gaining limited control of the AN node and disrupting access to legitimate domains, resulting in a denial of service. (CVE-2015-0635) - A denial of service vulnerability exists in the ANI due to improperly handling AN messages that can reset the finite state machine. An unauthenticated, remote attacker, using a specially crafted AN message, can spoof an existing AN node, allowing disruption of access to the automatic domain. (CVE-2015-0636) - A denial of service vulnerability exists in the ANI due to improperly validating received AN messages. An unauthenticated, remote attacker, using crafted AN messages spoofing the device, can cause the device to reload. (CVE-2015-0637) Note that these issues only affect devices with ANI enabled.
    last seen2020-06-01
    modified2020-06-02
    plugin id82584
    published2015-04-06
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/82584
    titleCisco IOS Autonomic Networking Infrastructure Multiple Vulnerabilities (cisco-sa-20150325-ani)
    code
    #TRUSTED 540d6fef74a02138d7e4da3843ab11f7efe1a519d53dd80e36ebd264387761314199dd918740ad4dab87d75b8b1c130054b9c5d468336f32c54994638ea3326080cc3148504e1724100c1aad0d77b2efd2ef4f5b96d33d901adda1e531e78f38c8dacef33b6fb8c6be3e15fe2537900da9a18140d21c94bd09e86486f1f615ceaa9878c899b939b8c7e2ea207367959aad34ebba988e2285f91b3d699769d5b82ff0b8cb270a029d15ae29077634297011de4dbcfc181cd4bdbe26ecfaabd985cc4260ec6311e2695b6972d0570b1d1dbdcd9cc931f09a8cb82038f75af96e99b85af7b415770b076839ecf34e224e49887e3006f8174ac3f2a12fbd319760c61036a772d167087fc6da589877a71d0ed0f200dcfee4528bb4baa9fd719a6d800b844f44c71a82c4a4057fcf637f4b29a1b934561ad48a1d9afd09c9f6db0259923c77c2a0ac7ddd66a4c4bf55037efc37e3e32e3cc328bc41675cf37293863eb6c7cfb3d07b52c465d7acd2bc21bf1cbf4928b89ce105dbb138487cf2017c192f0f7f67671dd176e424acb1634173ec45d7545ab27ddf5710b6a6fcc84056aadaf9f3b5495495c01fedba7f8f40ce44dcce2cb1c3fa9040280c2b50bb9439f5f2a94398848f289972bd26f2a45f4c54cb207d2524c970a84c2659a622c8cc79afe36f9d969f822248bea7a7dafd7f794936566e91076e75f093503a5e803766
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(82584);
      script_version("1.12");
      script_cvs_date("Date: 2019/11/22");
    
      script_cve_id("CVE-2015-0635", "CVE-2015-0636", "CVE-2015-0637");
      script_bugtraq_id(73339, 73341, 73343);
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62191");
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62293");
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62315");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20150325-ani");
    
      script_name(english:"Cisco IOS Autonomic Networking Infrastructure Multiple Vulnerabilities (cisco-sa-20150325-ani)");
      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 Cisco IOS software running
    on the remote device is affected by the following vulnerabilities in
    the Autonomic Networking Infrastructure (ANI) :
    
      - A flaw exists in the ANI implementation due to failing
        to properly validate Autonomic Networking (AN) response
        messages. An unauthenticated, remote attacker, using
        crafted AN messages, can boot the device into an
        untrusted automatic domain, thus gaining limited control
        of the AN node and disrupting access to legitimate
        domains, resulting in a denial of service.
        (CVE-2015-0635)
    
      - A denial of service vulnerability exists in the ANI due
        to improperly handling AN messages that can reset the
        finite state machine. An unauthenticated, remote
        attacker, using a specially crafted AN message, can
        spoof an existing AN node, allowing disruption of access
        to the automatic domain. (CVE-2015-0636)
    
      - A denial of service vulnerability exists in the ANI due
        to improperly validating received AN messages. An
        unauthenticated, remote attacker, using crafted AN
        messages spoofing the device, can cause the device to
        reload. (CVE-2015-0637)
    
    Note that these issues only affect devices with ANI enabled.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20150325-ani
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?dabca9f4");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37811");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37812");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37813");
      script_set_attribute(attribute:"solution", value:
    "Apply the relevant patch referenced in the Cisco Security Advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/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:"vuln_publication_date", value:"2015/03/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/04/03");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/04/06");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:cisco:ios");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CISCO");
    
      script_copyright(english:"This script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      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");
    
    model = get_kb_item_or_exit("Host/Cisco/IOS/Model");
    
    if (
      model !~ '^ASR90(1S?|3)$' &&
      model !~ '^ME-3(600X?|800)-'
    ) audit(AUDIT_HOST_NOT, 'affected');
    
    flag = 0;
    override = 0;
    
    ver = get_kb_item_or_exit("Host/Cisco/IOS/Version");
    
    # Check for vuln version
    if ( ver == '12.2(33)IRD1' ) flag++;
    if ( ver == '12.2(33)IRE3' ) flag++;
    if ( ver == '12.2(33)SXI4b' ) flag++;
    if ( ver == '12.2(44)SQ1' ) flag++;
    if ( ver == '12.4(25e)JAM1' ) flag++;
    if ( ver == '12.4(25e)JAP1m' ) flag++;
    if ( ver == '12.4(25e)JAZ1' ) flag++;
    if ( ver == '15.0(2)ED1' ) flag++;
    if ( ver == '15.2(1)EX' ) flag++;
    if ( ver == '15.2(2)JB1' ) flag++;
    if ( ver == '15.3(2)S2' ) flag++;
    if ( ver == '15.3(3)JA1n' ) flag++;
    if ( ver == '15.3(3)JAB1' ) flag++;
    if ( ver == '15.3(3)JN' ) flag++;
    if ( ver == '15.3(3)JNB' ) flag++;
    if ( ver == '15.3(3)S' ) flag++;
    if ( ver == '15.3(3)S1' ) flag++;
    if ( ver == '15.3(3)S2' ) flag++;
    if ( ver == '15.3(3)S2a' ) flag++;
    if ( ver == '15.3(3)S3' ) flag++;
    if ( ver == '15.3(3)S4' ) flag++;
    if ( ver == '15.3(3)S5' ) flag++;
    if ( ver == '15.4(1)S' ) flag++;
    if ( ver == '15.4(1)S1' ) flag++;
    if ( ver == '15.4(1)S2' ) flag++;
    if ( ver == '15.4(1)S3' ) flag++;
    if ( ver == '15.4(2)S' ) flag++;
    if ( ver == '15.4(2)S1' ) flag++;
    if ( ver == '15.4(2)S2' ) flag++;
    if ( ver == '15.4(3)S' ) flag++;
    if ( ver == '15.4(2)SN' ) flag++;
    if ( ver == '15.4(2)SN1' ) flag++;
    if ( ver == '15.4(3)SN1' ) flag++;
    
    # Check that ANI is running
    if (flag && get_kb_item("Host/local_checks_enabled"))
    {
      flag = 0;
      buf = cisco_command_kb_item("Host/Cisco/Config/show_run_autonomic","show run | include autonomic");
      if (check_cisco_result(buf))
      {
        if (
          ( !empty_or_null(buf) ) &&
          ( "no autonomic" >!< buf )
        ) flag = 1;
      }
      else if (cisco_needs_enable(buf))
      {
        flag = 1;
        override = 1;
      }
    }
    
    if (flag)
    {
      if (report_verbosity > 0)
      {
        report =
          '\n  Cisco bug ID      : CSCup62191, CSCup62293, and CSCup62315' +
          '\n  Installed release : ' + ver +
          '\n';
        security_hole(port:0, extra:report + cisco_caveat(override));
        exit(0);
      }
      else security_hole(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familyCISCO
    NASL idCISCO-SA-20150325-ANI-IOSXE.NASL
    descriptionAccording to its self-reported version, the version of Cisco IOS running on the remote host is affected by the following vulnerabilities : - A flaw exists in the ANI due to failing to properly validate Autonomic Networking (AN) messages. This could allow a remote attacker to spoof an Autonomic Networking Registration Authority (ANRA) response and gain elevated privileges or cause a denial of service. (CVE-2015-0635) - A flaw exists in the ANI due to imporperly handling AN messages. This could allow a remote attacker, with a specially crafted AN message, to disrupt autonomic domain services. (CVE-2015-0636) - A flaw exists in the ANI due to improperly validating AN messages. This could allow a remote attacker, with a specially crafted An message, to cause the device to reload. (CVE-2015-0637) Note that these issues only affect devices with ANI enabled.
    last seen2020-06-01
    modified2020-06-02
    plugin id82585
    published2015-04-06
    reporterThis script is Copyright (C) 2015-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/82585
    titleCisco IOS XE Autonomic Networking Infrastructure Multiple Vulnerabilities (cisco-sa-20150325-ani)
    code
    #TRUSTED 55f8abc13bc01e2f86e92e52334ce8e23e2513e6af2b14d2d63bb99b01e2479e5ea93cb9035f17bfb4a5fb20755dfe7bbf1ebc750a1aec6be733d15b6927c80ee66f9484fd1d299b26ab06234974907d5aa056068b7f30d0ac0c9679cc3555791d528cd2aeddd68068917d7a4221d8f11fe17ca79e92b68d1ed3baeefb04261193df7f4205fbfe8317c50ad51b8b56da858500e676b28e4377d5626d880d361b94fd1805fda0e77a1d2bb8971fb463ea2a5046053cd5703b95f882840e24d9420e0645bdbb2935a6ae1bcead380cbc48a832655f02e1c7f229a039414bdf9d074b3f952fc642ccb0f571a2bf2de7dc2ab2a12c41a2868112381b2cb18e922d6796450d487a0c6f56256fb4752a537aa62d2f8f332db531c6a1c58808ba705f6b29326898deb26cccf8a7f8a0c55afc613479e017d472bd73d974654ec82c7aa01d75ec768c767311fac730930043208a10937f083ae705647fd168b6b38e64d476ef86c553f38c4a1ff87a99ace5c5fff29ed249a1ba2483d98b4b8f67c6ba79b3d7eb903660394bc8f76f294f7dd50e0b52c5865ef698a699591503b7072b50aa375040355368afc0b8f59b6c9cbe592097b0dcacf6c063ccc000490ac76f08e8b40eebfdbebfead04c388134ccaa37a3f55e9193f96ea3a5f3482fac04b2c86cfc91db110eb36a0bb6133a701f476ce8e581e31270d3ef19c3d184df5541d8
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(82585);
      script_version("1.13");
      script_cvs_date("Date: 2019/11/22");
    
      script_cve_id("CVE-2015-0635", "CVE-2015-0636", "CVE-2015-0637");
      script_bugtraq_id(73339, 73341, 73343);
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62191");
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62293");
      script_xref(name:"CISCO-BUG-ID", value:"CSCup62315");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20150325-ani");
    
      script_name(english:"Cisco IOS XE Autonomic Networking Infrastructure Multiple Vulnerabilities (cisco-sa-20150325-ani)");
      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
    running on the remote host is affected by the following
    vulnerabilities :
    
      - A flaw exists in the ANI due to failing to properly
        validate Autonomic Networking (AN) messages. This could
        allow a remote attacker to spoof an Autonomic Networking
        Registration Authority (ANRA) response and gain elevated
        privileges or cause a denial of service. (CVE-2015-0635)
    
      - A flaw exists in the ANI due to imporperly handling AN
        messages. This could allow a remote attacker, with a
        specially crafted AN message, to disrupt autonomic
        domain services. (CVE-2015-0636)
    
      - A flaw exists in the ANI due to improperly validating AN
        messages. This could allow a remote attacker, with a
        specially crafted An message, to cause the device to
        reload. (CVE-2015-0637)
    
    Note that these issues only affect devices with ANI enabled.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20150325-ani
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?dabca9f4");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37811");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37812");
      script_set_attribute(attribute:"see_also", value:"https://tools.cisco.com/security/center/viewAlert.x?alertId=37813");
      script_set_attribute(attribute:"solution", value:
    "Apply the relevant patch referenced in the Cisco Security Advisory.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/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:"vuln_publication_date", value:"2015/03/25");
      script_set_attribute(attribute:"patch_publication_date", value:"2015/04/03");
      script_set_attribute(attribute:"plugin_publication_date", value:"2015/04/06");
    
      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) 2015-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("audit.inc");
    include("cisco_func.inc");
    include("cisco_kb_cmd_func.inc");
    
    model = get_kb_item_or_exit("Host/Cisco/IOS-XE/Model");
    
    if (
      model !~ '^ASR90(1S?|3)$' &&
      model !~ '^ME-3(600X?|800)-'
    ) audit(AUDIT_HOST_NOT, 'affected');
    
    ver = get_kb_item_or_exit("Host/Cisco/IOS-XE/Version");
    
    fix = '';
    flag = 0;
    
    # Check for vuln version
    if (
      ver =~ "^3\.10(\.[0-5])?S([^EG]|$)" ||
      ver =~ "^3\.11(\.[0-3])?S([^EG]|$)" ||
      ver =~ "^3\.12(\.[0-3])?S([^EG]|$)" ||
      ver =~ "^3\.13\.0?S([^EG]|$)"
    )
    {
      fix = "3.13.1S";
      flag++;
    }
    
    # Check that ANI is running
    if (flag && get_kb_item("Host/local_checks_enabled"))
    {
      flag = 0;
      buf = cisco_command_kb_item("Host/Cisco/Config/show_run_autonomic","show run | include autonomic");
      if (check_cisco_result(buf))
      {
        if (
          ( !empty_or_null(buf) ) &&
          ( "no autonomic" >!< buf )
        ) flag = 1;
      }
      else if (cisco_needs_enable(buf))
      {
        flag = 1;
        override = 1;
      }
    }
    
    if (fix && flag)
    {
      if (report_verbosity > 0)
      {
        report =
          '\n  Cisco bug ID      : CSCup62191, CSCup62293, and CSCup62315' +
          '\n  Installed release : ' + ver +
          '\n  Fixed release     : ' + fix +
          '\n';
        security_hole(port:0, extra:report + cisco_caveat(override));
        exit(0);
      }
      else security_hole(port:0, extra:cisco_caveat(override));
    }
    else audit(AUDIT_HOST_NOT, "affected");