|Think about Loose Coupling|
taint mode perplexitiesby jesuashok (Curate)
|on Mar 27, 2006 at 07:02 UTC||Need Help??|
jesuashok has asked for the
wisdom of the Perl Monks concerning the following question:
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.
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 with some other code and do some harm. I need to avoid this security hole and obviously I could check for the word '<SCRIPT>' in STDIN. Is there a better way of doing this and what other holes should I be aware of?
"Keep pouring your ideas"
2006-10-07 Unapproved by planetscape once evidence of habitual plagiarism uncovered.