NOTE: leaving the "/^(.+)$/" like that is BAD, BAD, BAD. Make it more specific.sub _read_config { my $tainted_fh = FileHandle->new("Config_filename", "r"); if ($tainted_fh -~ /^(.+)$/) { my $fh = $1 } eval <$fh>; die "Config_filename improperly formatted:\n$@" if ($@); $fh->close(); }
In reply to Re: eval $fh while setuid...
by melguin
in thread eval $fh while setuid...
by PsychoSpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |