Mail Archive

beginners

<-- Chronological -->
Find 
<-- Thread -->

Re: Insecure $ENV{PATH}



Panneer Selvan wrote:
Hi,

I am running a perl program with -T -W switches.. while executing system function , i am getting an error like Insecure $ENV{PATH} while running with -T switch at try.pl

Any idea of solving this problem?

The perlsec documentation (run "man perlsec" or "perldoc perlsec") has a section explaining how to make %ENV safer.


<quote_documentation>

The PATH isn’t the only environment variable which can cause problems.
Because some shells may use the variables IFS, CDPATH, ENV, and
BASH_ENV, Perl checks that those are either empty or untainted when
starting subprocesses. You may wish to add something like this to your
setid and taint-checking scripts.

delete @ENV{qw(IFS CDPATH ENV BASH_ENV)}; # Make %ENV safer

</quote_documentaition>



- D.P.S


-- Douglas



-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



<-- Chronological --> <-- Thread -->

Reply via email to

1