Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

--Brent Dax
There is no sig.

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.


      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127501]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-03-18 03:11 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (228 votes). Check out past polls.