Women in Technology

Hear us Roar

  Ten Security Checks for PHP, Part 1
Subject:   Register Globals on
Date:   2003-05-22 23:21:49
From:   anonymous2
I am aware of the fact that its a security risk to set the register globals on in php.ini.

But still cant figure out , how a potential bad user can make advantage of that and misuse it.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Register Globals on
    2003-05-22 23:55:36  clancymalcolm [View]

    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.