Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File:Temp::_is_safe() allows unsafe traversal of symlinks [rt.cpan.org #69106] #14

Open
xdg opened this issue Apr 3, 2016 · 3 comments

Comments

@xdg
Copy link
Contributor

xdg commented Apr 3, 2016

https://rt.cpan.org/Ticket/Display.html?id=69106

Example...

As user "attacker":

ln -s /tmp /tmp/exploit

As user "victim":

perl -MFile::Temp -e 'File::Temp->safe_level(File::Temp::HIGH); print
File::Temp::tempdir("/tmp/exploit/meXXXX") . "\n";'

The temporary directory path that is returned includes the symlink owned
by the "attacker" user.
@0-wiz-0
Copy link

0-wiz-0 commented Sep 20, 2022

This is CVE-2011-4116 - is someone working on fixing this?

@karenetheridge
Copy link
Member

probably not. perlsec might not be aware.

@0-wiz-0
Copy link

0-wiz-0 commented Oct 29, 2022

How can we make them aware? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants