View Full Version : testing for email injection?
Can anyone tell me how to test a tell-a-friend form for email injection (spamming)?
09-27-2005, 04:35 PM
In the following thread a nice filter is shown:
If things aren't clear after reading that thread, you know were to ask further questions :)
I read that thread before. I have a tell a friend form and I want to know what values to put in the fields to see if it is vulnerable. I tried some values like "CC:firstname.lastname@example.org" in some of the input fields to see if i would get a copy of the email to that address(^), but I didnt. So i just want to know if there are any other values I can use to see if my script is vulnerable(which i am sure it is).
09-27-2005, 05:22 PM
Aha, now I understand.
Well, you could hardcode some different variables in the script and see what happens:
$var = 'email@example.com%0ACc:firstname.lastname@example.org%0ABcc:email@example.com,someotherbloke@oooo ps.xxx';
$var = 'firstname.lastname@example.org%0ATo:email@example.com';
For a lot of examples see http://securephp.damonkohler.com/index.php/Email_Injection
There was someone who wrote a script with which to test your forms. I'll try to find that one. The script changed your current forms from singleline to multilines, so you could try to inject multiline text and see what happens.
It's here: http://www.twologs.com/en/services/test/formtest.asp
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.