Vulnerabilities > CVE-2019-1747 - Improper Input Validation vulnerability in Cisco IOS and IOS XE

047910
CVSS 5.0 - MEDIUM
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
NONE
Availability impact
PARTIAL
network
low complexity
cisco
CWE-20
nessus

Summary

A vulnerability in the implementation of the Short Message Service (SMS) handling functionality of Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, remote attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to improper processing of SMS protocol data units (PDUs) that are encoded with a special character set. An attacker could exploit this vulnerability by sending a malicious SMS message to an affected device. A successful exploit could allow the attacker to cause the wireless WAN (WWAN) cellular interface module on an affected device to crash, resulting in a DoS condition that would require manual intervention to restore normal operating conditions.

Vulnerable Configurations

Part Description Count
OS
Cisco
2

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-SMS-DOS-IOSXE.NASL
    descriptionAccording to its self-reported version, the installed Cisco IOS XE Software is affected by a vulnerability in its implementation of the Short Message Service (SMS) handling functionality. This allows an unauthenticated, remote attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to improper processing of SMS protocol data units (PDUs) that are encoded with a special character set. An attacker can exploit this vulnerability by sending a malicious SMS message to an affected device. A successful exploit allows the attacker to cause the wireless WAN (WWAN) cellular interface module on an affected device to crash, resulting in a DoS condition that would require manual intervention to restore normal operating conditions. Please see the included Cisco BIDs and Cisco Security Advisory for more information. Note that Nessus has not tested for this issue but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id128114
    published2019-08-23
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/128114
    titleCisco IOS XE Software Short Message Service Denial of Service Vulnerability
    code
    #TRUSTED ad07fc0dfa9bd67cd32c7f07d6f2dac7a28c4d762b2442cdb3a8d854503ee0b8fafbf23111bb7d0cbdff975ea9ab11591514587372286ea38282048d70d20db111e8172d62775afdec550a79a1949fa5d423df9b60db94a62ee1b696a78e6626156b6d8943518cc283851d2ecb317ec03e4959b134055ee48ff50a9af1eda18995e112d7079ba3aa48bf7bacf21040ecc6b3ffbc441a72506dacccc6077c3e63c491310941b17466595f71c6f6b491418d6a64647e6c93282315dac977af06f7a59ef5deef64fefb4cdb8878015fd2024171640711c6d396790115862be20054dc399a753228221117e468898065504e65c69acecb00c5849a62368377525c661265ece3702e8f2db1f7c11ed16a572c165c8918764c7977f2f2d7ab312c42e28f44fe68979bd0fa62162f899eb2a1c6f5efca9a9b30ce2aba3ddfee8983b91e2cc26cc25b075a1f4d414efb9d7b01be6400f67bb02501a9393ed6a0002d5e786c819bbe70db7e99a5ad02e74801c632c771b8ec75e5dfbf3720f3bacbc012fe67539afd25923ec77e8bfd840d64b995b24f9623563df6cc81718a6d0833f4ac275b35b2b6b112ba9e773ef40b856b4498d8789fc7b7150febae24fe947a41d0f12c69de9bb0a4939af1dadf36fc1b18a95ebc7b123fd7704d9dfb84999388fa7ad89e144101974260ce5445d3c41aa035c40023e2f66021cee4dbc84cdbe9b5
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(128114);
      script_version("1.5");
      script_cvs_date("Date: 2019/12/20");
    
      script_cve_id("CVE-2019-1747");
      script_bugtraq_id(107599);
      script_xref(name:"CISCO-BUG-ID", value:"CSCvm07801");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20190327-sms-dos");
    
      script_name(english:"Cisco IOS XE Software Short Message Service 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, the installed Cisco IOS XE Software is affected by a vulnerability in its
    implementation of the Short Message Service (SMS) handling functionality. This allows an unauthenticated, remote
    attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to improper
    processing of SMS protocol data units (PDUs) that are encoded with a special character set. An attacker can exploit
    this vulnerability by sending a malicious SMS message to an affected device. A successful exploit allows the attacker
    to cause the wireless WAN (WWAN) cellular interface module on an affected device to crash, resulting in a DoS condition
    that would require manual intervention to restore normal operating conditions.
    
    Please see the included Cisco BIDs and Cisco Security Advisory for more information.
    
    Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
    number.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190327-sms-dos
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?22250072");
      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/CSCvm07801");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to the relevant fixed version referenced in Cisco bug ID CSCvm07801");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/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-1747");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_cwe_id(20);
    
      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/08/23");
    
      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 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(
      '16.10.1'
    );
    
    workarounds = make_list(CISCO_WORKAROUNDS['sierra_wireless']);
    workaround_params = make_list();
    
    
    reporting = make_array(
    'port'     , 0,
    'severity' , SECURITY_WARNING,
    'version'  , product_info['version'],
    'bug_id'   , 'CSCvm07801',
    'cmds'     , make_list('show inventory | include Sierra Wireless')
    );
    
    cisco::check_and_report(product_info:product_info, workarounds:workarounds, workaround_params:workaround_params, reporting:reporting, vuln_versions:version_list);
    
    
  • NASL familyCISCO
    NASL idCISCO-SA-20190327-SMS-DOS-IOS.NASL
    descriptionAccording to its self-reported version, the installed Cisco IOS Software is affected by a vulnerability in its implementation of the Short Message Service (SMS) handling functionality. This allows an unauthenticated, remote attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to improper processing of SMS protocol data units (PDUs) that are encoded with a special character set. An attacker can exploit this vulnerability by sending a malicious SMS message to an affected device. A successful exploit allows the attacker to cause the wireless WAN (WWAN) cellular interface module on an affected device to crash, resulting in a DoS condition that would require manual intervention to restore normal operating conditions. Please see the included Cisco BIDs and Cisco Security Advisory for more information. Note that Nessus has not tested for this issue but has instead relied only on the application
    last seen2020-06-01
    modified2020-06-02
    plugin id128113
    published2019-08-23
    reporterThis script is Copyright (C) 2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/128113
    titleCisco IOS Short Message Service Denial of Service Vulnerability
    code
    #TRUSTED 054a05a97ccd0e643437c3c6f37ad6699c1b02d007ce1ba39ad1fb8a4d718aa145a95bf27587c622a93d5e284b7c91c972f66baccd81e23eb83f78f29b6b8f4e84fd82dc22d209b01df5ba2379bbadc3bd961b236a294ade9da342609eaf182f2317697589c3f25fea8675632256a332fa62d0c41bb9dd197f40d770be6d9ce8782d9316d187d675daec226795f01df52f0b34aa885132440bfe45a51db5f58605187d82cb3ceab926635e8e51a04a3f731ad036a01df045c90c6b3250008c964ae8632926350002d9676b5357bfdc4c44481a3b848719f2ebec7b269458fd76c82abd9f672adb17e21315eece78033acf3774784ab8805334b8a9079ed1c862eecc17f14bb5b8bab0da9e160d00caa92710ad6a5732f14e5eb925787dd0e889b8f97020eb64a605bf9d365670854d7816a1599a7aba292dafe412224f5aceb7ec683fae8e429766ac2cf9198d62e24928c480f83f120e229e6089b2f1a98804d24ee599de6150a37a9abbc045830aedcb141281ccee4bf9749efe88c2873ba69b73fbda1e16e32fe00917a836b3f0be6caa6200b14b0f47e041f597b5f63e15372d945b35a9ce617a458a36a522c63e5343e609a5448121acf7cc5ba835680adc0905b39bd4fb830144bbcb682a9036fb10b7791a90816535f362362114b1c39c826fe979fa77f3ea5d31f67c904677e3410ecdb34fa45e2aa904dd517f72f2
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
      script_id(128113);
      script_version("1.5");
      script_cvs_date("Date: 2019/12/20");
    
      script_cve_id("CVE-2019-1747");
      script_bugtraq_id(107599);
      script_xref(name:"CISCO-BUG-ID", value:"CSCvm07801");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20190327-sms-dos");
    
      script_name(english:"Cisco IOS Short Message Service Denial of Service Vulnerability");
      script_summary(english:"Checks the version of Cisco IOS");
    
      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 installed Cisco IOS Software is affected by a vulnerability in its
    implementation of the Short Message Service (SMS) handling functionality. This allows an unauthenticated, remote
    attacker to trigger a denial of service (DoS) condition on an affected device. The vulnerability is due to improper
    processing of SMS protocol data units (PDUs) that are encoded with a special character set. An attacker can exploit
    this vulnerability by sending a malicious SMS message to an affected device. A successful exploit allows the attacker
    to cause the wireless WAN (WWAN) cellular interface module on an affected device to crash, resulting in a DoS condition
    that would require manual intervention to restore normal operating conditions.
    
    Please see the included Cisco BIDs and Cisco Security Advisory for more information.
    
    Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
    number.");
      # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20190327-sms-dos
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?22250072");
      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/CSCvm07801");
      script_set_attribute(attribute:"solution", value:
    "Upgrade to the relevant fixed version referenced in Cisco bug ID CSCvm07801");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P");
      script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
      script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/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-1747");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
      script_cwe_id(20);
    
      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/08/23");
    
      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) 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_workarounds.inc');
    include('ccf.inc');
    
    product_info = cisco::get_product_info(name:'Cisco IOS');
    
    version_list=make_list(
      '15.8(3)M'
    );
    
    workarounds = make_list(CISCO_WORKAROUNDS['sierra_wireless']);
    workaround_params = make_list();
    
    
    reporting = make_array(
    'port'     , 0,
    'severity' , SECURITY_WARNING,
    'version'  , product_info['version'],
    'bug_id'   , 'CSCvm07801',
    'cmds'     , make_list('show inventory | include Sierra Wireless')
    );
    
    cisco::check_and_report(product_info:product_info, workarounds:workarounds, workaround_params:workaround_params, reporting:reporting, vuln_versions:version_list);