in reply to setuid script returning Insecure dependency

When -T taint mode is active Perl stops your code from doing potentially bad things. What this means is that you may not use external input to your script to effect anything outside your script. Without seeing your code all I can suggest is that your @cols array takes a feed from outside the script and is then being used to do something that taint regards as risky. To fix the problem you need to cleanse the values in @cols by running them through a regex like:

sub untaint { my $val = shift; $val =~ s/[^\w.-]/_/g; # tr/A-Za-z0-9.-/_/c is faster but less e +asy to read for some $val =~ m/([^\w.-])/; my $clean_taint_free_val = $1; return $clean_taint_free_val; }

In this case we set up a substitution to convert all non alphanumerics . or - to _ and then do a capturing match. The captured value in $1 is untainted as you have processed it and perl assumes you know what you are doing. You modify this as required. It is always better to specifically include what you need adn ditch re rest rather than trying to substitute out potentially risky shell metachars as you will always miss some.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print