-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

           ESB-2005.0345 -- iDEFENSE Security Advisory 04.26.05
        Multiple Citrix Program Neighborhood Agent Vulnerabilities
                               27 April 2005

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           Citrix Program Neighborhood Agent
                   Citrix MetaFrame Presentation Server Client
Publisher:         iDEFENSE
Operating System:  Windows
Impact:            Execute Arbitrary Code/Commands
Access:            Remote/Unauthenticated
CVE Names:         CAN-2004-1077 CAN-2004-1078

Original Bulletin:
  http://www.idefense.com/application/poi/display?id=237&type=vulnerabilities
  http://www.idefense.com/application/poi/display?id=238&type=vulnerabilities

Comment: This ESB contains two iDEFENSE advisories relating to
         vulnerabilities in the Citrix Program Neighborhood Agent and
         Citrix MetaFrame Presentation Server Client.

- --------------------------BEGIN INCLUDED TEXT--------------------

Citrix Program Neighborhood Agent Arbitrary Shortcut Creation
Vulnerability

iDEFENSE Security Advisory 04.26.05
www.idefense.com/application/poi/display?id=237&type=vulnerabilities
April 26, 2005

I. BACKGROUND

Citrix Program Neighborhood Agent is a part of the Citrix Presentation
Server Client and facilitates access to Citrix published applications.

II. DESCRIPTION

Remote exploitation of a design error in Citrix Systems Inc.'s Program
Neighborhood Agent allows attackers to create arbitrary shortcuts under
the privileges of the client user.

Citrix Program Neighborhood Agent is a part of the Citrix Presentation
Server Client and facilitates access to Citrix published applications.
The problem specifically exists in that an attacker who has established
a malicious server can create arbitrary shortcuts to the client user's
Startup folder by specifying the following directive:

   <AppInStartmenu value="true" root="programs">startup</AppInStartmenu>

An attacker can specify the UNC path to an arbitrary malicious binary,
and this binary will be executed the next time the client user reboots
with an active network connection.

III. ANALYSIS

Successful exploitation allows remote attackers to execute arbitrary
code under the privileges of the client user. Exploitation requires that
an attacker establish a malicious server and cause or convince the
target user to connect to it via the Program Neighborhood Agent. This
can be accomplished by social engineering or automatically when combined
with a DNS- or ARP-spoofing attack.

IV. DETECTION

iDEFENSE has confirmed the existence of this vulnerability in Citrix
MetaFrame Program Neighborhood v8.00.24737. It is suspected that earlier
versions are also vulnerable.

V. WORKAROUND

Utilize the server IP address instead of the name to circumvent DNS
spoofing attacks.

VI. VENDOR RESPONSE

A vendor advisory for this vulnerability is available at:
   http://support.citrix.com/kb/entry.jspa?externalID=CTX105650

Updated clients to address this vulnerability are available at:
   http://www.citrix.com/English/SS/downloads/downloads.asp?dID=2755

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
names CAN-2004-1077 to these issues. This is a candidate for inclusion
in the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

11/23/2004   Initial vendor notification
11/24/2004   Initial vendor response
04/26/2005   Coordinated public disclosure

IX. CREDIT

Patrik Karlsson (cqure.net) is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

Free tools, research and upcoming events
http://labs.idefense.com

X. LEGAL NOTICES

Copyright (c) 2005 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.

- ---------------------------------------------------------------------------

Citrix Program Neighborhood Agent Buffer Overflow

iDEFENSE Security Advisory 04.26.05
www.idefense.com/application/poi/display?id=238&type=vulnerabilities
April 26, 2005

I. BACKGROUND

Citrix Program Neighborhood Agent is a part of the Citrix Presentation
Server Client and facilitates access to Citrix published applications.

II. DESCRIPTION

Remote exploitation of a buffer overflow vulnerability in Citrix Systems
Inc.'s Program Neighborhood Agent allows attackers to execute arbitrary
code under the privileges of the client user.

The problem specifically exists in the client code responsible for
handling the caching of information received from the server. The
Program Neighborhood Agent caches information from published
applications in the AppCache folder, located in the users profile
directory. Cached icon filenames are named after the published
application. The filename is constructed from a series of calls to
lstrcatA() into a stack based buffer. Because of insufficient bounds
checking, a stack based buffer overflow can occur after the second call
to lstrcatA() as the filename read from the XML element <InName> is
being added to the AppCache folder path. This leads to the eventual
execution of arbitrary code.

III. ANALYSIS

Successful exploitation allows remote attackers to execute arbitrary
code under the privileges of the client user. Exploitation requires that
an attacker establish a malicious server and cause or convince the
target user to connect to it via the Program Neighborhood Agent. This
can be accomplished by social engineering or automatically when combined
with a DNS or ARP spoofing attack.

Exploitation of this vulnerability is not trivial. In order to exploit
this vulnerability reliably, an attacker must determine the length of
the target user's username. In some cases, this information can be
gleaned with standard Windows tools such as NBTSTAT. Furthermore,
because requests are cached by the client, an attacker in most cases has
only one window of opportunity to perform a successful attack.

IV. DETECTION

iDEFENSE has confirmed the existance of this vulnerability in Citrix
MetaFrame Program Neighborhood v8.00.24737. It is suspected that earlier
versions are also vulnerable.

V. WORKAROUND

Utilize the server IP address instead of the name to circumvent DNS
spoofing attacks.

VI. VENDOR RESPONSE

A vendor advisory for this vulnerability is available at:
   http://support.citrix.com/kb/entry.jspa?externalID=CTX105650

Updated clients to address this vulnerability are available at:
   http://www.citrix.com/English/SS/downloads/downloads.asp?dID=2755

VII. CVE INFORMATION

The Common Vulnerabilities and Exposures (CVE) project has assigned the
names CAN-2004-1078 to these issues. This is a candidate for inclusion
in the CVE list (http://cve.mitre.org), which standardizes names for
security problems.

VIII. DISCLOSURE TIMELINE

11/23/2004   Initial vendor notification
11/24/2004   Initial vendor response
04/26/2005   Coordinated public disclosure

IX. CREDIT

Patrik Karlsson (cqure.net) is credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

Free tools, research and upcoming events
http://labs.idefense.com

X. LEGAL NOTICES

Copyright (c) 2005 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBQm85Sih9+71yA2DNAQJthwP9HFrzX+doe1qmQ6UnVlhwhgIrFkkuRRxR
I0S7kdOarfwAWKqejm6los6uo2MqsjLQKFgJiVIvZpdvSbK4EiWttbWC1pgjxZx9
3MMJ9K+MX4Skihrzq0FwCLl2/peZ8pTVpEyGd93PZSy2DFlPrAe07qQZmAizqLWb
jFkqCUwolrk=
=QEF5
-----END PGP SIGNATURE-----