Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've recently been hired by a company to improve their CGI scripts running on NT using IIS. I don't know anything about NT or IIS. My immediate problem is that none of their CGI scripts use taint checking!
I've tried using -T on the shebang line, but I get a "Too late for -T error". This suggests to me that IIS is firing up the Perl interpreter and THEN passing the script to it. The Perl interpreter needs to have taint checking enabled when it comes up, but I'm not sure how this works.
Here's my dilemma: if I figure out how to enable taint checking with Perl AUTOMATICALLY, then all of their scripts will break and we have too many for me to fix all of them. I need to be able to have IIS read the shebang line and fire up Perl if it's on the shebang line (with whatever switches are passed). If it doesn't find a shebang line, and none of their scripts currently have one, then it should fire up Perl with no taint checking -- otherwise all of their current scripts will break. Is their something funky I can do with extensions?
I know that some of you will tell me to get another job and I just might, but I honestly want to find a way to help them out of this problem. In short, I need a transparent solution that will allow them to write secure scripts using taint checking without breaking anything they already have.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Perl and IIS
by tye (Sage) on Dec 01, 2000 at 00:28 UTC | |
by davemabe (Monk) on Dec 01, 2000 at 00:54 UTC | |
by tye (Sage) on Dec 01, 2000 at 00:58 UTC | |
by BatGnat (Scribe) on Dec 01, 2000 at 02:10 UTC | |
|
Re: Perl and IIS
by mrmick (Curate) on Nov 30, 2000 at 23:42 UTC | |
by Ovid (Cardinal) on Dec 01, 2000 at 00:08 UTC | |
|
Re: Perl and IIS
by PsychoSpunk (Hermit) on Dec 01, 2000 at 00:08 UTC | |
by doran (Deacon) on Dec 01, 2000 at 06:39 UTC | |
by tye (Sage) on Dec 01, 2000 at 06:43 UTC | |
by doran (Deacon) on Dec 01, 2000 at 22:50 UTC |