"Secure programmer: Keep an eye on inputs"

From: Mike Migurski (mike_at_saturn5.com)
Date: 12/30/03


Date: Tue, 30 Dec 2003 14:04:54 -0800 (PST)
To: php-general@lists.php.net

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



Relevant Pages

  • Re: Memory in use
    ... I have been doing that and what I have seen is that a couple of applications ... do increase in their mem usage, but nothing close to the tune of 200MB! ... Commit Charge on the Performance tab and then go to the Processes tab. ... descending order based on memory usage. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: High Cpu usage at 100%
    ... applications running.i went to the processes window and the two things ... sucking all the usage are system and update.exe. ... update to windows sp2 but i cant because of high cpu usage. ...
    (microsoft.public.windowsxp.general)
  • Re: origin of "application" for computer programs
    ... My understanding is that application is short for application program, but the question remains for the derivation of the usage. ... electrical engineers can look in a catalog of parts and find things ... be used in a wider variety of applications than the part it replaces". ... And software that helps you make the computer work in ...
    (comp.programming)
  • Re: how to change dpkg installation directory?
    ... applications but unless your root disk is tiny the applications are ... I would suggest to put /home on a separate partition. ... Users who have many audio or video files will push up the usage on /home. ...
    (Ubuntu)