Women in Technology

Hear us Roar

  Ten Security Checks for PHP, Part 1
Subject:   Register Globals on
Date:   2003-05-22 23:55:36
From:   clancymalcolm
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.

Hope this helps.


Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Register Globals on
    2003-05-26 04:42:37  anonymous2 [View]

    Thanks for the reply..
    That means that if and only if the data is being passed vai GET method, the question of security in regard to register globals on, comes into play..
    what if the method used is POST?

    Thanks again for the reply