- or download this
#!/usr/bin/perl -T
use strict;
...
open( FH, '+>', $params{A} ) or die "$params{A} : untaint \$params
+{A}";
close FH;
}
- or download this
$ t-taint.pl
type 'file' to test: file
Insecure dependency in open while running with -T switch at ./t-taint.
+pl line 46, <> line 1.
- or download this
# untaint parameters
for( keys %params )
...
display_message( $messages{error} ) && exit;
}
}