Re: Secure system calls -- how
| From: | Niels | Date: | Fri, 11 Feb 2005 18:15:11 +0000 |
| Subject: | Re: Secure system calls -- how | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-208547@lists.php.net to get a copy of this message | ||
Hi,
Jason Wong wrote:
> To put it simply you would have to check *extremely* carefully the user
> input to ensure that it is not malicious, and that it is what it should
> be. I believe your original problem was about writing procmail files.
No, not exactly.
Thank you just the same, you bring up another good point. In the extreme
case, when I want to be really sure of the file, I have to parse it, just
as I parse all other data from the user. Yikes, that's a lot of work! I'm
counting on not doing that, but making sure I escape_cmd or whatever it's
called -- isn't that almost as good?
- Niels