Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re:(lots of re:)Trojan Horse? (taint mode)

by cfreak (Chaplain)
on Nov 27, 2001 at 01:32 UTC ( #127629=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Trojan Horse? (taint mode)
in thread Trojan Horse? (taint mode)

Opps must have foobared my test. You are correct
$a = qq|${system("echo 'hello from system'")}\n|; $a = "${system(\"echo 'hello from system'\")}\n";

do the same thing. Some how I had your example simply printing the string... hmmm

Anyway I read the author to mean to not do this:
$a = <stdin>; print "Some string with ${$a}";

But as you stated I'm finding that doesn't work, which is very strange to me. It seems as though it should, and there could be really cool uses for it.

That said, to get somewhat back on the orginal topic using taint mode is still a good idea, especially in CGI scripts. The trick is to learn what should be untainted and what doesn't have to be.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://127629]
and the sunlight beams...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2018-01-23 19:00 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (253 votes). Check out past polls.