andye has asked for the wisdom of the Perl Monks concerning the following question:
Please aid me in my untainted plight. I am trapped inside a piece of middleware, which embeds my Perl in HTML.
This means I can't do #!/usr/bin/perl -T
- yet my Perl takes variables from perfidious web users!
How can I switch on taint mode without using -T?
This node answers not my question (alas), and the Wise Dromedary remains silent (Chapter 23 of it does, anyway). As do the Fabled Oracles and the Secondary Sources.
I could taint my data using Taint.pm, but will this have any effect if I'm not in taint mode? Anyway, input I remember to taint will be input I remember to validate.
I could pass control to another script which was in taint mode, but that seems like overkill (and might be tricky with the middleware).
Any ideas?
If it's not possible, any alternatives?
Cheers,
andy.
(New to Perl, apologies if this is an obvious question)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: A Quest for Taint
by Ovid (Cardinal) on Dec 12, 2000 at 23:34 UTC | |
by mirod (Canon) on Dec 12, 2000 at 23:55 UTC | |
by Blue (Hermit) on Dec 13, 2000 at 18:41 UTC | |
by coreolyn (Parson) on Dec 13, 2000 at 23:33 UTC | |
by chipmunk (Parson) on Dec 13, 2000 at 10:49 UTC | |
by coreolyn (Parson) on Dec 13, 2000 at 11:16 UTC | |
| |
|
Re: A Quest for Taint
by repson (Chaplain) on Dec 13, 2000 at 09:11 UTC |