Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: taint mode perplexities

by liverpole (Monsignor)
on Oct 06, 2006 at 11:59 UTC ( #576649=note: print w/replies, xml ) Need Help??

in reply to taint mode perplexities

At this site, the following was written on March 25, 2006:
I have been reading up on web security and I am getting paranoid. I operate under taint mode - although I must confess to being a little in the dark as to what that means. I am using the following code in order to filter input from a form. CODE $TEST =~ s/[^a-zA-Z0-9@\/.,: ]//g; It works as expected but I am trying to make it as secure as possible +and found that if a user enters '<SCRIPT>' into a form field it treats it +as a Java Code and it is not filtered. I assume that I could follow this wi +th some other code and do some harm. I need to avoid this security hole and ob +viously I could check for the word '<SCRIPT>' in STDIN. Is there a better way of doing this and what other holes should I be a +ware of? Keith


Replies are listed 'Best First'.
Re^2: taint mode perplexities
by hossman (Prior) on Oct 07, 2006 at 03:04 UTC

    In a really odd twist, I note that the orriginal title of this node as "audio program" ... while "audiopro" is the nick used by "Kieth" on

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-05-23 20:02 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (82 votes). Check out past polls.