-----BEGIN PGP SIGNED MESSAGE-----

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

                     ESB-2003.0576 -- RHSA-2003:199-02
              Updated unzip packages fix trojan vulnerability
                              18 August 2003

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

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

Product:                unzip
Publisher:              Red Hat
Operating System:       Red Hat Linux 9
                        Red Hat Linux 8.0
                        Red Hat Linux 7.3
                        Red Hat Linux 7.2
Platform:               IA-32
                        IA-64
                        PowerPC
Impact:                 Overwrite Arbitrary Files
Access Required:        Remote
CVE Names:              CAN-2003-0282

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

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

- - ---------------------------------------------------------------------
                   Red Hat Security Advisory

Synopsis:          Updated unzip packages fix trojan vulnerability
Advisory ID:       RHSA-2003:199-02
Issue date:        2003-07-01
Updated on:        2003-08-15
Product:           Red Hat Linux
Keywords:          unzip control characters
Cross references:  
Obsoletes:         RHSA-2002:096
CVE Names:         CAN-2003-0282
- - ---------------------------------------------------------------------

1. Topic:

Updated unzip packages resolving a vulnerability allowing arbitrary files
to be overwritten are now available.

[Updated 15 August 2003]
Ben Laurie found that the original patch to fix this issue missed a case
where the path component included a quoted slash.  These updated packages
contain a new patch that corrects this issue.

2. Relevant releases/architectures:

Red Hat Linux 7.1 - i386
Red Hat Linux 7.1 for iSeries (64 bit) - ppc
Red Hat Linux 7.1 for pSeries (64 bit) - ppc
Red Hat Linux 7.2 - i386, ia64
Red Hat Linux 7.3 - i386
Red Hat Linux 8.0 - i386
Red Hat Linux 9 - i386

3. Problem description:

The unzip utility is used for manipulating archives, which are multiple
files stored inside of a single file.

A vulnerabilitiy in unzip version 5.50 and earlier allows attackers to
overwrite arbitrary files during archive extraction by placing invalid
(non-printable) characters between two "." characters.  These non-printable
characters are filtered, resulting in a ".." sequence.  The Common
Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
CAN-2003-0282 to this issue.

This erratum includes a patch ensuring that non-printable characters do not
make it possible for a malicious .zip file to write to parent directories
unless the "-:" command line parameter is specified.

Users of unzip are advised to upgrade to these updated packages, which are
not vulnerable to this issue.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):

97301 - vulnerability in unzip 5.50 allows malicious zip file to write to ../

6. RPMs required:

Red Hat Linux 7.1:

SRPMS:
ftp://updates.redhat.com/7.1/en/os/SRPMS/unzip-5.50-31.src.rpm

i386:
ftp://updates.redhat.com/7.1/en/os/i386/unzip-5.50-31.i386.rpm

Red Hat Linux 7.1 for iSeries (64 bit):

SRPMS:
ftp://updates.redhat.com/7.1/en/os/iSeries/SRPMS/unzip-5.50-31.src.rpm

ppc:
ftp://updates.redhat.com/7.1/en/os/iSeries/ppc/unzip-5.50-31.ppc.rpm

Red Hat Linux 7.1 for pSeries (64 bit):

SRPMS:
ftp://updates.redhat.com/7.1/en/os/pSeries/SRPMS/unzip-5.50-31.src.rpm

ppc:
ftp://updates.redhat.com/7.1/en/os/pSeries/ppc/unzip-5.50-31.ppc.rpm

Red Hat Linux 7.2:

SRPMS:
ftp://updates.redhat.com/7.2/en/os/SRPMS/unzip-5.50-31.src.rpm

i386:
ftp://updates.redhat.com/7.2/en/os/i386/unzip-5.50-31.i386.rpm

ia64:
ftp://updates.redhat.com/7.2/en/os/ia64/unzip-5.50-31.ia64.rpm

Red Hat Linux 7.3:

SRPMS:
ftp://updates.redhat.com/7.3/en/os/SRPMS/unzip-5.50-31.src.rpm

