Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-18 Thread Curt Zirzow
On Fri, Nov 18, 2005 at 05:06:36PM -0800, Ligaya Turmelle wrote: $message - yes --- This usually can go without any special escaping, unless you have certain headers (the Boundary: header) or allow an injection into the $additional_headers field. If this is the case a malicious

[PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Chris Drozdowski
Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? First of all I am already validating the $to parameter to be a valid email address. After reading

Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Curt Zirzow
On Thu, Nov 17, 2005 at 07:10:06PM -0500, Chris Drozdowski wrote: Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? This is a good topic. I'm in the process of writing an article on

Re: [PHP] Mail Injection- Which Mail function Parameters CORRECTED

2005-11-17 Thread Ligaya Turmelle
$message - yes --- This usually can go without any special escaping, unless you have certain headers (the Boundary: header) or allow an injection into the $additional_headers field. If this is the case a malicious user could attach a virus to be sent anonymously. Shouldn't you