Perl File::Path module rmtree function symlink
| perl-filepath-rmtree-symlink (43308) |
Description:
The Perl File::Path module rmtree function could allow a local attacker to launch a symlink attack, caused by the improper handling of temporary files that are created with insecure permissions before performing a chmod. A local attacker could exploit this vulnerability by creating a symbolic link from a temporary file to other files on the system, which would allow the attacker to overwrite arbitrary files on the system with the privileges of the victim, or obtain sensitive information.
*CVSS:
| Base Score: | 3.3 |
| Access Vector: | Local |
| Access Complexity: | Medium |
| Authentication: | None |
| Confidentiality Impact: | None |
| Integrity Impact: | Partial |
| Availability Impact: | Partial |
| Temporal Score: | 2.9 |
| Exploitability: | High |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
File Manipulation
Remedy:
Refer to Debian Bug report logs - #487319 for patch, upgrade or suggested workaround information. See References.
References:
- CPAN Bug #36982: #36982: rmtree() makes symlink targets world-writable.
- Debian Bug report logs - #487319: perl-modules: File::Path::rmtree sets symlink target permissions to 0777.
- perldoc Web site: File::Path.
- BID-29902: Perl 'rmtree()' Function Local Insecure Permissions Vulnerability
- CVE-2008-2827: The rmtree function in lib/File/Path.pm in Perl 5.10 does not properly check permissions before performing a chmod, which allows local users to modify the permissions of arbitrary files via a symlink attack, a different vulnerability than CVE-2005-0448 and CVE-2004-0452.
- MDVSA-2008:165: perl
- SA30790: Perl "File::Path::rmtree" Insecure chmod on Symbolic Links
- SECTRACK ID: 1020373: Perl rmtree() Function Lets Local Users Gain Elevated Privileges
- SUSE-SR:2008:017: SUSE Security Summary Report
Platforms Affected:
- Larry Wall Perl 5.10
- MandrakeSoft Mandrake Linux 2008.1 X86_64
- MandrakeSoft Mandrake Linux 2008.1
Reported:
Jun 20, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
