in reply to (Ovid) Re(4): CGI OO 'param' vs. hash
in thread CGI OO 'param' vs. hash
This script will never, ever, let anyone pass a shell command (AFAIK; see next question). If this is the case, can I safely ignore said null byte, or should I strip it out just for fun? Also, see my reply above (directly below, the way this threading works) to tadman - I'm running with Taint on, and explicitly untainting every parameter I accept with a regex of "allowed" characters.
If I do decide to pass shell commands, is your 1-liner $data =~ s/\x00//g; sufficient to guard against this problem?
--
man with no legs, inc.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: CGI OO 'param' vs. hash
by tye (Sage) on Jul 10, 2001 at 01:34 UTC |