copyright | disclaimer | privacy | contact  
Australia's Leading Computer Emergency Response Team
 
Search this site

 
On this site

 > HOME
 > About AusCERT
 > Membership
 > Contact Us
 > PKI Services
 > Publications
 > Sec. Bulletins
 > Conferences
 > News & Media
 > Services
 > Web Log
 > Site Map
 > Site Help
 > Member login





 

ESB-2007.0932 -- [Solaris] -- A Security Vulnerability in unzip(1L) May Set Unintended Permissions on Extracted Files

Date: 05 December 2007

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

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

                        ESB-2007.0932 -- [Solaris]
         A Security Vulnerability in unzip(1L) May Set Unintended
                      Permissions on Extracted Files
                              5 December 2007

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

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

Product:              unzip
Publisher:            Sun Microsystems
Operating System:     Solaris 10 Operating System
                      Solaris 9 Operating System
                      Solaris 8 Operating System
Impact:               Execute Arbitrary Code/Commands
Access:               Existing Account
CVE Names:            CVE-2005-0602

Original Bulletin:    
  http://sunsolve.sun.com/search/printfriendly.do?assetkey=1-26-103150-1

Revision History:      December 5 2007: Updated the Contributing Factors 
                                        section to specify vulnerable 
                                        releases. 
                                        Updated the Resolution section to 
                                        list patches available for 
                                        Solaris 8.
                      November 30 2007: Updated Contributing Factors to 
                                        list all affected releases. 
                                        Updated the Resolution to detail a 
                                        patch released for Solaris 9.
                      November 16 2007: Initial Release

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

Sun(sm) Alert Notification
     * Sun Alert ID: 103150
     * Synopsis: A Security Vulnerability in unzip(1L) May Set Unintended
       Permissions on Extracted Files
     * Category: Security
     * Product: Solaris 9 Operating System, Solaris 10 Operating System,
       Solaris 8 Operating System
     * BugIDs: 6344676
     * Avoidance: Patch, Workaround
     * State: Workaround
     * Date Released: 14-Nov-2007
     * Date Closed: 
     * Date Modified: 28-Nov-2007, 03-Dec-2007

1. Impact

   A security vulnerability in the unzip(1L) command may set unintended
   permissions on extracted files. This may allow a local unprivileged
   user to execute arbitrary code with the privileges of another user who
   runs the unzip command to extract files from a specially crafted unzip
   archive.

   This issue is also referenced in the following document:

   CVE-2005-0602 at
   http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-0602

2. Contributing Factors

   This issue can occur in the following releases:

   SPARC Platform
     * Solaris 8 without patch 108987-19
     * Solaris 9 without patch 112951-14
     * Solaris 10

   x86 Platform
     * Solaris 8 without patch 108988-19
     * Solaris 9 without patch 114194-11
     * Solaris 10

   Note: This issue affects versions of the unzip(1L) command prior to
   5.52. The following command can be used to determine the version of
   unzip that is installed on a system:
    $ unzip -v
    UnZip 5.32 of 3 November 1997, by Info-ZIP.  Maintained by Greg Roelofs.
    Send bug reports to the authors at Zip-Bugs@lists.wku.edu; see README
    for details.
    [...]

3. Symptoms

   This issue is exploited by creating archives which contain executable
   files with a set-id bit set (see chmod(2)). As a result, files that
   are extracted from an archive that has been specially crafted to
   exploit this issue will have this bit set when extracted on
   filesystems which allow this. The ls(1) command can be used to display
   the permissions of a newly extracted file, as in the
   following example:
    $ ls -l test
    -r-sr-xr-x   1 testu staff      10280 Nov  9 17:56 test

   The 's' in the user permissions section of the above output indicates
   this file has the "set-user-id" bit set. 

4. Relief/Workaround

   It is recommended that archives from untrusted sources not be
   extracted using the unzip(1L) command until patches can be applied.
   The unzip(1L) command can be disabled entirely by removing executable
   permissions from the file, for example by using the chmod(1) command
   as follows (as the user "root"):
    # chmod a-x /usr/bin/unzip


5. Resolution

   This issue is addressed in the following releases:

   SPARC Platform
     * Solaris 8 with patch 108987-19 or later
     * Solaris 9 with patch 112951-14 or later

   x86 Platform
     * Solaris 8 with patch 108988-19 or later
     * Solaris 9 with patch 114194-11 or later

   A final resolution is pending completion.

Change History

   28-Nov-2007:
     * Updated Contributing Factors and Resolution sections

   03-Dec-2007:
     * Updated Contributing Factors and Resolution sections

   This Sun Alert notification is being provided to you on an "AS IS"
   basis. This Sun Alert notification may contain information provided by
   third parties. The issues described in this Sun Alert notification may
   or may not impact your system(s). Sun makes no representations,
   warranties, or guarantees as to the information contained herein. ANY
   AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
   WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
   NON-INFRINGEMENT, ARE HEREBY DISCLAIMED. BY ACCESSING THIS DOCUMENT
   YOU ACKNOWLEDGE THAT SUN SHALL IN NO EVENT BE LIABLE FOR ANY DIRECT,
   INDIRECT, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES THAT ARISE
   OUT OF YOUR USE OR FAILURE TO USE THE INFORMATION CONTAINED HEREIN.
   This Sun Alert notification contains Sun proprietary and confidential
   information. It is being provided to you pursuant to the provisions of
   your agreement to purchase services from Sun, or, if you do not have
   such an agreement, the Sun.com Terms of Use. This Sun Alert
   notification may only be used for the purposes contemplated by these
   agreements.

   Copyright 2000-2006 Sun Microsystems, Inc., 4150 Network Circle, Santa
   Clara, CA 95054 U.S.A. All rights reserved

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

iQCVAwUBR1XwgCh9+71yA2DNAQL/SAP+Nj61lmNNfObroDV9IAiT8BjhayHFonVm
fYDr93BPYKMmFBJsgwjk5+FYeHrHC00jD4kIjEEWdwewum4kFCUlFiAhIbAQOANq
CLa+RnL8n6E04UMvXcdeSeGV43tG3M17ERkd0qZgUpcxCIJ5EcG6C4nr8WGYhCTg
IZPr7OHKq0g=
=zuUH
-----END PGP SIGNATURE-----