i386:
ftp://updates.redhat.com/7.3/en/os/i386/unzip-5.50-31.i386.rpm

Red Hat Linux 8.0:

SRPMS:
ftp://updates.redhat.com/8.0/en/os/SRPMS/unzip-5.50-32.src.rpm

i386:
ftp://updates.redhat.com/8.0/en/os/i386/unzip-5.50-32.i386.rpm

Red Hat Linux 9:

SRPMS:
ftp://updates.redhat.com/9/en/os/SRPMS/unzip-5.50-33.src.rpm

i386:
ftp://updates.redhat.com/9/en/os/i386/unzip-5.50-33.i386.rpm



7. Verification:

MD5 sum                          Package Name
- - --------------------------------------------------------------------------
7726fd0a5026763537b7d947e84fa8a5 7.1/en/os/SRPMS/unzip-5.50-31.src.rpm
5528f5705d056ceeda5ad97e6ade46f8 7.1/en/os/i386/unzip-5.50-31.i386.rpm
7726fd0a5026763537b7d947e84fa8a5 7.1/en/os/iSeries/SRPMS/unzip-5.50-31.src.rpm
1b56998c114550b761819d63bd5ced3e 7.1/en/os/iSeries/ppc/unzip-5.50-31.ppc.rpm
7726fd0a5026763537b7d947e84fa8a5 7.1/en/os/pSeries/SRPMS/unzip-5.50-31.src.rpm
1b56998c114550b761819d63bd5ced3e 7.1/en/os/pSeries/ppc/unzip-5.50-31.ppc.rpm
7726fd0a5026763537b7d947e84fa8a5 7.2/en/os/SRPMS/unzip-5.50-31.src.rpm
5528f5705d056ceeda5ad97e6ade46f8 7.2/en/os/i386/unzip-5.50-31.i386.rpm
451f973b77c2ced03d344495774cd253 7.2/en/os/ia64/unzip-5.50-31.ia64.rpm
7726fd0a5026763537b7d947e84fa8a5 7.3/en/os/SRPMS/unzip-5.50-31.src.rpm
5528f5705d056ceeda5ad97e6ade46f8 7.3/en/os/i386/unzip-5.50-31.i386.rpm
a16d8797347c730ad0f2e6892f881eb3 8.0/en/os/SRPMS/unzip-5.50-32.src.rpm
e708a3b370ec0febd115dca3dd4da0f4 8.0/en/os/i386/unzip-5.50-32.i386.rpm
5b4b902fde88ab017acb2c0c7f48b2c2 9/en/os/SRPMS/unzip-5.50-33.src.rpm
e6d52c854a8ebba7dacb678a5edb5cb8 9/en/os/i386/unzip-5.50-33.i386.rpm


These packages are GPG signed by Red Hat for security.  Our key is
available from http://www.redhat.com/security/keys.html

You can verify each package with the following command:
    
    rpm --checksig -v <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    
    md5sum <filename>


8. References:

http://marc.theaimsgroup.com/?l=bugtraq&m=105259038503175
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-0282

9. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at http://www.redhat.com/solutions/security/news/contact.html

Copyright 2003 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/PJqbXlSAg2UNWIIRAr0RAJsF60aP++eBiyRg7IYGP36dpY/14wCcDw7W
wgi+/A4dlis+0M5wMLgaSIs=
=+9K8
- -----END PGP SIGNATURE-----

- --------------------------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.

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

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

iQCVAwUBP0Bs1Sh9+71yA2DNAQGVugP/WLXtPDpHT/Zl1b9pBvSdjPfxGLAzfNJN
UxYQDHCemOuKrxdI6FcI5TyeTstdTo8R458DODtxBrBnJRFOwd6G1wSuBp7VrpRj
bHuO+J1EXmeCGPGmS8DrPYksLocIW/y0qNEmXK+YmKm6EKyJINBKw9js368UDebp
F58Avggr8PI=
=QTWr
-----END PGP SIGNATURE-----