Re[2]: [PHP] GET, POST, REQUEST
| From: | Tom Rogers | Date: | Sun, 18 Jun 2006 07:51:09 +0000 |
| Subject: | Re[2]: [PHP] GET, POST, REQUEST | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238219@lists.php.net to get a copy of this message | ||
Hi,
Sunday, June 18, 2006, 5:19:20 PM, you wrote:
S> ----- Original Message -----
S> From: "Rory Browne" <rory.browne@gmail.com>
>>
>> Good code won't be vulnerable to register_globals either, but having
>> register_globals on is a security problem because there are security flaws
>> that can only be exploited when register_globals is enabled.
>>
S> Actually, code quality cannot overcome the vulnerability of
S> register_globals. Every program will have global variables.
S> register_globals=on may overwrite a valid global variable, one totally
S> unrelated to user input, with a value coming from the request, and there is
S> nothing good coding can do about it. The chances that an external user might
S> hit the right variable name are slim (unless a disgruntled former
S> programmer) but they exist.
S> Satyam
Just get into the habit of setting all variables to known values
before using them will take care of this problem. Set the warning
level to E_ALL and get warned when using variables that have not been
set to good values while in the development phase.
--
regards,
Tom