Re: GET, POST, REQUEST

From: Date: Sat, 17 Jun 2006 23:35:51 +0000
Subject: Re: GET, POST, REQUEST
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-238210@lists.php.net to get a copy of this message
So, a secure application always has to validate values from client side originated variables, independently if the values were retrieved from $_GET, $_POST, $_COOKIE or $_REQUEST .
You should always validate ALL external variables. As for server side originated variables, these do not need to be
validated if you get them from $_SESSION, $_SERVER and $_ENV .
THIS IS NOT TRUE. Some $_SERVER variables can be influenced by the client ( eg $_SERVER['PATH_INFO'], being one example) (same for $_ENV) $_SESSION validation is equally important, but slightly different. You need to make sure ( for example ) that your sessions aren't being hijacked.

« previous php.general (#238210) next »