PHP Day 10: Security Issues with Superglobals and register_globals

This six-minute video explores the security issues and differences between the superglobals $_GET, $_POST, and $_REQUEST, as well as the problematic register_globals option.

Links for PHP Day 10: Security Issues with Superglobals and register_globals

Security issues and differences between superglobals $_GET, $_POST, and $_REQUEST:

  • PHP Get - Overview of the $_GET superglobal array.
  • PHP Post - Overview of the $_POST superglobal array.
  • Essential PHP Security Chapter 2 - Forms and URLS (PDF file) - A free sample chapter from the book Essential PHP Security by Chris Shiflett. I didn’t understand all of it, but it has some great explanations and examples of several exploits.

About register_globals:

Turning off register_globals:

  • Using a php.ini File - A good, basic overview.
  • .htaccess Tutorial - General info on the .htaccess file.
  • To turn off register_globals through the .htaccess file, just write “php_flag register_globals off” in it.

Originally I planned to cover PHP security in one video, but then I ended up spending half my day yesterday just reading about PHP security issues! Needless to say, I’ll be revisiting this topic.

Posted on February 14th, 2007 | Leave a comment | Trackback URL

2 Comments

  1. artcoder

    June 30th, 2008

    This is a great tutorial. I love how all the main salient information in presented so concisely.

  2. Ultra Lean Green

    July 31st, 2008

    Couldn’t get the htaccess link on your site to work.

Share Your Thoughts