Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Re: So, now what are taints?

by matija (Priest)
on Mar 29, 2004 at 05:54 UTC ( #340515=note: print w/replies, xml ) Need Help??

in reply to Re: So, now what are taints?
in thread So, now what are taints?

You are forgetting not mentioning that there are actualy two pieces of data there that need untainting: one is the domain parameter obtained from the CGI, but the other is the PATH of your program. If you use backticks like that, and don't set up your PATH explicitly, perl -T will complain.

That appears not to make sense in a CGI environment, but it makes a lot of sense when you're writing setuid root scripts that can be run from the command line.

Replies are listed 'Best First'.
Re: Re: Re: So, now what are taints?
by cLive ;-) (Parson) on Mar 29, 2004 at 06:08 UTC
    Indeed. Sorry - but it is mentioned in the article I linked to that I wrote on untainting :)

    cLive ;-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2016-10-26 21:46 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.