Vulnerabilities > CVE-2011-2039 - Improper Input Validation vulnerability in Cisco Anyconnect Secure Mobility Client

047910
CVSS 7.6 - HIGH
Attack vector
NETWORK
Attack complexity
HIGH
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
high complexity
cisco
microsoft
CWE-20
nessus
exploit available
metasploit

Summary

The helper application in Cisco AnyConnect Secure Mobility Client (formerly AnyConnect VPN Client) before 2.3.185 on Windows, and on Windows Mobile, downloads a client executable file (vpndownloader.exe) without verifying its authenticity, which allows remote attackers to execute arbitrary code via the url property to a certain ActiveX control in vpnweb.ocx, aka Bug ID CSCsy00904.

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.

Exploit-Db

descriptionCisco AnyConnect VPN Client ActiveX URL Property Download and Execute. CVE-2011-2039. Remote exploit for windows platform
idEDB-ID:17366
last seen2016-02-02
modified2011-06-06
published2011-06-06
reportermetasploit
sourcehttps://www.exploit-db.com/download/17366/
titleCisco AnyConnect VPN Client ActiveX URL Property Download and Execute

Metasploit

descriptionThis module exploits a vulnerability in the Cisco AnyConnect VPN client vpnweb.ocx ActiveX control. This control is typically used to install the VPN client. An attacker can set the 'url' property which is where the control tries to locate the files needed to install the client. The control tries to download two files from the site specified within the 'url' property. One of these files it will be stored in a temporary directory and executed.
idMSF:EXPLOIT/WINDOWS/BROWSER/CISCO_ANYCONNECT_EXEC
last seen2020-05-26
modified2017-10-05
published2011-06-06
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/browser/cisco_anyconnect_exec.rb
titleCisco AnyConnect VPN Client ActiveX URL Property Download and Execute

Nessus

NASL familyWindows
NASL idCISCO_ANYCONNECT_VPN_2_3_254.NASL
descriptionThe version of Cisco AnyConnect Secure Mobility Client installed on the remote host is earlier than 2.3.254 and may have the following vulnerabilities : - When the client is obtained from the VPN headend using a web browser, a helper application performs the download and installation. This helper application does not verify the authenticity of the downloaded installer, which could allow an attacker to send malicious code to the user instead. Only versions prior to 2.3.185 are affected by this vulnerability. (CVE-2011-2039) - Unprivileged users can elevate to LocalSystem privileges by enabling the Start Before Logon feature and performing unspecified actions with the Cisco AnyConnect Secure Mobility client interface in the Windows logon screen. (CVE-2011-2041)
last seen2020-06-01
modified2020-06-02
plugin id54954
published2011-06-03
reporterThis script is Copyright (C) 2011-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/54954
titleCisco AnyConnect Secure Mobility Client < 2.3.254 Multiple Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(54954);
  script_version("1.16");
  script_cvs_date("Date: 2018/11/15 20:50:26");

  script_cve_id("CVE-2011-2039", "CVE-2011-2041");
  script_bugtraq_id(48077, 48081);
  script_xref(name:"CISCO-BUG-ID", value:"CSCsy00904");
  script_xref(name:"CISCO-BUG-ID", value:"CSCta40556");
  script_xref(name:"CISCO-SA", value:"cisco-sa-20110601-ac");
  script_xref(name:"CERT", value:"490097");
  script_xref(name:"EDB-ID", value:"17366");

  script_name(english:"Cisco AnyConnect Secure Mobility Client < 2.3.254 Multiple Vulnerabilities");
  script_summary(english:"Does a version check");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The VPN client installed on the remote Windows host has multiple
vulnerabilities."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of Cisco AnyConnect Secure Mobility Client installed on
the remote host is earlier than 2.3.254 and may have the following
vulnerabilities :

  - When the client is obtained from the VPN headend using
    a web browser, a helper application performs the
    download and installation.  This helper application does
    not verify the authenticity of the downloaded installer,
    which could allow an attacker to send malicious code to
    the user instead.  Only versions prior to 2.3.185 are
    affected by this vulnerability. (CVE-2011-2039)

  - Unprivileged users can elevate to LocalSystem privileges
    by enabling the Start Before Logon feature and
    performing unspecified actions with the Cisco AnyConnect
    Secure Mobility client interface in the Windows logon
    screen. (CVE-2011-2041)"
  );
  # http://www.verisigninc.com/en_US/products-and-services/network-intelligence-availability/idefense/public-vulnerability-reports/articles/index.xhtml?id=909
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?6072ec79");
  # http://www.cisco.com/en/US/products/csa/cisco-sa-20110601-ac.html
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?07d085fe");
  script_set_attribute(attribute:"solution", value:"Upgrade to version 2.3.254 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/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:"metasploit_name", value:'Cisco AnyConnect VPN Client ActiveX URL Property Download and Execute');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2011/06/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2011/06/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2011/06/03");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:cisco:anyconnect_secure_mobility_client");
  script_end_attributes();

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

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

  script_dependencies('cisco_anyconnect_vpn_installed.nasl');
  script_require_keys('SMB/cisco_anyconnect/NumInstalled');

  exit(0);
}

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

