showing error Insecure dependency in parameter 3 of DBI::db=HASH(0xa32bd40)->do method call while running with -T switch

StackOverflow https://stackoverflow.com/questions/16649845

  •  30-05-2022
  •  | 
  •  

문제

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?

도움이 되었습니까?

해결책 2

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

다른 팁

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};
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top