Welcome to the Monastery | |
PerlMonks |
First Time Untainting Databy svsingh (Priest) |
on Oct 10, 2003 at 15:24 UTC ( [id://298282]=perlquestion: print w/replies, xml ) | Need Help?? |
svsingh has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing an application that keeps track of contact information for my cousins. I just finished the part that updates the data file based on input into a form.
I'd like to ensure my data isn't tainted and the script isn't exploitable. After reading Untainting Safely and Ovid's CGI Tutorial, I came up with the code at the end of this posting. If it's not too much touble, can I get some comments on my first attempt at untainting data. Am I missing anything or doing anything risky? Thanks for your help.
Update: Added first line of the script to the code block. I'm assuming the -T argument runs the script in taint mode.
Back to
Seekers of Perl Wisdom
|
|