||Ten Security Checks for PHP, Part 1|
|Subject:||Register Globals on|
Response to: Register Globals on
It IS possible to write "secure" PHP applications with register globals turned on - it is just harder than if they were turned off. For example, a couple of years ago I discovered a security flaw in PHPShop where you could bypass their authentication system by passing it some values in the URL that set global variables to fool it in to thinking you were logged in. It was possible to fix this problem by making sure the variables were explicitly unset in the code before checking the authentication, but the problem never would have occurred if register_globals was turned off.
Showing messages 1 through 6 of 6.
Register Globals on
2003-05-26 04:42:37 anonymous2 [View]