|
|||||||||||
|
Re: Serverside script injection?
From: JAMES J FERRARA <jferr007(at)odu.edu>
Date: Mon Jan 13 2003 - 03:41:32 EST At the base of this, I believe, is the principle that 100% of user input must go through a parsing process. For PHP, this means addslashes(), especially for something that goes into mySQL or any other SQL statement. I once saw a nslookup tool that took user input in the form of an IP address or a hostname as $input and ran the command system("nslookup $input"); or somesuch; without filtering, we can see the drastic effects this could have (ns.php?input=127.0.0.1%20&&%20rm%20/%20-rf).
-James Ferrara
>To:joh ket <johket@hotmail.com>
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:47 EDT |
||||||||||
|
|||||||||||