Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

register_global = on?

Status
Not open for further replies.

jefargrafx

Instructor
Joined
May 24, 2001
Messages
273
Location
US
what is the real security issue around turning register_globals on. the php.ini states that we should leave it set off for security.

the app I'm developing is on the other side of a corporate firewall and I was wonder what the real deal was?

thanks
Let me know

jef
 
The real security issues have to do with the introduction of arbitrary values into un-initialized parameters.

If you refer to $id in your code and it is not set anywhere to a specific value anyone can just append ?id=whateverIwant to the URL and the variable has that value.

It doesn't seem like a huge security hole, however, the PHP manual gives several examples that demonstrate the possible seriousness:

It is also clearer to be able to see where a parameter comes from $is versus $_POST['id']

The firewall would not have any impact. You want to process form data. The only place where there would be diminished concerns would be an INTRANET - as long as you trust the users.
However, it is best not to trust any user or user input.
 
I do like your last line and thanks for the input.

that'll just make my case for keep them set off even thou we are on an INTRANET

jef
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top