Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Arbitrary code execution within Perl
(
twitter.com/alfiedotwtf
)
1 point
by
alfiedotwtf
on Oct 14, 2017
|
hide
|
past
|
favorite
|
3 comments
alfiedotwtf
on Oct 14, 2017
[–]
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...
alfiedotwtf
on Oct 14, 2017
|
parent
[–]
Looks like setuid doesn't work because it needs to be set on the Perl binary itself and not the script
alfiedotwtf
on Oct 14, 2017
|
root
|
parent
[–]
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:
I think this is going to be a problem...