What's HTML?
Gender:
Posts: 402
2430 credits Members referred : 2
« on: Jun 07, 2007, 01:22:04 PM »
I have implemented a check for email header injection in my contact forms I create for clients but I am not 100% sure I am actually doing it right,
I check to see if there is a "cc:" and "bcc:" string injected in any of my form fields and if there is I don't send the email (and I actually put a deny rule in the htaccess so they can't try anything else)
I was reading http://www.securephpwiki.com/index.php/Email_Injection and realized that subject: can also be injected but since I am checking for cc and bcc I think I am safe ? since a spammer will specify one of the two (most probably bcc)
Is there any other way that the could use my email to send spam ?
What's HTML?
Gender:
Posts: 402
2430 credits Members referred : 2
« Reply #3 on: Jun 08, 2007, 06:13:20 PM »
I am not sure exactly what you are saying Olaf,
I am checking all form fields, if I see a bcc or cc in them it means someone is trying to attack my mail form then I don't send email, and I also put a "deny ip" in my htaccess so the attacker does not try anything else