4. Stay away from shells and evals (this should be no problem, 'cause I don't know enough to even know why I'd want to use one), but also file ops that use user input
Some people are more comfortable using the shell than they are with Perl, so they might choose to write
system("rm $filename");
instead of using unlink. This would be a problem if $filename were a string beginning with a semicolon followed by another shell command. Taint mode will not allow system to execute when given tainted input, to prevent that type of thing from happening.
In reply to Re: Re: Back to acceptable untainted characters
by bunnyman
in thread Back to acceptable untainted characters
by bradcathey
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |