iDefense Security Advisory 07.14.11 http://labs.idefense.com/intelligence/vulnerabilities/ Jul 14, 2011 I. BACKGROUND Citrix's Access Gateway solution provides remote access to customers via the Web browser. This is accomplished through the use of an ActiveX control that enables an SSL based VPN. The control itself is provided by the server upon connecting. Access Gateway functionality is provided by several models of Access Gateway Appliances. For more information, visit the URL referenced below. II. DESCRIPTION Remote exploitation of a buffer overflow in Citrix Systems, Inc.'s Access Gateway Client ActiveX control allows remote attackers to execute arbitrary code. The vulnerability exists within the ActiveX control with the following identifiers: CLSID: 181BCAB2-C89B-4E4B-9E6B-59FA67A426B5 ProgId: NSEPA.NsepaCtrl.1 File: %WINDIR%\Downloaded Program Files\nsepa.ocx When processing HTTP header data provided by the Access Gateway server, the client ActiveX control copies a variable length string into a fixed-size stack buffer. Due to insufficient input validation, a trivially exploitable stack-based buffer overflow can occur. III. ANALYSIS Exploitation allows attackers to execute arbitrary code in the context of the currently logged-on user. To exploit this vulnerability, a targeted user must load a malicious Web page created by an attacker. An attacker typically accomplishes this via social engineering or injecting content into compromised, trusted sites. Additionally, a targeted user must have this control already installed or must accept several warning prompts at the time that the attack is taking place. This control is not on the white list included with Internet Explorer 7.0. More information can be found at the following URL. http://msdn.microsoft.com/en-us/library/bb250471.aspx This particular control also has an additional prompt inquiring whether or not the user wishes to allow an "Endpoint Analysis" scan. The options presented are "Yes", "No", and "Always Allow". Clicking "Yes" or "Always Allow" can lead to exploitation. Clicking "No" can not result in exploitation. Also, clicking "Always Allow" will create a registry key enabling automatic scanning for all future uses of the control. IV. DETECTION The following versions of Citrix Access Gateway Enterprise Edition are vulnerable: