in reply to Ideas Wanted for Perl::Critic Security Policies
Using the 3-parameter form of open would be a good practice to check for. It would be good to warn about system or exec calls that pass arguments inside the first parameter (i.e. system("$command $arg1 $arg2") instead of system($command, $arg1, $arg2)).
If practical, warning about DBI statements that use inline variables where prototypes are better (i.e. $dbh->prepare("update table set my_val = $somevalue") instead of $dbh->prepare("update table set my_val = ?")). I'm guessing that would be a challenge, but it sure would be nifty.
Yes, proper untainting would probably solve these issues, but I've seen too many coders untaint such things extremely poorly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Ideas Wanted for Perl::Critic Security Policies
by davidrw (Prior) on Jul 01, 2006 at 00:40 UTC |