Open nferraz opened 4 years ago
This policy identifies the following string (used in a die) as potential target for SQL injections:
die
die "Select returned: $error";
Same thing with other functions that are commonly used for logging and error handling:
INFO "Delete record $id"; warn "Update returned: $error"; croak "Insert returned: $error";
Here's a patch to whitelist functions that are considered "safe": https://github.com/guillaumeaubert/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection/pull/23
This policy identifies the following string (used in a
die
) as potential target for SQL injections:Same thing with other functions that are commonly used for logging and error handling:
Here's a patch to whitelist functions that are considered "safe": https://github.com/guillaumeaubert/Perl-Critic-Policy-ValuesAndExpressions-PreventSQLInjection/pull/23