Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa) - Nessus

Critical   Plugin ID: 69953

This page contains detailed information about the Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 69953
Name: Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa)
Filename: cisco_csa_management_center_sa20110216.nasl
Vulnerability Published: 2011-02-16
This Plugin Published: 2013-09-18
Last Modification Time: 2018-11-15
Plugin Version: 1.6
Plugin Type: remote
Plugin Family: CISCO
Dependencies: cisco_csa_management_center_detect.nasl
Required KB Items [?]: www/cisco_security_agent

Vulnerability Information


Severity: Critical
Vulnerability Published: 2011-02-16
Patch Published: 2011-02-16
CVE [?]: CVE-2011-0364
CPE [?]: cpe:/a:cisco:security_agent

Synopsis

The remote host has an endpoint security application installed that is potentially affected by a remote code execution vulnerability.

Description

According to the version identified on the Management Center for Cisco Agents web interface, the remote host is potentially affected by a remote code execution vulnerability. This is due to the 'webagent.exe' script failing to properly process POST request parameters. A remote, unauthenticated attacker can exploit this issue by creating an arbitrary file with a crafted 'st_upload' request, which the attacker could use to execute arbitrary code on the remote host.

Solution

Upgrade to Cisco Security Agent 6.0.2.145 or later, or apply the workaround specified in the vendor advisory.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa) vulnerability:

  1. Exploit-DB: exploits/windows/remote/17155.py
    [EDB-17155: Cisco Security Agent Management Console - 'st_upload' Remote Code Execution]

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 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)

Go back to menu.

Plugin Source


This is the cisco_csa_management_center_sa20110216.nasl nessus plugin source code. This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(69953);
  script_version("1.6");
  script_cvs_date("Date: 2018/11/15 20:50:20");

  script_cve_id("CVE-2011-0364");
  script_bugtraq_id(46420);
  script_xref(name:"CISCO-BUG-ID", value:"CSCtj51216");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20110216-csa");

  script_name(english:"Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa)");
  script_summary(english:"Checks Management Center for Cisco Security Agents version");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host has an endpoint security application installed that is
potentially affected by a remote code execution vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"According to the version identified on the Management Center for Cisco
Agents web interface, the remote host is potentially affected by a
remote code execution vulnerability.  This is due to the 'webagent.exe'
script failing to properly process POST request parameters.  A remote,
unauthenticated attacker can exploit this issue by creating an arbitrary
file with a crafted 'st_upload' request, which the attacker could use to
execute arbitrary code on the remote host."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.cisco.com/c/en/us/support/docs/csa/cisco-sa-20110216-csa.html");
  script_set_attribute(
    attribute:"solution",
    value:
"Upgrade to Cisco Security Agent 6.0.2.145 or later, or apply the
workaround specified in the vendor advisory."
  );
  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_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/02/16");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/02/16");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/09/18");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:security_agent");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CISCO");

  script_copyright(english:"This script is Copyright (C) 2013-2018 Tenable Network Security, Inc.");

  script_dependencies("cisco_csa_management_center_detect.nasl");
  script_require_ports("Services/www", 443);
  script_require_keys("www/cisco_security_agent");

  exit(0);
}

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

port = get_http_port(default:443);
appname = 'Cisco Security Agent';

install = get_install_from_kb(
  appname : "cisco_security_agent",
  port    : port,
  exit_on_fail : TRUE
);

dir = install["dir"];
version = install["ver"];
install_url = build_url(qs:dir, port:port);

if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, appname, install_url);

# nb:Cisco Security Agent software releases 5.1, 5.2, and 6.0 are affected
fix = "6.0.2.145";
if (
  version =~ "^(5\.[12]|6\.0)\." &&
  ver_compare(ver:version, fix:fix, strict:FALSE) < 0
)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  URL               : ' + install_url +
      '\n  Installed version : ' + version +
      '\n  Fixed version     : ' + fix + '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url, version);

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

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/cisco_csa_management_center_sa20110216.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\cisco_csa_management_center_sa20110216.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/cisco_csa_management_center_sa20110216.nasl

Go back to menu.

How to Run


Here is how to run the Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa) 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 Management Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa) plugin ID 69953.
  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_csa_management_center_sa20110216.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a cisco_csa_management_center_sa20110216.nasl -t <IP/HOST>

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

/opt/nessus/bin/nasl -T - cisco_csa_management_center_sa20110216.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_csa_management_center_sa20110216.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: Cisco Bug ID: Cisco Security Advisory: See also: Similar and related Nessus plugins:
  • 107004 - Cisco ASA Remote Code Execution and Denial of Service Vulnerability (cisco-sa-20180129-asa1) (destructive check)
  • 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)
  • 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)
  • 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_csa_management_center_sa20110216.nasl version 1.6. For more plugins, visit the Nessus Plugin Library.

Go back to menu.