Hey all,
I want to start using Taint mode for a script I'm building that requires retrieving an uploaded file from a input in a form.
When trying to use the -T switch, it gives the message:
Too late for "-T" option at upload_test.pl line 1.
This node is basically similar to:
http://perlmonks.org/index.pl?node_id=22210
The last post by user doran is probably my best solution.
I'm running Windows IIS and my registry key for perl scripts is :
c:\perl\bin\perl.exe %s %s
Now to fix this, Doran says to modify that line to:
c:\perl\bin\perl.exe -T %s %s
A question before doing this. Will it affect all perl scripts ran? I never used the taint mode and wondering would I need to change a lot of work in my scripts. Most of my scripts involves user input!...Such as signing up for membership where the script collects all user info to be added in a MySQL db and a simple password retrieval script that takes the user's e-mail from a input box.
Should I seriously take in consideration to taint all those scripts? This site may have a lot of hits so security may be a concern. I wish I knew about tainting and untainting earlier, I just went through all my scripts to incorporate the strict command and now I might need to do a similar re-editing process! ahhh... =)
Thank you,
Anthony