2

i got the error Insecure dependency in parameter 3 of DBI::db=HASH(0xa32bd40)->do method call while running with -T switch while i modified the file show_bug.cgi

what is the reason?

Jenifer_justin
  • 167
  • 1
  • 20

2 Answers2

3

To untaint ie. variable $unsecure, a regular expression should be applied

my ($secure) = $unsecure =~ / (\d+) /x
  or die q{we couldn't find number in $unsecure};
mpapec
  • 50,217
  • 8
  • 67
  • 127
2

To untaint a variable, you must match it against a capturing regular expression. See perlsec - Perl Security for details.

choroba
  • 231,213
  • 25
  • 204
  • 289