Re: Building mod-perl 2 for cygwin: taint cleanup

2003-02-19 Thread Stas Bekman
[splitting the thread in two] Stas Bekman wrote: Steve Baldwin wrote: I've got Apache2 installed and as far as I can tell, it is functional. I'm trying to build mod-perl from source (as I couldn't find any binaries for cygwin). When I initially ran the command : perl Makefile.PL

Re: Tracking down taint problems

2001-06-14 Thread Doug MacEachern
On Tue, 24 Apr 2001, Jamie Krasnoo wrote: I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in

RE: Tracking down taint problems

2001-06-14 Thread Rob Bloodgood
if you can reproduce at will, use gdb: % gdb httpd (gdb) source mod_perl-x.xx/.gdbinit (gdb) b Perl_croak (gdb) run -X run request that causes error ... (gdb) where stack printed here ... (gdb) curinfo perl filename:linenumber printed here ...

RE: Tracking down taint problems

2001-06-14 Thread Doug MacEachern
On Thu, 14 Jun 2001, Rob Bloodgood wrote: Seriously, tho, do you think you could come up with a short list of definitions for those macros? I was pretty excited to see them, once, except that I couldn't make them work. sigh Even a comment w/ a usage: AvFILL(address) most of them (the C

Tracking down taint problems

2001-04-24 Thread Jamie Krasnoo
I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in the current module that's being run. Is there a

Re: Tracking down taint problems

2001-04-24 Thread Stas Bekman
On Tue, 24 Apr 2001, Jamie Krasnoo wrote: I recently got this error: Insecure dependency in eval while running with -T switch. Callback called exit. Now, yes that tells me that something is wrong. What it doesn't tell me is where the problem is except for the fact that its somewhere in

RE: Taint

2000-10-03 Thread ricarDo oliveiRa
I hope this can help you: http://www.gunther.web66.com/FAQS/taintmode.html --Original Message-- From: "Herrington, Jack" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Sent: October 2, 2000 5:23:51 PM GMT Subject: RE: Taint 4) How do I check the

RE: Taint

2000-10-03 Thread ricarDo oliveiRa
I hope this can help you : http://www.gunther.web66.com/FAQS/taintmode.html --Original Message-- From: "Herrington, Jack" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Sent: October 2, 2000 5:23:51 PM GMT Subject: RE: Taint 4) How do I check the

RE: Taint

2000-10-03 Thread Gunther Birznieks
Thanks. :) Although I am not sure if this will help the person in question... I think that persistent Perl seems to run into some odd/interesting issues where taint mode is triggered in some odd ways. I've never encountered it myself but I've heard from others that there is some weird stuff

Taint

2000-10-02 Thread Herrington, Jack
A couple of questions about taint checking. 1) What is the default taint check setting? 2) Does compiling mod_perl with EVERYTHING=1 make a difference to the taint setting? 3) Does 'PerlTaintCheck Off' actually work? 4) How do I check the taint setting at run-time from a perl handler? Thanks

RE: Taint

2000-10-02 Thread Geoffrey Young
-Original Message- From: Herrington, Jack [mailto:[EMAIL PROTECTED]] Sent: Monday, October 02, 2000 12:59 PM To: '[EMAIL PROTECTED]' Subject: Taint A couple of questions about taint checking. 1) What is the default taint check setting? off 2) Does compiling mod_perl

RE: Taint

2000-10-02 Thread Herrington, Jack
4) How do I check the taint setting at run-time from a perl handler? I'm not sure that you can. PerlTaintCheck On or Off applies to all perl scripts/handlers... see http://perl.apache.org/guide/porting.html#Taint_Mode The problem that I am having is that I am getting taint errors in mason

RE: Taint

2000-10-02 Thread Vivek Khera
"HJ" == Herrington, Jack [EMAIL PROTECTED] writes: HJ Is there a way to enable and disable taint checking at run-time? No; taint mode is a Perl compile time decision.

RE: Taint

2000-10-02 Thread Herrington, Jack
Compile-time? You mean, when I compile Perl 5.6 I can permanently disable taint checking? -Original Message- From: Vivek Khera [mailto:[EMAIL PROTECTED]] Sent: Monday, October 02, 2000 11:04 AM To: Herrington, Jack Cc: '[EMAIL PROTECTED]' Subject: RE: Taint "HJ" == Herrin

RE: Taint

2000-10-02 Thread Geoffrey Young
no, the other compile time :) see camel 3rd ed chapter 18 for compile v run-time distinctions, esp p467 --Geoff -Original Message- From: Herrington, Jack [mailto:[EMAIL PROTECTED]] Sent: Monday, October 02, 2000 2:05 PM To: 'Vivek Khera' Cc: '[EMAIL PROTECTED]' Subject: RE: Taint

RE: Taint

2000-10-02 Thread Vivek Khera
"HJ" == Herrington, Jack [EMAIL PROTECTED] writes: HJ Compile-time? You mean, when I compile Perl 5.6 I can permanently disable HJ taint checking? No, when your perl code is compiled, just prior to it being run. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Re: further adventures with taint

2000-09-27 Thread Doug MacEachern
On Mon, 4 Sep 2000, Michael Blakeley wrote: I've been running with AP616 and Taint On for three days now, and it seems to have fixed my problems. I hope so. I really hope so. still looking good? would be good to know if this isn't a problem on the mod_perl side :)

Re: further adventures with taint

2000-09-27 Thread Michael Blakeley
At 11:52 AM -0700 9/27/2000, Doug MacEachern wrote: On Mon, 4 Sep 2000, Michael Blakeley wrote: I've been running with AP616 and Taint On for three days now, and it seems to have fixed my problems. I hope so. I really hope so. still looking good? would be good to know if this isn't