appname = 'Cisco AnyConnect VPN Client';
kb_base = 'SMB/cisco_anyconnect/';
report = '';

num_installed = get_kb_item_or_exit(kb_base + 'NumInstalled');

for (install_num = 0; install_num < num_installed; install_num++)
{
  path = get_kb_item_or_exit(kb_base + install_num + '/path');
  ver = get_kb_item_or_exit(kb_base + install_num + '/version');
  fix = '2.3.254.0';

  if (ver =~ "^2\." && ver_compare(ver:ver, fix:fix) < 0)
  {
      report +=
        '\n  Path              : ' + path +
        '\n  Installed version : ' + ver +
        '\n  Fixed version     : ' + fix + '\n';
  }
}

if(report != '')
{
  port = get_kb_item('SMB/transport');
  if (!port) port = 445;

  if (report_verbosity > 0)
    security_hole(port:445, extra:report);
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_INST_PATH_NOT_VULN, appname);

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/102055/cisco_anyconnect_exec.rb.txt
idPACKETSTORM:102055
last seen2016-12-05
published2011-06-07
reporterbannedit
sourcehttps://packetstormsecurity.com/files/102055/Cisco-AnyConnect-VPN-Client-ActiveX-URL-Property-Download-and-Execute.html
titleCisco AnyConnect VPN Client ActiveX URL Property Download and Execute

Saint

bid48081
descriptionCisco AnyConnect Secure Mobility Client VPNWeb ActiveX Code Execution
osvdb72714
titlecisco_anyconnect_vpnweb_url
typeclient

Seebug

bulletinFamilyexploit
descriptionBugtraq ID: 48081,48087 CVE ID:CVE-2011-2039 CVE-2011-2040 CVE-2011-2041 Cisco AnyConnect Secure Mobility Client是思科公司提供的远端存取解决方案,是思科的下一代VPN客户端。 Cisco AnyConnect安全移动客户端存在如下漏洞: -任意程序执行漏洞(CVE-2011-2040) 当从VPN前端部署Cisco AnyConnect安全移动客户端时,会使用WEB浏览器向VPN前端初始化一个SSL连接。在用户登录后,浏览器会显示门户窗口,当用户点击&quot;Start AnyConnect连接时,进程会开始下载Cisco AnyConnect安全移动客户端。此行为导致浏览器首先下载&quot;helper&quot;应用程序,用于辅助下载和执行实际的Cisco AnyConnect安全移动客户端。helper应用程序是一个Linux和MacOS X平台上的Java Applet或者windows平台上的Java Applet或是一个浏览器上的ActiveX插件。下载的Helper程序以WEB浏览器中初始站点上下文执行。然后Helper程序会从VPN前端下载程序并执行。 当从VPN前端配置客户端时Helper应用程序无法正确校验下载的Cisco AnyConnect安全移动客户端,攻击者可以创建恶意看起来像正常VPN WEB登录页面的WEB页,使用社会工程欺骗或其他漏洞诱使用户访问,允许攻击者提供任意可执行程序让helper应用程序下载并执行。 -本地特权提升(CVE-2011-2041) 在启用了”Start Before Logon“及在windows登录屏幕中能与Cisco AnyConnect安全移动客户端图形用户接口交互的系统上,非特权用户可以提升特权为LocalSystem。此漏洞只影响Windows平台,因为SBL不支持Linux和MacOS X客户端。 Cisco AnyConnect VPN Client 2.4.202 Cisco AnyConnect Secure Mobility Client 3.0 Cisco AnyConnect Secure Mobility Client 2.5 Cisco AnyConnect Secure Mobility Client 2.3 厂商解决方案 用户可参考如下供应商提供的安全公告获得补丁信息: http://www.cisco.com/en/US/products/products_security_advisory09186a0080b80123.shtml
idSSV:20604
last seen2017-11-19
modified2011-06-04
published2011-06-04
reporterRoot
titleCisco AnyConnect Secure Mobility Client任意代码执行及本地特权提升漏洞