Secunia Logo
Netsikker nu! 2008
 
Perl "File::Path::rmtree" Directory Permissions Race Condition
Secunia Advisory: SA14531
Release Date: 2005-03-09
Popularity: 15,060 views

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

Software:Perl 5.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-0448


Description:
Paul Szabo has reported a vulnerability in Perl "File::Path::rmtree", which potentially can be exploited by malicious, local users to gain escalated privileges.

The vulnerability is caused due to a race condition in the way "File::Path::rmtree" handles directory permissions when cleaning up directories. This can be exploited by replacing an existing sub directory in the directory tree with a symbolic link to an arbitrary file.

Successful exploitation may allow changing permissions of arbitrary files, if root uses an application using the vulnerable code to delete files in a directory having a world-writable sub directory.

This is related to:
SA13643

Solution:
Do not use applications, which use "File::Path::rmtree", on systems with untrusted users.

Provided and/or discovered by:
Paul Szabo

Original Advisory:
http://www.ubuntulinux.org/support/documentation/usn/usn-94-1

Other References:
SA13643:
http://secunia.com/advisories/13643/


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

Today
New advisories: 19
New vulnerabilities: 68
Updated advisories: 62

Moderately // 188 views
Debian update for php5
Moderately // 138 views
Atarone CMS Multiple Vulnerabilities
Moderately // 177 views
Debian update for squid
Less // 189 views
SUSE update for mercurial
Moderately // 233 views
SUSE update for openssh
Less // 179 views
Fedora update for mediawiki

Solutions | More...  


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. Debian update for php5 // 63 views
2. SUSE update for openssh // 56 views
3. H-Sphere webshell4 Cross-Site Scripting and Request Forgery // 41 views
4. Juniper Products Neighbor Discovery Protocol Neighbor Solicitation Vulnerability // 41 views
5. SUSE update for mercurial // 39 views
6. Atarone CMS Multiple Vulnerabilities // 34 views
7. WMNews Cross-Site Scripting Vulnerabilities // 33 views
8. MetaGauge Directory Traversal Vulnerability // 33 views
9. SUSE update for dovecot and graphicsmagic // 33 views
10. HP-UX NFS/ONCplus Denial of Service Vulnerability // 31 views