Vulnerabilities > CVE-2004-0244 - Improper Input Validation vulnerability in Cisco IOS 12.1E/12.2Sy/12.2Za

047910
CVSS 4.7 - MEDIUM
Attack vector
LOCAL
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
COMPLETE
local
cisco
CWE-20
nessus
exploit available

Summary

Cisco 6000, 6500, and 7600 series systems with Multilayer Switch Feature Card 2 (MSFC2) and a FlexWAN or OSM module allow local users to cause a denial of service (hang or reset) by sending a layer 2 frame packet that encapsulates a layer 3 packet, but has inconsistent length values with that packet.

Vulnerable Configurations

Part Description Count
OS
Cisco
3

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.

Exploit-Db

descriptionCisco IOS 12 MSFC2 Malformed Layer 2 Frame Denial Of Service Vulnerability. CVE-2004-0244. Dos exploit for hardware platform
idEDB-ID:23638
last seen2016-02-02
modified2004-02-03
published2004-02-03
reporterblackangels
sourcehttps://www.exploit-db.com/download/23638/
titleCisco IOS 12 MSFC2 Malformed Layer 2 Frame Denial of Service Vulnerability

Nessus

  • NASL familyCISCO
    NASL idCSCDY15598.NASL
    descriptionThe remote router contains a version of IOS which has multiple flaws when dealing with specially layer 2 packets. CISCO identifies this vulnerability as bug id CSCdy15598 and CSCeb56052. An attacker may use this flaw to render this router inoperable.
    last seen2020-06-01
    modified2020-06-02
    plugin id12039
    published2004-02-03
    reporterThis script is (C) 2004-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/12039
    titleCisco IOS 6000/6500/7600 Series Layer 2 Frame DoS (CSCdy15598, CSCeb56052)
    code
    #
    # (C) Tenable Network Security
    #
    
    
    include("compat.inc");
    
    if(description)
    {
     script_id(12039);
     script_cve_id("CVE-2004-0244");
     script_bugtraq_id(9562);
    
     script_version("1.18");
    
     script_name(english:"Cisco IOS 6000/6500/7600 Series Layer 2 Frame DoS (CSCdy15598, CSCeb56052)");
    
     script_set_attribute(attribute:"synopsis", value:
    "The remote device is missing a vendor-supplied security patch." );
     script_set_attribute(attribute:"description", value:
    "The remote router contains a version of IOS which has multiple flaws when
    dealing with specially layer 2 packets.
    
    CISCO identifies this vulnerability as bug id CSCdy15598 and CSCeb56052.
    
    An attacker may use this flaw to render this router inoperable." );
     script_set_attribute(attribute:"solution", value:
    "http://www.nessus.org/u?efcdea28" );
     script_set_cvss_base_vector("CVSS2#AV:L/AC:M/Au:N/C:N/I:N/A:C");
     script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
     script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
     script_set_attribute(attribute:"exploit_available", value:"true");
     script_cwe_id(20);
    
     script_set_attribute(attribute:"plugin_publication_date", value: "2004/02/03");
     script_set_attribute(attribute:"vuln_publication_date", value: "2004/02/04");
     script_cvs_date("Date: 2018/06/27 18:42:25");
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value: "cpe:/o:cisco:ios");
     script_end_attributes();
    
    
     summary["english"] = "Uses SNMP to determine if a flaw is present";
     script_summary(english:summary["english"]);
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is (C) 2004-2018 Tenable Network Security, Inc.");
    
     script_family(english:"CISCO");
    
     script_dependencie("snmp_sysDesc.nasl",
    			 "snmp_cisco_type.nasl");
     script_require_keys("SNMP/community",
    			  "SNMP/sysDesc",
    			  "CISCO/model");
     exit(0);
    }
    
    
    # The code starts here
    ok=0;
    os = get_kb_item("SNMP/sysDesc"); if(!os)exit(0);
    hardware = get_kb_item("CISCO/model"); if(!hardware)exit(0);
    
    
    
    
    # Check for the required hardware...
    #----------------------------------------------------------------
    # catalyst6k.*
    if(ereg(string:hardware, pattern:"^catalyst6k.*$"))ok=1;
    
    if(!ok)exit(0);
    ok = 0;
    
    
    # Check for the required operating system...
    #----------------------------------------------------------------
    # Is this IOS ?
    if(!egrep(pattern:".*(Internetwork Operating|IOS).*", string:os))exit(0);
    # 12.1E
    if(egrep(string:os, pattern:"(12\.1\(([0-9]|1[0-8])\)|12\.1)E[0-9]*,"))ok=1;
    
    # 12.2SY
    if(egrep(string:os, pattern:"(12\.2\(([0-9]|1[0-3])\)|12\.2)SY[0-9]*,"))ok=1;
    
    # 12.2ZA
    if(egrep(string:os, pattern:"(12\.2\(([0-9]|1[0-3])\)|12\.2)ZA[0-9]*,"))ok=1;
    
    
    #----------------------------------------------
    
    if(ok)security_warning(port:161, proto:"udp");
    
  • NASL familyCISCO
    NASL idCISCO-SA-20040203-CAT6K.NASL
    descriptionA layer 2 frame (as defined in the Open System Interconnection Reference Model) that is encapsulating a layer 3 packet (IP, IPX, etc.) may cause Cisco 6000/6500/7600 series systems with Multilayer Switch Feature Card 2 (MSFC2) that have a FlexWAN or Optical Services Module (OSM) or that run 12.1(8b)E14 to freeze or reset, if the actual length of this frame is inconsistent with the length of the encapsulated layer 3 packet. This vulnerability may be exploited repeatedly causing a denial of service. This vulnerability has been addressed by the Cisco Bug IDs CSCdy15598 and CSCeb56052. There is no workaround available. A software upgrade is needed to address the vulnerability.
    last seen2019-10-28
    modified2010-09-01
    plugin id48973
    published2010-09-01
    reporterThis script is (C) 2010-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/48973
    titleCisco 6000/6500/7600 Crafted Layer 2 Frame Vulnerability - Cisco Systems
    code
    #TRUSTED 8d9b900157010dcdefb6f98f7c660be0968740d0d4b5e4788ccf3158281ffc0715d10c6a1592efab40a331236a3d53ca6c92ba1e8ea63a2614858cd7a1f75efa90fd390fef123545c635ad831016aabbe03754ee4ab76fc220274d2379dec5871cd0c3feadbbbef4686545bb684f7c01d611640edc04512dabb3ad80b83cd61bf0fe6c726a64baf91fef510da36f3e46e0164cc804439e838e9dc83c57decce60f764cb7cc1829a2b20da8f5aa23663591abe74cab894c465dff21e1abcd089cbe772f60e452cee8f7847b1ad3a17488bc89b0e4617d49eb2bc9750e3bc2190222399a29eb6ac8a6fd13373126ce016d3d7209957c01ea601f1b60d3cb8ba0fe5b40390e5ac8e4e8f3e0c8af43b8efd381d5a9957040ee5029051ed2c2afb58b48940cf14ef5423898a6f11ef1912088faf8e5ce7c134f5ef6c42fdcbc044834cbe1a52fe84ddded8c8b1e19d047fdf81beaa8df772d6d3c8dd3dc096b4e5dc1bb8417cf969b5a48835a4a727c38bbebf2efe600bfc6b474acf6a21899b04531f9c5ff866b49d3383a950e4c3cde0d1863849b415c6793405805f938a66b4cc345c46f1e8a2805ca575266b1e6cb03d8d91f2c11c8b393816199fe4bf901cfe86859468b2d86e9c9b61995e5b08c87dd213532725e08a16a3ae4395446f382d506f0d4ba7e377c33ea11071891ccd5cbbdc097016065b3f7218177a1198c8148
    #
    # (C) Tenable Network Security, Inc.
    #
    # Security advisory is (C) CISCO, Inc.
    # See https://www.cisco.com/en/US/products/products_security_advisory09186a00801f3a8a.shtml
    
    if (NASL_LEVEL < 3000) exit(0);
    
    include("compat.inc");
    
    if (description)
    {
     script_id(48973);
     script_version("1.15");
     script_set_attribute(attribute:"plugin_modification_date", value:"2018/11/15");
     script_cve_id("CVE-2004-0244");
     script_bugtraq_id(9562);
     script_name(english:"Cisco 6000/6500/7600 Crafted Layer 2 Frame Vulnerability - Cisco Systems");
     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 layer 2 frame (as defined in the Open System Interconnection
    Reference Model) that is encapsulating a layer 3 packet (IP, IPX, etc.)
    may cause Cisco 6000/6500/7600 series systems with Multilayer Switch
    Feature Card 2 (MSFC2) that have a FlexWAN or Optical Services Module
    (OSM) or that run 12.1(8b)E14 to freeze or reset, if the actual length
    of this frame is inconsistent with the length of the encapsulated layer
    3 packet.
    This vulnerability may be exploited repeatedly causing a denial of
    service.
    This vulnerability has been addressed by the Cisco Bug IDs CSCdy15598
    and CSCeb56052.
    There is no workaround available. A software upgrade is needed to
    address the vulnerability.');
     # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20040203-cat6k
     script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?7a7aa89a");
     # https://www.cisco.com/en/US/products/products_security_advisory09186a00801f3a8a.shtml
     script_set_attribute(attribute:"see_also", value: "http://www.nessus.org/u?89a5ecaa");
     script_set_attribute(attribute:"solution", value:
    "Apply the relevant patch referenced in Cisco Security Advisory
    cisco-sa-20040203-cat6k.");
     script_set_cvss_base_vector("CVSS2#AV:L/AC:M/Au:N/C:N/I:N/A:C");
     script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
     script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
     script_set_attribute(attribute:"exploit_available", value:"true");
     script_cwe_id(20);
     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:"2004/02/03");
     script_set_attribute(attribute:"patch_publication_date", value:"2004/02/03");
     script_set_attribute(attribute:"plugin_publication_date", value:"2010/09/01");
    
     script_end_attributes();
     script_xref(name:"CISCO-BUG-ID", value:"CSCdy15598");
     script_xref(name:"CISCO-BUG-ID", value:"CSCeb56052");
     script_xref(name:"CISCO-SA", value:"cisco-sa-20040203-cat6k");
     script_category(ACT_GATHER_INFO);
     script_copyright(english:"This script is (C) 2010-2018 Tenable Network Security, Inc.");
     script_family(english:"CISCO");
     script_dependencie("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;
    report_extra = "";
    version = get_kb_item_or_exit("Host/Cisco/IOS/Version");
    override = 0;
    
    # Affected: 12.1E
    if (check_release(version: version,
                      patched: make_list("12.1(8b)E15", "12.1(11b)E14", "12.1(13)E1", "12.1(13.5)E", "12.1(19)E") )) {
     report_extra = '\nUpdate to ' + patch_update + ' or later\n'; flag++;
    }
    # Affected: 12.2SY
    if (check_release(version: version,
                      patched: make_list("12.2(14)SY") )) {
     report_extra = '\nUpdate to ' + patch_update + ' or later\n'; flag++;
    }
    # Affected: 12.2ZA
    if (check_release(version: version,
                      patched: make_list("12.2(14)ZA") )) {
     report_extra = '\nUpdate to ' + patch_update + ' or later\n'; flag++;
    }
    
    if (get_kb_item("Host/local_checks_enabled"))
    {
      if (flag)
      {
        flag = 0;
        buf = cisco_command_kb_item("Host/Cisco/Config/show_module", "show module");
        if (check_cisco_result(buf))
        {
          if (preg(pattern:"WS-X6182-2PA", multiline:TRUE, string:buf)) { flag = 1; }
          if (preg(pattern:"OSM", multiline:TRUE, string:buf)) { flag = 1; }
        } else if (cisco_needs_enable(buf)) { flag = 1; override = 1; }
      }
    }
    
    
    if (flag)
    {
      security_warning(port:0, extra:report_extra + cisco_caveat(override));
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, "affected");
    

Oval

accepted2008-09-08T04:00:49.655-04:00
classvulnerability
contributors
nameYuzheng Zhou
organizationHewlett-Packard
descriptionCisco 6000, 6500, and 7600 series systems with Multilayer Switch Feature Card 2 (MSFC2) and a FlexWAN or OSM module allow local users to cause a denial of service (hang or reset) by sending a layer 2 frame packet that encapsulates a layer 3 packet, but has inconsistent length values with that packet.
familyios
idoval:org.mitre.oval:def:5828
statusaccepted
submitted2008-05-02T11:06:36.000-04:00
titleCisco 6000/6500/7600 Crafted Layer 2 Frame Vulnerability
version4