Re: further adventures with taint

2000-09-04 Thread Michael Blakeley
with PerlTaintCheck on, and I've read perlsec. My PATH is ''. How can I find out where this insecure dependency _is_, so I can turn taint back on? The timestamp tells me which script failed, and it uses a whole slew of modules. use strict; use Apache::Constants qw/:http/; use

Re: further adventures with taint

2000-07-26 Thread Jeremy Howard
I see intermittent Apache error_log entries like: [Mon Jul 24 04:08:02 2000] [error] Insecure dependency in require while running with -T switch at (eval 85) line 3. ... I suspect MIME::Lite, but the code won't work if I remove it Yes, MIME::Lite needs special treatment to be taint-safe

Re: further adventures with taint

2000-07-26 Thread Michael Blakeley
, MIME::Lite needs special treatment to be taint-safe. Get the latest version from CPAN, then do a 'perldoc taint'. I submitted a patch to the author which he has documented, that enables a taint-safe mode. cpan i MIME::Lite Module id = MIME::Lite DESCRIPTION Single module for composing

Re: further adventures with taint

2000-07-26 Thread Jeremy Howard
I'm only passing scalar text to MIME::Lite - no file attachments, so it shouldn't open(). Anyway, if it were, why don't I see "Insecure dependency in open" instead of "...in require"? Yes, good point. The open() is only used for sendmail, not for Net::SMTP anyway. Perhaps you need to add

further adventures with taint

2000-07-25 Thread Michael Blakeley
ad perlsec. My PATH is ''. How can I find out where this insecure dependency _is_, so I can turn taint back on? The timestamp tells me which script failed, and it uses a whole slew of modules. use strict; use Apache::Constants qw/:http/; use LWP; use tuner;

Re: bogus taint error?

2000-07-03 Thread Michael Blakeley
At 10:49 AM -0500 7/3/2000, Matt Carothers wrote: On Sun, 2 Jul 2000, Michael Blakeley wrote: This is just plain weird. My last resort was to turn taint off: $ ls -l logs/httpd.pid -rw-rw-rw- 1 root other 6 Jul 2 19:23 logs/httpd.pid $ grep -i taint conf/httpd.conf

Re: bogus taint error?

2000-07-03 Thread Michael Blakeley
m seeing intermittent taint errors like [Sat Jul 1 18:50:13 2000] [error] PerlRun: `Insecure dependency in require while running with -T switch at /foo.pl line 5. MB This is just plain weird. My last resort was to turn taint off: I've had to do that on a production server as well. The development

Re: bogus taint error?

2000-07-03 Thread Vivek Khera
"MB" == Michael Blakeley [EMAIL PROTECTED] writes: box *used* to work fine with taint checks, and then suddenly one day decided to stop working. MB What platform and version of perl do you use? Perhaps there's a MB correlation. Perl 5.004_04 on BSD/OS 4.0, and perl 5.005_02 on S

bogus taint error?

2000-07-02 Thread Michael Blakeley
With perl 5.6.0, Solaris 2.6, apache 1.3.9, and mod_perl 1.24, I'm seeing intermittent taint errors like [Sat Jul 1 18:50:13 2000] [error] PerlRun: `Insecure dependency in require while running with -T switch at /foo.pl line 5. head -6 foo.pl shows: #!perl use Apache::Constants qw/:http

Re: bogus taint error?

2000-07-02 Thread Michael Blakeley
At 2:00 PM -0700 7/2/2000, Michael Blakeley wrote: With perl 5.6.0, Solaris 2.6, apache 1.3.9, and mod_perl 1.24, I'm seeing intermittent taint errors like [Sat Jul 1 18:50:13 2000] [error] PerlRun: `Insecure dependency in require while running with -T switch at /foo.pl line 5. head -6 foo.pl

Re: bogus taint error?

2000-07-02 Thread Gunther Birznieks
There is a remote possibility (I would have to test this at work) that your command-line testing will never show a taint problem. Because you are typing all the Perl commands in STDIN, and because STDIN, is by its very definition tainted, you get a security paradox and Perl may be turning off

Re: bogus taint error?

2000-07-02 Thread Michael Blakeley
At 3:37 PM -0700 7/2/2000, Michael Blakeley wrote: At 2:00 PM -0700 7/2/2000, Michael Blakeley wrote: With perl 5.6.0, Solaris 2.6, apache 1.3.9, and mod_perl 1.24, I'm seeing intermittent taint errors like [Sat Jul 1 18:50:13 2000] [error] PerlRun: `Insecure dependency in require while

Re: bogus taint error?

2000-07-02 Thread Gunther Birznieks
, Michael Blakeley wrote: With perl 5.6.0, Solaris 2.6, apache 1.3.9, and mod_perl 1.24, I'm seeing intermittent taint errors like [Sat Jul 1 18:50:13 2000] [error] PerlRun: `Insecure dependency in require while running with -T switch at /foo.pl line 5. This is just plain weird. My last resort

Re: Missed a taint check

2000-01-16 Thread Gunther Birznieks
( FH, $page ) ) Why didn't that open() trigger a taint error? Tainting only triggers on write, not on read. Yeah, but suppose $page contains 'rm -r /* |'. That could be bad news. open() can do lots of stuff besides reading. Then its not a read and the tainting rules apply. -j

RE: Bad server, Bad server, down boy! (was RE: Hey, that ain't taint ed, is it?)

2000-01-11 Thread John Walker
-Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 11, 2000 11:28 AM To: John Walker Cc: '[EMAIL PROTECTED]' Subject: Re: Bad server, Bad server, down boy! (was RE: Hey, that ain't taint ed, is it?) [...] I think it's your perl, try to rebuild