Stone, Timothy [[EMAIL PROTECTED]] wrote:
> List,
>
> I will concede that this is probably a question better for a perl list... but I'm
>not a regular perl type and thus not a perl list member.
>
> I'm running a perl program with the "she-bang" : #!/usr/bin/perl -wT
>
> Well, this causes a problem ... I keep getting an error reporting:
>
> Insecure ENV{$PATH}...
>
> Can anyone elaborate on the reasons this is occurring? Removing the -wT switches
>fixes the problem and I'm able to run the program.
I think you'll find that removing the 'T' will fix your problem.
'T' is for 'Taint' mode - it is added security, and it makes your
perl script NOT trust almost(all?) all sources of data coming from
outside your script - like environment variables in hash %ENV such
as the PATH variable.
When you use 'T'aint mode, before you can use data that came from
outside your script, you 1st need to "untaint" it. If you're
interested in learning more about "taint"ed data, read the
perldocs documentation that comes with your Perl installation.
Start by doing
perldoc perlsec
at a command prompt, and search(using the forward slash "/") for
"Laundering and Detecting Tainted Data".
If possible, it is *wise* to use the 'T'aint mode - it makes
your scripts much more secure. You just need to learn how to
"untaint" your data. Since this program is the W3C HTML
LinkChecker, I'm not sure what that means - that ithe W3C
programmer who wrote it didn't untaint the environment variable
PATH before trying to use it??? I'm not familiar with that
program, so I can't be much more help here.
HTH.
--
Hardy Merrill
Senior Software Engineer
Red Hat, Inc.
>
> I running RHL 7.3 with the pretty much the default install of perl. I did load a
>number of CPAN modules to get the program to run. BTW, this program is the W3C HTML
>LinkChecker (checklink.pl).
>
> Thanks for indulging the question.
>
> Warmest Regards,
> Tim
>
> --
> /**
> * Timothy Stone . Sun Certified Java Programmer
> * Web Master . tstone at cityofhbg dot com
> * City of Harrisburg . 717.255.7297
> * Pennsylvania USA . 717.903.9162
> *
> * "This Satan's drink [coffee] is so delicious,
> * we shall cheat Satan and baptize it."
> * --Pope Clement VIII
> */
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list