Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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
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 taking refuge in the Monastery: (8)
As of 2014-09-23 08:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (212 votes), past polls