Vulnerabilities > CVE-2019-12673 - Improper Input Validation vulnerability in Cisco Adaptive Security Appliance

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

Summary

A vulnerability in the FTP inspection engine of Cisco Adaptive Security (ASA) Software and Cisco Firepower Threat Defense (FTD) Software could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition on an affected device. The vulnerability is due to insufficient validation of FTP data. An attacker could exploit this vulnerability by sending malicious FTP traffic through an affected device. A successful exploit could allow the attacker to cause a DoS condition on the affected device.

Vulnerable Configurations

Part Description Count
Application
Cisco
115
OS
Cisco
117
Hardware
Cisco
10

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-20191002-ASA-DOS-ASA.NASL
    descriptionA denial of service vulnerability exists in the FTP inspection engine of Cisco Adaptive Security Appliance (ASA) software due to insufficient validation of FTP data. An unauthenticated, remote attacker can exploit this to cause to cause the system to stop responding. 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-03-17
    modified2020-02-21
    plugin id133850
    published2020-02-21
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133850
    titleCisco Adaptive Security Appliance DOS (cisco-sa-20191002-asa-dos)
    code
    #TRUSTED 188582b7327de1c8e84991ca069b1c5f11664c39c4a89e3e50d159d0a0a03baa2be93fa8cd42ab5bd95d49249e0bcae6f259f634cf1e7f40811d06fce3f57f8a5b7440e0c0ed5584b014c6fc2b7e6f891be6f6bd7a9817ee71e82b41e0b7952d18dff3e818434637587a0c108ec0bcd4b75e733bd2d8fe0f6fcb73adb28cc785c2ad3422da33f98bc88a4fe30321f96556d43faad76e8f439996335b2efee06cb9f8bbc6072c63a8c75b60fe74915f0c7591ced3195fe7ee06562dcfef953402bcea15b46122feef2d3aaa040f945191a346a757a9a7a3667fb9efafb60cc906161bf889ba76e7f36263d7a3af4750604d2639294c6dade04599f1bf85ccca144a53ae376b4d35824a26b54169bf363cef245684d3261f6dcbecdf85ac4d7b418a448a104c526e6093317e995254f166645f200e3380da68d536e738c9f8009d8c872f0e84dff4073e224fccf74350fe907f673b8022bdd26edde63e43e1f9b3e50b5c99ada893e79a68518f0288739cc16b5f90991ab3f420dc77cd865c736dac9094a94c048118f35092dfdee859d942f9e86d7b3865b752bdb82c05fcc88eb369ccf95956290358a9a6ee3f9b333c4a30530d2ea743b960d016ec4bbc72fc484acb0b45ce407f99d59a4a8536766b57caf5eaf14e65788886cb3a02bb60a9c6441cd5be7efa86897cc8c1f00123daadaee2e34d96e05416c8b93a99c62fc4
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include('compat.inc');
    
    if (description)
    {
      script_id(133850);
      script_version("1.4");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/02/24");
    
      script_cve_id("CVE-2019-12673");
      script_xref(name:"CISCO-BUG-ID", value:"CSCvo83169");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20191002-asa-dos");
      script_xref(name:"IAVA", value:"2019-A-0370");
    
      script_name(english:"Cisco Adaptive Security Appliance DOS (cisco-sa-20191002-asa-dos)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote device is affected by a denial of service vulnerability");
      script_set_attribute(attribute:"description", value:
    "A denial of service vulnerability exists in the FTP inspection engine of Cisco Adaptive Security Appliance (ASA) software
    due to insufficient validation of FTP data. An unauthenticated, remote attacker can exploit this to cause to cause the system
    to stop responding.
    
    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-20191002-asa-dos
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a727a568");
      script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvo83169");
      script_set_attribute(attribute:"solution", value:
    "Update to a fixed version based on your hardware. Please refer to Cisco bug ID CSCvo83169.");
      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:U/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-12673");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2019/10/02");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/10/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2020/02/21");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:adaptive_security_appliance_software");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CISCO");
    
      script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl", "os_fingerprint.nasl");
      script_require_keys("Host/Cisco/ASA");
    
      exit(0);
    }
    
    include('cisco_workarounds.inc');
    include('ccf.inc');
    
    product_info = cisco::get_product_info(name:'Cisco Adaptive Security Appliance (ASA) Software');
    
    vuln_ranges = [
      {'min_ver' : '0.0',  'fix_ver' : '9.6.4.34'},
      {'min_ver' : '9.7',  'fix_ver' : '9.8.4.10'},
      {'min_ver' : '9.9',  'fix_ver' : '9.9.2.56'},
      {'min_ver' : '9.10',  'fix_ver' : '9.10.1.30'},
      {'min_ver' : '9.12',  'fix_ver' : '9.12.2.5'}
    ];
    
    workarounds = make_list(CISCO_WORKAROUNDS['inspect_ftp']);
    workaround_params = make_list();
    
    reporting = make_array(
      'port'     , 0,
      'severity' , SECURITY_WARNING,
      'version'  , product_info['version'],
      'bug_id'   , 'CSCvo83169'
    );
    
    cisco::check_and_report(
      product_info:product_info,
      reporting:reporting,
      vuln_ranges:vuln_ranges,
      workarounds:workarounds,
      workaround_params:workaround_params
    );
    
  • NASL familyCISCO
    NASL idCISCO-SA-20191002-ASA-DOS-FTD.NASL
    descriptionA denial of service vulnerability exists in the FTP inspection engine of Firepower Threat Defense (FTD) software due to insufficient validation of FTP data. An unauthenticated, remote attacker can exploit this to cause to cause the system to stop responding. 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-04-22
    modified2020-02-21
    plugin id133851
    published2020-02-21
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133851
    titleCisco Firepower Threat Defense DOS (cisco-sa-20191002-asa-dos)
    code
    #TRUSTED 03ce3ce7395699c433786a565b651654deccfb274ac2fc895ac557339b30646aaa0b6d1253d1be43d54a33e1c773e25d5bd22e697648e7d1bd6b16f8366eaf16a52c43bcdb0ee2d05ecb32804b1e89375e54f7d735ef77aefe84fe457490a91a7433092597dca82e45e232c41668bd6407ba1e0068d51108b321c1df52883301c9553a3b785dd53d10750f6c4d94c676a987b8536bff002fd634d19abd0d68dd000370c647fa1b79959855e4728c7d8f296fd639b73568b51cfd13a8e73f7e94360839edcfd3401901209d39ae9e4efff4d86fe2088d235044a0dd2d2f1454a0c22ef09a27f6e446877c4d75892b871faa41bb00ac230fe7589407dfdd8e63267405eebd1cb38aabd0273b32573a1e3f4c020543db1afbbdb21ea3ffd8bd576cde0028d82f2d9ca8276c710d47ec9f5ed935a15427cf1422197a3f0446bffff4f6ca8d61d03bccd7a9068af1d8a178fa49a65e46e7cbd537f75360d4663268a8609250cd0d6cc1f0c70f17d6028a851a4b64285f7d551fe4420df6d27706b35b6684fd2c31b0dba4c786b20a2dbdc8ce4a347fcb5615b9f816ad203a2826856d881d0d7963a9d24a630e3f3e99a9188d1e4079bfed7423321ade0809b54d42564e7584f89af478095e02126b63f9424b0305af5873846ad1c0976ca905212ab8fee3fc4667c242e9de3532204ff664a2f7d86a699b2b9c08792e542e597c623a
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include('compat.inc');
    
    if (description)
    {
      script_id(133851);
      script_version("1.6");
      script_set_attribute(attribute:"plugin_modification_date", value:"2020/04/21");
    
      script_cve_id("CVE-2019-12673");
      script_xref(name:"CISCO-BUG-ID", value:"CSCvo83169");
      script_xref(name:"CISCO-SA", value:"cisco-sa-20191002-asa-dos");
      script_xref(name:"IAVA", value:"2019-A-0370");
    
      script_name(english:"Cisco Firepower Threat Defense DOS (cisco-sa-20191002-asa-dos)");
    
      script_set_attribute(attribute:"synopsis", value:
    "The remote device is affected by a denial of service vulnerability");
      script_set_attribute(attribute:"description", value:
    "A denial of service vulnerability exists in the FTP inspection engine of Firepower Threat Defense (FTD) software
    due to insufficient validation of FTP data. An unauthenticated, remote attacker can exploit this to cause to cause
    the system to stop responding.
    
    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-20191002-asa-dos
      script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a727a568");
      script_set_attribute(attribute:"see_also", value:"https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvo83169");
      script_set_attribute(attribute:"solution", value:
    "Update to a fixed version based on your hardware. Please refer to Cisco bug ID CSCvo83169.");
      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:U/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-12673");
    
      script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2019/10/02");
      script_set_attribute(attribute:"patch_publication_date", value:"2019/10/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2020/02/21");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:adaptive_security_appliance_software");
      script_set_attribute(attribute:"stig_severity", value:"I");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"CISCO");
    
      script_copyright(english:"This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.");
    
      script_dependencies("ssh_get_info.nasl", "os_fingerprint.nasl", "cisco_enumerate_firepower.nbin", "cisco_asa_firepower_version.nasl");
      script_require_keys("installed_sw/Cisco Firepower Threat Defense");
    
      exit(0);
    }
    
    include('cisco_workarounds.inc');
    include('ccf.inc');
    
    product_info = cisco::get_product_info(name:'Cisco Firepower Threat Defense');
    
    vuln_ranges = [
      {'min_ver' : '0.0',  'fix_ver' : '6.2.3.15'},
      {'min_ver' : '6.3',  'fix_ver' : '6.3.0.5'},
      {'min_ver' : '6.4',  'fix_ver' : '6.4.0.4'}
    ];
    
    workarounds = make_list(CISCO_WORKAROUNDS['inspect_ftp']);
    workaround_params = make_list();
    
    reporting = make_array(
      'port'     , 0,
      'severity' , SECURITY_WARNING,
      'version'  , product_info['version'],
      'bug_id'   , 'CSCvo83169'
    );
    
    cisco::check_and_report(
      product_info:product_info,
      reporting:reporting,
      vuln_ranges:vuln_ranges,
      workarounds:workarounds,
      workaround_params:workaround_params
    );