Re: Perl code security (CGI related)
| Newsgroups | gmane.comp.security.programming |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 06 Apr 2004 15:47:28 BST, [email protected] said: > I would suggest that you make a rule: any time there is the possibility that > a user will be putting data into your application, you should enable Perl's > taint mode. Do a google search for 'perl taint' (no quotes) for a plethora of > information on this excellent security tool. One *important* precautionary note regarding Perl tainting: It *does* prohibit unintended use of a user-supplied variable without some sort of examination/validation/filtering beforehand. It *does* *not* have any way of validating that *proper* filtering was done (so, for instance, "change all spaces to spaces" would suffice to untaint the data, while doing nothing for security).
signature.asc
(application/pgp-signature, 226 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFAcxDScC3lWbTT17ARAiuQAKCbjmHbwqXr0z5DT9VXPFrU3cyQrwCgur2U 6Dfajr+R+8xpwEhMWR+XiyE= =+iBz -----END PGP SIGNATURE-----