Australia's Leading Computer Emergency Response Team

ESB-2005.0932 -- [Debian] -- New unzip packages fix unauthorised permissions modification
Date: 13 January 2006
Original URL: http://www.auscert.org.au/render.html?cid=1980&it=5757

Click here for PGP verifiable version
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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

                         ESB-2005.0932 -- [Debian]
       New unzip packages fix unauthorised permissions modification
                              13 January 2005

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

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

Product:           unzip
Publisher:         Debian
Operating System:  Debian GNU/Linux 3.1
                   Debian GNU/Linux 3.0
                   UNIX variants
Impact:            Inappropriate Access
Access:            Existing Account
CVE Names:         CAN-2005-2475

Original Bulletin: http://www.info-zip.org/pub/infozip/UnZip.html

Comment: This advisory references vulnerabilities in products which run on
         platforms other than Debian. It is recommended that administrators
         running unzip check for an updated version of the software for
         their operating system.
         
         Debian has re-released this update to fix a programming
         error introduced in the original update packages. See
         below for details.

Revision History:  January 13 2006: Debian fixes regression in previous update
                   November 22 2005: Initial Release

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

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

- - --------------------------------------------------------------------------
Debian Security Advisory DSA 903-2                     security@debian.org
http://www.debian.org/security/                             Martin Schulze
January 12th, 2006                      http://www.debian.org/security/faq
- - --------------------------------------------------------------------------

Package        : unzip
Vulnerability  : race condition
Problem type   : local
Debian-specific: no
CVE ID         : CAN-2005-2475
BugTraq ID     : 14450
Debian Bugs    : 321927 343680

The unzip update in DSA 903 contained a regression so that symbolic
links that are resolved later in a zip archive aren't supported
anymore.  This update corrects this behaviour.  For completeness,
below plese find the original advisory text:

   Imran Ghory discovered a race condition in the permissions setting
   code in unzip.  When decompressing a file in a directory an
   attacker has access to, unzip could be tricked to set the file
   permissions to a different file the user has permissions to.

For the old stable distribution (woody) this problem has been fixed in
version 5.50-1woody5.

For the stable distribution (sarge) this problem has been fixed in
version 5.52-1sarge3.

For the unstable distribution (sid) this problem has been fixed in
version 5.52-6.

We recommend that you upgrade your unzip package.


Upgrade Instructions
- - --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.


Debian GNU/Linux 3.0 alias woody
- - --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5.dsc
      Size/MD5 checksum:      571 75e2923b74af607785cbefbbea79d1ab
    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5.diff.gz
      Size/MD5 checksum:     6484 73efae47dcd377abb934e36805c16190
    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50.orig.tar.gz
      Size/MD5 checksum:  1068379 6d27bcdf9b51d0ad0f78161d0f99582e

  Alpha architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_alpha.deb
      Size/MD5 checksum:   160482 94b0a5e18d78866d92f375d6b93a22c3

  ARM architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_arm.deb
      Size/MD5 checksum:   139374 bd8cc4c654c901b5c320b2cdbf09f31b

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_i386.deb
      Size/MD5 checksum:   122808 1d5669290431fb7fe83f688447b22d84

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_ia64.deb
      Size/MD5 checksum:   191010 1cd02c151f46b5f7872a7de3079ebc2a

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_hppa.deb
      Size/MD5 checksum:   146954 ee23ad6e2c40d38e4655be1f2666489d

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_m68k.deb
      Size/MD5 checksum:   119578 7765363163750bed7e72472bee09afc4

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_mips.deb
      Size/MD5 checksum:   142950 97af77c03fb69936407c86394fb846a5

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_mipsel.deb
      Size/MD5 checksum:   143422 98a0ab0fd751c246ebd50e5c62886217

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_powerpc.deb
      Size/MD5 checksum:   136368 b2bea065ae91032fe987aaf120e08ad9

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_s390.deb
      Size/MD5 checksum:   137044 151da2fddaaca890dbf5166140f23881

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.50-1woody5_sparc.deb
      Size/MD5 checksum:   147498 022e8ca1cecf20178edd68296fd973aa


Debian GNU/Linux 3.1 alias sarge
- - --------------------------------

  Source archives:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3.dsc
      Size/MD5 checksum:      528 b6e01dbb89f9130fa16650b16f4d4e32
    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3.diff.gz
      Size/MD5 checksum:     5387 807b5d9e8efa85e8caab673eff38aff7
    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52.orig.tar.gz
      Size/MD5 checksum:  1140291 9d23919999d6eac9217d1f41472034a9

  Alpha architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_alpha.deb
      Size/MD5 checksum:   175506 90375091fd0c2577518bfd7db2202272

  AMD64 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_amd64.deb
      Size/MD5 checksum:   154876 7129ee6610e6ec0320141bb7aaa5288e

  ARM architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_arm.deb
      Size/MD5 checksum:   155430 3fb2c5576d1709c6d7cc1b89d61a50b8

  Intel IA-32 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_i386.deb
      Size/MD5 checksum:   144934 0e860597ffe259038f7bb8e1ce2630df

  Intel IA-64 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_ia64.deb
      Size/MD5 checksum:   206648 d261bf8a2e3c8fce3d0898355a7420db

  HP Precision architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_hppa.deb
      Size/MD5 checksum:   162840 91d7d512b915757bf7c7e3e8640efa0c

  Motorola 680x0 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_m68k.deb
      Size/MD5 checksum:   133734 878d1597bd5ef623a6bc70f6446654a4

  Big endian MIPS architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_mips.deb
      Size/MD5 checksum:   163396 5cbe0e22136949f240031502ea07d456

  Little endian MIPS architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_mipsel.deb
      Size/MD5 checksum:   163966 4066fa1e97bad61c47be9b6ffa47179f

  PowerPC architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_powerpc.deb
      Size/MD5 checksum:   157388 25c3d9d685ec411e5b53cc0e8002ca8e

  IBM S/390 architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_s390.deb
      Size/MD5 checksum:   156494 bfeb0b1d801266334e6a46f0818a9e6f

  Sun Sparc architecture:

    http://security.debian.org/pool/updates/main/u/unzip/unzip_5.52-1sarge3_sparc.deb
      Size/MD5 checksum:   154952 e1e42335312202d8b3f0727e9d78fda9


  These files will probably be moved into the stable distribution on
  its next update.

- - ---------------------------------------------------------------------------------
For apt-get: deb http://security.debian.org/ stable/updates main
For dpkg-ftp: ftp://security.debian.org/debian-security dists/stable/updates/main
Mailing list: debian-security-announce@lists.debian.org
Package info: `apt-cache show <pkg>' and http://packages.debian.org/<pkg>

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDxjcDW5ql+IAeqTIRArJQAJ48ZSIEK2BLNM8nw7eF+nYWcAp1SACglvjT
4zYhaiqXeH/DSpRL/YVOouM=
=ZkQw
- -----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.

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

iQCVAwUBQ8cGhSh9+71yA2DNAQLJlwQAmaOMaRzGUtr6WP9cYyP+DRv1NIq8ebN8
dvkfo2MY/r3AToJvHuj06mb/3T20hiFAkiqsJr8hxP2nkK5hYVGjVt2699Ghg9vA
81xm9DrY1L0UzOkV+Yu0tAAbf+e6D1nN4bOuh1RVVimTS0ac0k+QHTjubSmp0G0u
IoTRkCPRjMk=
=58Sy
-----END PGP SIGNATURE-----