in reply to Re^4: Insecure dependency in system under -T, with list form invocation
in thread Insecure dependency in system under -T, with list form invocation
When run as ./program foo you get this:#!/usr/local/bin/perl -T use warnings; use strict; use Scalar::Util qw( tainted ); print "ARGV: " . ( tainted( @ARGV ) + 0 ) . "\n"; print "ARGV[0]: " . ( tainted( $ARGV[0] ) + 0 ) . "\n" if defined $ARG +V[0];
ARGV: 0 ARGV[0]: 1
Taintedness is a property of a scalar. An array is not tainted, but the scalar elements of it are. You need to untaint the elements of your arrays that are being passed as arguments.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Insecure dependency in system under -T, with list form invocation
by cramdorgi (Acolyte) on Sep 12, 2008 at 08:24 UTC | |
by mr_mischief (Monsignor) on Sep 12, 2008 at 15:01 UTC |