Package: unzip Version: 5.52-3 Severity: normal Tags: security There has been a report about a minor security problem in unzip:
If a malicious local user has write access to a directory in which a target user is using unzip to extract a file to then a TOCTOU bug can be exploited to change the permission of any file belonging to that user. On decompressing unzip copies the permissions from the compressed file to the uncompressed file. However there is a gap between the uncompressed file being written (and it's file handler being close) and the permissions of the file being changed. During this gap a malicious user can remove the decompressed file and replace it with a hard-link to another file belonging to the user. unzip will then change the permissions on the hard-linked file to be the same as that of the compressed file. The vulnerable line of code can be found on line 1160 of the file unix.c where chmod is used (rather than fchmod). unzip also use's chmod in a number of other places which may also be vulnerable to exploitation. See http://marc.theaimsgroup.com/?l=bugtraq&m=112300046224117&w=2 This is CAN-2005-2475. Cheers, Moritz -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.12-rc5 Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages unzip depends on: ii libc6 2.3.5-3 GNU C Library: Shared libraries an unzip recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]