mailing list archives
Foundstone Labs Advisory - Remotely Exploitable Buffer Overflow in PGP
From: "Foundstone Labs" <labs () foundstone com>
Date: Fri, 6 Sep 2002 10:54:17 -0700
Foundstone Labs Advisory - 090502-PCRO
Advisory Name: Remotely Exploitable Buffer Overflow in PGP
Release Date: September 5, 2002
Application: PGP Corporate Desktop 7.1.1
Platforms: Windows 2000/XP
Severity: Remote code execution and plaintext passphrase
Vendors: PGP Corporation (http://www.pgp.com)
Authors: Tony Bettini (tony.bettini () foundstone com)
CVE Candidate: CAN-2002-0850
In many locations where PGP handles files, the length of the filename is
properly checked. As a result, PGP Corporate Desktop will crash if a
attempts to encrypt or decrypt a file with a long filename. A remote
may create an encrypted document, that when decrypted by a user running
would allow for remote commands to be executed on the client's computer.
A malicious attacker could create a filename containing:
<196 bytes><eip><9 bytes><readable address><29 bytes>
The attacker would then encrypt the file using the public key of the
target user. In many cases, public keys often contain banners of the
utilized PGP client software and its associated version.
The encrypted archive could then be sent to the target user; potentially
via a Microsoft Outlook attachment. The email attachment could have a
filename such as "foryoureyesonly.pgp" or "confidential.pgp". When the
unsuspecting user decrypts the archive (either via autodecrypt or
overflow will occur if the file within the archive has a long filename.
In some cases the attacker may also obtain the passphrase of the target
PGP crashes immediately after the decryption of the malicious file and
the memory containing the passphrase is overwritten.
PGP has issued a fix for this vulnerability, it is available at:
Foundstone would like to thank PGP for their cooperation with the
of this vulnerability.
We recommend applying the vendor patch.
The information contained in this advisory is copyright (c) 2002
Foundstone, Inc. and is believed to be accurate at the time of
publishing, but no representation of any warranty is given,
express, or implied as to its accuracy or completeness. In no
event shall the author or Foundstone be liable for any direct,
indirect, incidental, special, exemplary or consequential
damages resulting from the use or misuse of this information.
This advisory may be redistributed, provided that no fee is
assigned and that the advisory is not modified in any way.
- Foundstone Labs Advisory - Remotely Exploitable Buffer Overflow in PGP Foundstone Labs (Sep 06)