N-111: Red Hat Updated unzip Packages Fix Trojan Vulnerability Privacy and Legal Notice

CIAC INFORMATION BULLETIN

N-111: Red Hat Updated unzip Packages Fix Trojan Vulnerability

[Red Hat Security Advisory RHSA-2003:199-05]

July 1, 2003 18:00 GMT
[Revised 14 Aug 2003]

PROBLEM: Unzip versions 5.50 and earlier contain a vulnerability allowing arbitrary files to be overwritten during extraction.
PLATFORM: Red Hat Linux 7.1, 7.2, 7.3, 8.0 and 9
DAMAGE: Attackers could place non-printable characters in malicious .zip files making it possible to write to parent directories.
SOLUTION: Update to the new unzip packages listed in the advisory.

VULNERABILITY
ASSESSMENT:
The risk is MEDIUM. Users would have to click on an unzipped file to initiate the malicious action. Users should always be cautious with e-mail attachments including .zip files.

LINKS:  
  CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/n-111.shtml
  ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2003-199.html
  ADDITIONAL INFORMATION: http://www.sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsalert%2F56120&zone_32=category%3Asecurity

Revision History: 08/14/03 - Added Sun's Alert ID: 56120

[***** Start Red Hat Security Advisory RHSA-2003:199-05 *****]

Updated unzip packages fix trojan vulnerability

Advisory: RHSA-2003:199-05 
Last updated on: 2003-07-01 
Affected Products: Red Hat Linux 7.1
Red Hat Linux 7.2
Red Hat Linux 7.3
Red Hat Linux 8.0
Red Hat Linux 9 
CVEs (cve.mitre.org): CAN-2003-0282

Security Advisory 

Details:

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

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.


Updated packages:

Red Hat Linux 7.1 

--------------------------------------------------------------------------------
 
SRPMS: 
unzip-5.50-11.src.rpm
[ via FTP ] [ via HTTP ]     627c65d2643152f360a4b7f8ebacf993 
  
i386: 
unzip-5.50-11.i386.rpm
[ via FTP ] [ via HTTP ]     c37b3635f768ca248ef6486f38a4cfb1 
  
Red Hat Linux 7.2 

--------------------------------------------------------------------------------
 
SRPMS: 
unzip-5.50-11.src.rpm
[ via FTP ] [ via HTTP ]     627c65d2643152f360a4b7f8ebacf993 
  
i386: 
unzip-5.50-11.i386.rpm
[ via FTP ] [ via HTTP ]     c37b3635f768ca248ef6486f38a4cfb1 
  
ia64: 
unzip-5.50-11.ia64.rpm
[ via FTP ] [ via HTTP ]     e1cb9d0c5312667c601e3a04e160ea3c 
  
Red Hat Linux 7.3 

--------------------------------------------------------------------------------
 
SRPMS: 
unzip-5.50-11.src.rpm
[ via FTP ] [ via HTTP ]     627c65d2643152f360a4b7f8ebacf993 
  
i386: 
unzip-5.50-11.i386.rpm
[ via FTP ] [ via HTTP ]     c37b3635f768ca248ef6486f38a4cfb1 
  
Red Hat Linux 8.0 

--------------------------------------------------------------------------------
 
SRPMS: 
unzip-5.50-12.src.rpm
[ via FTP ] [ via HTTP ]     b06d287ae9708615d9c8201addd84ceb 
  
i386: 
unzip-5.50-12.i386.rpm
[ via FTP ] [ via HTTP ]     14e662c115aab0fd073602a2637c306a 
  
Red Hat Linux 9 

--------------------------------------------------------------------------------
 
SRPMS: 
unzip-5.50-14.src.rpm
[ via FTP ] [ via HTTP ]     da4837981a5363b178185c3d53bfe3f5 
  
i386: 
unzip-5.50-14.i386.rpm
[ via FTP ] [ via HTTP ]     12b5697f11ad09959e9f51d570c37268 
  

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.


Bugs fixed:  (see bugzilla for more information)

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


References:

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


Keywords:

characters, control, unzip 


--------------------------------------------------------------------------------
The listed packages are GPG signed by Red Hat, Inc. for security. Our key is 
available at: http://www.redhat.com/solutions/security/news/publickey/#key

You can verify each package and see who signed it 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 

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

[***** End Red Hat Security Advisory RHSA-2003:199-05 *****]


CIAC wishes to acknowledge the contributions of Red Hat, Inc. for the information contained in this bulletin.
DOE-CIRC can be contacted at:
    Voice:          +1 866-941-2472 (7 x 24)
    E-mail:          doecirc@doecirc.energy.gov
    World Wide Web:  http://www.doecirc.energy.gov/