Vulnerabilities > CVE-2011-0364 - Code Injection vulnerability in Cisco Security Agent 5.1/5.2/6.0

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
cisco
CWE-94
critical
nessus
exploit available

Summary

The Management Console (webagent.exe) in Cisco Security Agent 5.1, 5.2, and 6.0 before 6.0.2.145 allows remote attackers to create arbitrary files and execute arbitrary code via unspecified parameters in a crafted st_upload request.

Vulnerable Configurations

Part Description Count
Application
Cisco
3

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Exploit-Db

descriptionCisco Security Agent Management Console - 'st_upload' RCE Exploit. CVE-2011-0364. Remote exploit for windows platform
idEDB-ID:17155
last seen2016-02-02
modified2011-04-12
published2011-04-12
reporterGerry Eisenhaur
sourcehttps://www.exploit-db.com/download/17155/
titleCisco Security Agent Management Console - 'st_upload' RCE Exploit

Nessus

NASL familyCISCO
NASL idCISCO_CSA_MANAGEMENT_CENTER_SA20110216.NASL
descriptionAccording 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
last seen2020-06-01
modified2020-06-02
plugin id69953
published2013-09-18
reporterThis script is Copyright (C) 2013-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/69953
titleManagement Center for Cisco Security Agents Remote Code Execution (cisco-sa-20110216-csa)
code
#
# (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);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/100318/ciscosa-exec.txt
idPACKETSTORM:100318
last seen2016-12-05
published2011-04-12
reporterGerry Eisenhaur
sourcehttps://packetstormsecurity.com/files/100318/Cisco-Security-Agent-Management-Console-Command-Execution.html
titleCisco Security Agent Management Console Command Execution

Saint

bid65436
descriptionCisco Security Agent Management Center Code Execution
osvdb70884
titlecisco_security_agent_mgmt_cntr_exec
typeremote

Seebug

bulletinFamilyexploit
descriptionNo description provided by source.
idSSV:20459
last seen2017-11-19
modified2011-04-13
published2011-04-13
reporterRoot
sourcehttps://www.seebug.org/vuldb/ssvid-20459
titleCisco Security Agent Management Console ‘st_upload’ RCE Exploit