Forum Moderators: coopster

Message Too Old, No Replies

Weird Emails through "Contact Us" Forms

         

ryan_b83

1:53 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



Hello, I have been receiving these "werid" emails through some of my contact us forms. I was wondering what they are? why people do them? and how to best prevent them. They look something like this. Thanks!

boundary=49f8b8c96b1dbb2f8232f1171b71d4d2
X-Mailer: The Bat! (v1.60c) Personal
Subject: pale stripe underneath it, so it can be tucked under
cc: <stripped a series of aol email addresses>

--49f8b8c96b1dbb2f8232f1171b71d4d2
Content-Transfer-Encoding: 7bit
Content-Type: text/plain

prior to consumption. wet cured ham has been cured with a brine, either by immersion or injection. he division between wet and dry cure is not always hard and fast as some ham curing methods begin wet but are followed by dry aging

--49f8b8c96b1dbb2f8232f1171b71d4d2--
.

Email: is5625@example.com
Phone: is5625@example.com

is5625@example.com

[edited by: coopster at 6:36 pm (utc) on Nov. 7, 2006]
[edit reason] removed email specifics [/edit]

pmkpmk

2:18 pm on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Congratulations. Someone just tries to send spam through your form. Hope you have it secured.

Bingo

2:21 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



Hi Ryan,

It could be that you're attracting abuse by using unsecure scripts for email forms. In which case, I'd be worried as I've seen this behaviour before, right before the script was used for a mass spam email.

Nick

ryan_b83

2:40 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



What exactly do you mean by "unsecure"? The emails only go to 1 address?

Philosopher

2:59 pm on Nov 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Most likely the emails are going to more than one address.

Even if you have the To: address hardcoded into your form, a spammer can change the way your form operates by inserting some special characters such as a newline character followed by code to create a CC field and send their message to thousands of other recipients.

If you look at the message you posted, that looks like exactly what they have done. I doubt your form is normally setup to use the CC: field, but in the message you posted, it shows the CC field with a number of addresses in it.

Here's a post dealing with the issue.

[webmasterworld.com...]

barns101

6:07 pm on Nov 7, 2006 (gmt 0)

10+ Year Member



Join the club ryan_b83 ;)

Amongst other filters, I use the following code to block contact form submissions whose email address uses my domain name ('cos obviously I wont be emailing myself!).


if (eregi("@my-domain.com",$_POST["name"].$_POST["email"])) // Add more fields as required
{
echo 'That type of message is not allowed.';
}

ryan_b83

9:41 pm on Nov 9, 2006 (gmt 0)

10+ Year Member



I see, ok great information to know. One addition to this questions.

Do you have to validate the message data also or just data that will be placed in the header? Can someone crack your script via data within the message?

barns101

5:52 pm on Nov 11, 2006 (gmt 0)

10+ Year Member



It's probably harder to use the message field to cause trouble, but you should still validate all user input.