Re: register_globals & security

From: Date: Thu, 13 Nov 2003 13:48:51 +0000
Subject: Re: register_globals & security
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169485@lists.php.net to get a copy of this message
Hi, Jay and Eugene have already made very good suggestions. To add to that you can always try filtering your variables with strip_tags(), htmlspecialchars(), addslashes() etc to protect against attacks. all the best Fernando Melo wrote:
Yup I still don't see how it improves anything with regards to security. -----Original Message----- From: Raditha Dissanayake [mailto:jabber@raditha.com] Sent: 13 November 2003 15:24 To: php-general@lists.php.net Subject: Re: [PHP] register_globals & security Hi, There is also a $_REQUEST variable. At the risk of starting another flame war: IMHO switching off register globals and relying on $_POST etc can lull you into a false sense of security. Fernando Melo wrote:
Thanks. I don't see how this makes it more secure though? The values are still picked up the same way from a URL
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#169485) next »