UnZip File Permissions Change Vulnerability
Secunia Advisory: SA16309
Release Date: 2005-08-03
Last Update: 2005-08-08
Popularity: 8,994 views

Critical:
Not critical
Impact: Privilege escalation
Where: Local system
Solution Status: Unpatched

Software:UnZip 5.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-2475


Description:
Imran Ghory has reported a vulnerability in unzip, which can be exploited by malicious, local users to perform certain actions on a vulnerable system with escalated privileges.

The vulnerability is caused due a race condition that exists when the uncompressed file is closed and before its permissions are changed. This can be exploited via hardlink attacks to change the permissions of other files belonging to the user running unzip.

Successful exploitation requires that the malicious user is able to delete the uncompressed file and replace it with a hardlink to another file owned by the unzip user, before permissions are set on the file.

The vulnerability has been reported in version 5.52. Prior versions may also be affected.

Solution:
Only unzip files into directories with the sticky bit set or where other users don't have write permissions.

Provided and/or discovered by:
Imran Ghory

Changelog:
2005-08-08: Added CVE reference.


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 62 views
2. HP OpenView Select Identity Connectors Information Disclosure // 50 views
3. Cisco ASA and PIX Security Appliances Multiple Vulnerabilities // 49 views
4. Drupal Content Construction Kit Script Insertion Vulnerabilities // 42 views
5. Microsoft Office Two Code Execution Vulnerabilities // 38 views
6. Opera Multiple Vulnerabilities // 32 views
7. CS-Cart "cs_cookies" SQL Injection Vulnerability // 31 views
8. Sun Java JDK / JRE Multiple Vulnerabilities // 31 views
9. VLC Media Player Multiple Vulnerabilities // 26 views
10. Wireshark Denial of Service Vulnerabilities // 25 views