You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Richard Asplin <ri...@hpestl.bbn.hp.com> on 2001/08/07 18:19:44 UTC

Problem with "PerlTaintCheck On" (ASP 2.19)

Hi :-)

I seem to have a problem now I've enabled "PerlTaintCheck On" in my
httpd.conf...  I've tried putting the "$MLDBM::RemoveTaint = 1;" line
everywhere along with a few lines to sanitise $ENV{PATH}, and have now left
those lines in the global.asa file so it is run every time an ASP file is
interpreted.  Adding that line only removed one line of MLDBM errors from
Apache's error log... :-)

Everytime I run a script now, I get this printed to the error log...

"[Tue Aug  7 18:12:07 2001] [error] Insecure dependency in eval while
running with -T switch at /opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line
2727.
        Apache::ASP::GlobalASA::new('Apache::ASP=HASH(0x403270b8)') called
at /opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line 600
        Apache::ASP::new('Apache=SCALAR(0x40117274)') called at
/opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line 152
        Apache::ASP::handler('Apache=SCALAR(0x40117274)') called at
/dev/null line 0
        eval {...} called at /dev/null line 0"

Anyone have any ideas what I'm doing wrong here? :)

Thanks in advance,
Rich Asplin


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: Problem with "PerlTaintCheck On" (ASP 2.19)

Posted by Joshua Chamas <jo...@chamas.com>.
Richard Asplin wrote:
>
> Everytime I run a script now, I get this printed to the error log...
> 
> "[Tue Aug  7 18:12:07 2001] [error] Insecure dependency in eval while
> running with -T switch at /opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line
> 2727.
>         Apache::ASP::GlobalASA::new('Apache::ASP=HASH(0x403270b8)') called
> at /opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line 600
>         Apache::ASP::new('Apache=SCALAR(0x40117274)') called at
> /opt/perl5/lib/site_perl/5.6.1/Apache/ASP.pm line 152
>         Apache::ASP::handler('Apache=SCALAR(0x40117274)') called at
> /dev/null line 0
>         eval {...} called at /dev/null line 0"
> 
> Anyone have any ideas what I'm doing wrong here? :)
> 

I just tried running with PerlTaintCheck On, and I didn't
get any errors with Apache::ASP 2.21, but my perl is 5.00501
that I check this on, and 5.6.1 is probably different.

Any chance you could set PerlTaintCheck Off just for the
ASP scripts?  Personally I have never done work with 
PerlTaintCheck On, and only got it to work before on 
request, which I am happy to do, but don't know when 
I'll be building a modperl with perl 5.6.1.

If you'd like to check out the code and try to make it
taint safe, you are more than welcome.  I will also 
try to look at this when I can, as I might be able to work 
on this sooner than building a modperl with perl 5.6.1

--Josh
_________________________________________________________________
Joshua Chamas                           Chamas Enterprises Inc.
NodeWorks Founder                       Huntington Beach, CA  USA 
http://www.nodeworks.com                1-714-625-4051

---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org