in reply to PerlTaintCheck and configuration for secure paths
Did you sanitize $thumbName? see perlsec, section Laundering and Detecting Tainted Data.
Try something like
That should do.$thumbName = ($thumbName =~ /^([-\@\w.\/]+)$/) ? $1 : undef; if($thumbName) { open( NEWIMG, "+>$thumbName" ) or croak "Can't open new imagefile: + ($thumbName) $! \n"; }
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ / /\_¯/(q / ---------------------------- \__(m.====·.(_("always off the crowd"))."· ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: PerlTaintCheck and configuration for secure paths
by geektron (Curate) on Jun 22, 2006 at 17:44 UTC | |
by shmem (Chancellor) on Jun 22, 2006 at 17:51 UTC | |
by geektron (Curate) on Jun 22, 2006 at 18:08 UTC |