Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Arbitrary code execution within Perl (twitter.com/alfiedotwtf)
1 point by alfiedotwtf on Oct 14, 2017 | hide | past | favorite | 3 comments


If a Perl script has setuid root, if it loads any libraries, Perl will try and read @PERL5LIB. The @[[]] within string interpolation executes code to expand the string value, but backticks work here too.

I think this is going to be a problem...


Looks like setuid doesn't work because it needs to be set on the Perl binary itself and not the script


My mistake... this way getting shell expanded, so didn't even hit Perl. Nothing to see here!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: