Secunia Logo
Netsikker nu! 2008
 
Perl "File::Path::rmtree" Directory Permissions Race Condition
Secunia Advisory: SA14531
Release Date: 2005-03-09
Popularity: 15,081 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

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. phpBB Avatar Functions Information Disclosure and Deletion // 124 views
2. phpBB Avatar Script Insertion Vulnerability // 111 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 99 views
4. phpBB BBcode "url" Script Insertion Vulnerability // 79 views
5. ArticleBeach Script "page" File Inclusion Vulnerability // 63 views
6. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 34 views
7. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 28 views
8. CA ARCserve Backup Multiple Vulnerabilities // 25 views
9. phpBB reveals user IPs // 24 views
10. CUPS Multiple Vulnerabilities // 23 views