in reply to issues displaying cgi script source?
Your script contains a security hole. The value of ( param() )[0] is given directly to your two-arg-open() call. It looks like your -e test might be enough to prevent people from taking over your shell but it is at least giving the world access to read any file on your hard drive.
Please read perlsec, turn on tainting, and learn to use three-arg-open: open ..., "<", $full or die "Couldn't open $full for reading: $!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: issues displaying cgi script source?
by Elijah (Hermit) on Jul 06, 2004 at 21:37 UTC | |
by diotalevi (Canon) on Jul 06, 2004 at 22:14 UTC |