"Secure programmer: Keep an eye on inputs"
| From: | Mike Migurski | Date: | Tue, 30 Dec 2003 22:04:54 +0000 |
| Subject: | "Secure programmer: Keep an eye on inputs" | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173502@lists.php.net to get a copy of this message | ||
This was posted to Slashdot not too long ago, and seems applicable to
php-general given the frequent mentions of register_globals and usage of
the get and post arrays. It's a detailed explanation of many common ways
that software which is overly trusting of its input can be exploited, and
underscores the point that input from the open internet is particularly
risky.
http://www-106.ibm.com/developerworks/linux/library/l-sp3.html
A lot of the article deals specifically with writing applications in a
Unix environment, but the general take-home points for PHP programmers
boil down to:
- In a client/server system, the server should never trust the client.
- Ruthlessly check untrusted inputs.
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html