Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Trojan Horse? (taint mode)

by BrentDax (Hermit)
on Nov 26, 2001 at 11:46 UTC ( #127501=note: print w/ replies, xml ) Need Help??


in reply to Trojan Horse? (taint mode)

There are some pretty dangerous possibilities:

$a=" (?{system('rm -rf *')})"; $b=~/foo($a)bar/;
That will ruin your whole day.

=cut
--Brent Dax
There is no sig.


Comment on Re: Trojan Horse? (taint mode)
Download Code
Replies are listed 'Best First'.
Re: Re: Trojan Horse? (taint mode)
by blakem (Monsignor) on Nov 26, 2001 at 13:18 UTC
    For this to ruin your day, you would have to explicitly permit the execution of code within interpolated variables with use re 'eval'; So, like the example in the book, it looks scary on the surface, but isn't that bad in practice.

    -Blake

      Boy am I glad I pushed for use re 'eval'. It's at times like this when paranoia pays off...

          -- Chip Salzenberg, Free-Floating Agent of Chaos

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127501]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-30 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls