Vulnerabilities > CVE-2012-2493 - Improper Input Validation vulnerability in Cisco Anyconnect Secure Mobility Client
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The VPN downloader implementation in the WebLaunch feature in Cisco AnyConnect Secure Mobility Client 2.x before 2.5 MR6 on Windows, and 2.x before 2.5 MR6 and 3.x before 3.0 MR8 on Mac OS X and Linux, does not properly validate binaries that are received by the downloader process, which allows remote attackers to execute arbitrary code via vectors involving (1) ActiveX or (2) Java components, aka Bug ID CSCtw47523.
Vulnerable Configurations
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 family Windows NASL id SMB_KB_2736233.NASL description The remote Windows host is missing one or more kill bits for ActiveX controls that are known to contain vulnerabilities. If any of these ActiveX controls are ever installed on the remote host, either now or in the future, they would expose the host to various security issues. Note that the affected controls are from a third-party vendor that has asked Microsoft to prevent their controls from being run in Internet Explorer. last seen 2020-06-01 modified 2020-06-02 plugin id 62045 published 2012-09-11 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/62045 title MS 2736233: Update Rollup for ActiveX Kill Bits (2736233) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(62045); script_version("1.12"); script_cvs_date("Date: 2018/11/15 20:50:28"); script_cve_id( "CVE-2012-2493", "CVE-2012-2494", "CVE-2012-2495", "CVE-2012-2496" ); script_bugtraq_id(54107, 54108); script_xref(name:"MSKB", value:"2736233"); script_name(english:"MS 2736233: Update Rollup for ActiveX Kill Bits (2736233)"); script_summary(english:"Checks if kill bits have been set"); script_set_attribute( attribute:"synopsis", value: "The remote Windows host is missing an update that disables selected ActiveX controls." ); script_set_attribute( attribute:"description", value: "The remote Windows host is missing one or more kill bits for ActiveX controls that are known to contain vulnerabilities. If any of these ActiveX controls are ever installed on the remote host, either now or in the future, they would expose the host to various security issues. Note that the affected controls are from a third-party vendor that has asked Microsoft to prevent their controls from being run in Internet Explorer." ); script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityAdvisories/2012/2736233"); script_set_attribute( attribute:"solution", value: "Microsoft has released a set of patches for Windows XP, 2003, Vista, 2008, 7, and 2008 R2."); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date", value:"2012/09/11"); script_set_attribute(attribute:"patch_publication_date", value:"2012/09/11"); script_set_attribute(attribute:"plugin_publication_date", value:"2012/09/11"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/o:microsoft:windows"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_family(english:"Windows"); script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc."); script_dependencies("smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl"); script_require_keys("SMB/MS_Bulletin_Checks/Possible"); script_require_ports(139, 445, "Host/patch_management_checks"); exit(0); } include("audit.inc"); include("smb_func.inc"); include("smb_hotfixes.inc"); include("smb_hotfixes_fcheck.inc"); include("smb_activex_func.inc"); include("misc_func.inc"); get_kb_item_or_exit("SMB/Registry/Enumerated"); get_kb_item_or_exit("SMB/WindowsVersion", exit_code:1); productname = get_kb_item_or_exit("SMB/ProductName", exit_code:1); if (hotfix_check_sp_range(xp:'3', win2003:'2', vista:'2', win7:'0,1') <= 0) audit(AUDIT_OS_SP_NOT_VULN); if (hotfix_check_server_core() == 1) audit(AUDIT_WIN_SERVER_CORE); if ("Windows Embedded" >< productname) exit(0, "The host is running "+productname+" and hence is not affected."); if (activex_init() != ACX_OK) exit(1, "Unable to initialize the ActiveX API."); # Test each control. info = ""; clsids = make_list( # Cisco Secure Desktop '{705ec6d4-b138-4079-a307-ef13e4889a82}', '{f8fc1530-0608-11df-2008-0800200c9a66}', '{e34f52fe-7769-46ce-8f8b-5e8abad2e9fc}', # Cisco Hostscan '{f8fc1530-0608-11df-2008-0800200c9a66}', '{e34f52fe-7769-46ce-8f8b-5e8abad2e9fc}', # Cisco AnyConnect Secure Mobility Client '{55963676-2f5e-4baf-ac28-cf26aa587566}', '{cc679cb8-dc4b-458b-b817-d447b3b6ac31}' ); foreach clsid (clsids) { if (activex_get_killbit(clsid:clsid) == 0) { info += ' ' + clsid + '\n'; if (!thorough_tests) break; } } activex_end(); if (info) { if (report_verbosity > 0) { if (max_index(split(info)) > 1) s = "s"; else s = ""; report = '\nThe kill bit has not been set for the following control'+s+' :\n\n'+ info; if (!thorough_tests) { report += '\nNote that Nessus did not check whether there were other kill bits\n'+ 'that have not been set because the "Perform thorough tests" setting\n'+ 'was not enabled when this scan was run.\n'; } hotfix_add_report(report); } else hotfix_add_report(); hotfix_security_hole(); } else audit(AUDIT_HOST_NOT, 'affected');
NASL family Windows NASL id CISCO_ANYCONNECT_VPN_DOWNLOADER_CODE_EXECUTION.NASL description The remote host has a version of Cisco AnyConnect < 2.5 MR6. Such versions are potentially affected by an arbitrary code execution vulnerability. The WebLaunch VPN downloader implementation does not properly validate binaries that are received, which can allow remote attackers to execute arbitrary code via ActiveX or Java components. last seen 2020-06-01 modified 2020-06-02 plugin id 59820 published 2012-07-02 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59820 title Cisco AnyConnect Secure Mobility Client VPN Downloader RCE (cisco-sa-20120620-ac) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(59820); script_version("1.11"); script_cvs_date("Date: 2018/07/06 11:26:08"); script_cve_id("CVE-2012-2493"); script_bugtraq_id(54107); script_xref(name:"CISCO-BUG-ID", value:"CSCtw47523"); script_xref(name:"CISCO-SA", value:"cisco-sa-20120620-ac"); script_xref(name:"ZDI", value:"ZDI-12-156"); script_name(english:"Cisco AnyConnect Secure Mobility Client VPN Downloader RCE (cisco-sa-20120620-ac)"); script_summary(english:"Checks version of Cisco AnyConnect Client"); script_set_attribute( attribute:"synopsis", value: "The remote host has software installed that is affected by an arbitrary code execution vulnerability." ); script_set_attribute( attribute:"description", value: "The remote host has a version of Cisco AnyConnect < 2.5 MR6. Such versions are potentially affected by an arbitrary code execution vulnerability. The WebLaunch VPN downloader implementation does not properly validate binaries that are received, which can allow remote attackers to execute arbitrary code via ActiveX or Java components." ); # # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20120620-ac script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b0b6c065"); script_set_attribute(attribute:"see_also", value:"http://www.zerodayinitiative.com/advisories/ZDI-12-156/"); script_set_attribute(attribute:"see_also", value:"http://seclists.org/fulldisclosure/2012/Aug/278"); script_set_attribute( attribute:"solution", value: "Upgrade to Cisco AnyConnect Secure Mobility Client 2.5 MR6 or greater." ); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date",value:"2012/06/20"); script_set_attribute(attribute:"patch_publication_date",value:"2012/06/20"); script_set_attribute(attribute:"plugin_publication_date",value:"2012/07/02"); 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) 2012-2018 Tenable Network Security, Inc."); script_dependencies('cisco_anyconnect_vpn_installed.nasl'); script_require_keys('SMB/cisco_anyconnect/Installed'); exit(0); } include('global_settings.inc'); include('misc_func.inc'); appname = 'Cisco AnyConnect Mobility 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.5.6005.0'; if (ver =~ "^2\." && ver_compare(ver:ver, fix:fix) == -1) { report += '\n Path : ' + path + '\n Installed version : ' + ver + '\n Fixed version : ' + fix + '\n'; } } if(report != '') { if (report_verbosity > 0) security_hole(port:get_kb_item('SMB/transport'), extra:report); else security_hole(get_kb_item('SMB/transport')); exit(0); } else exit(0, 'No affected ' + appname + ' installs found.');
NASL family MacOS X Local Security Checks NASL id MACOSX_CISCO_ANYCONNECT_MULTIPLE.NASL description The remote host has a version of Cisco AnyConnect < 2.5 MR6 / 3.0 MR8. Such versions are potentially affected by multiple vulnerabilities : - The WebLaunch VPN downloader implementation does not properly validate binaries that are received, which can allow remote attackers to execute arbitrary code via ActiveX of Java components. (CVE-2012-2493). - The WebLaunch VPN downloader implementation does not compare timestamps of offered software to install with currently installed software, which may allow remote attackers to downgrade the software via ActiveX of Java components. (CVE-2012-2494, CVE-2012-2495). last seen 2020-06-01 modified 2020-06-02 plugin id 59823 published 2012-07-02 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59823 title MacOSX Cisco AnyConnect Secure Mobility Client Multiple Vulnerabilities code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(59823); script_version("1.9"); script_cvs_date("Date: 2018/07/14 1:59:35"); script_cve_id( "CVE-2012-2493", "CVE-2012-2494", "CVE-2012-2495" ); script_bugtraq_id(54107, 54108); script_xref(name:"ZDI", value:"ZDI-12-149"); script_xref(name:"ZDI", value:"ZDI-12-156"); script_xref(name:"CISCO-SA", value:"cisco-sa-20120620-ac"); script_name(english:"MacOSX Cisco AnyConnect Secure Mobility Client Multiple Vulnerabilities"); script_summary(english:"Checks version of Cisco AnyConnect Client"); script_set_attribute( attribute:"synopsis", value: "The remote host has software installed that is affected by multiple vulnerabilities." ); script_set_attribute( attribute:"description", value: "The remote host has a version of Cisco AnyConnect < 2.5 MR6 / 3.0 MR8. Such versions are potentially affected by multiple vulnerabilities : - The WebLaunch VPN downloader implementation does not properly validate binaries that are received, which can allow remote attackers to execute arbitrary code via ActiveX of Java components. (CVE-2012-2493). - The WebLaunch VPN downloader implementation does not compare timestamps of offered software to install with currently installed software, which may allow remote attackers to downgrade the software via ActiveX of Java components. (CVE-2012-2494, CVE-2012-2495)." ); # https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20120620-ac script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?b0b6c065"); script_set_attribute(attribute:"see_also", value:"http://www.zerodayinitiative.com/advisories/ZDI-12-149/"); script_set_attribute(attribute:"see_also", value:"http://www.zerodayinitiative.com/advisories/ZDI-12-156/"); script_set_attribute(attribute:"see_also", value:"http://seclists.org/fulldisclosure/2012/Aug/269"); script_set_attribute(attribute:"see_also", value:"http://seclists.org/fulldisclosure/2012/Aug/278"); script_set_attribute( attribute:"solution", value: "Upgrade to Cisco AnyConnect Secure Mobility Client 2.5 MR6 / 3.0 MR8 or greater." ); 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:U/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"vuln_publication_date",value:"2012/06/20"); script_set_attribute(attribute:"patch_publication_date",value:"2012/06/20"); script_set_attribute(attribute:"plugin_publication_date",value:"2012/07/02"); 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:"MacOS X Local Security Checks"); script_copyright(english:"This script is Copyright (C) 2012-2018 Tenable Network Security, Inc."); script_dependencies("macosx_cisco_anyconnect_installed.nasl"); script_require_keys("MacOSX/Cisco_AnyConnect/Installed"); exit(0); } include("global_settings.inc"); include("misc_func.inc"); include("audit.inc"); appname = 'Cisco AnyConnect Mobility VPN Client'; kb_base = "MacOSX/Cisco_AnyConnect"; get_kb_item_or_exit(kb_base+"/Installed"); path = get_kb_item_or_exit(kb_base+"/Path", exit_code:1); version = get_kb_item_or_exit(kb_base+"/Version", exit_code:1); fix2 = '2.5.6005.0'; fix3 = '3.0.8057.0'; if ((version =~ "^2\." && ver_compare(ver:version, fix:fix2, strict:FALSE) == -1) || (version =~ "^3\." && ver_compare(ver:version, fix:fix3, strict:FALSE) == -1)) { if(version =~ "^2\.") fix = fix2; else fix = fix3; if (report_verbosity > 0) { report = '\n Path : ' + path + '\n Installed version : ' + version + '\n Fixed version : ' + fix + '\n'; security_hole(port:0, extra:report); } else security_hole(0); exit(0); } else audit(AUDIT_INST_VER_NOT_VULN, appname, version);