upto my knowledge once a variable is tainted, Perl won’t allow to use it in a system(), exec(), piped open, eval(), backtick command, or any function that affects something outside the program (such as unlink). So whats the process to untaint it?
Share
Use a regular expression on the tainted variable to pull out the “safe” values:
Don’t ignore this warning though:
Perlsec: Laundering and Detecting Tainted Data