Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Strange replies from contact form
Old 03-02-2009, 06:57 PM Strange replies from contact form
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
I set up a contact form on a client's website that collects info for a newsletter. The form data does not go into a database, it is just emailed to the client and they manually record the data in their own files(by request).

The contact form does auto-send a confirmation email to the new user.

They have received 5 emails from this form in the last couple days with fields filled in "ZOVYzQEhigusRhMytvp" or other random text etc. All information is run through RegExp for email address, phone numbers, etc. So they are taking the time to make sure that input is in the right "format".

Is this how a typical email injection attack looks?

What is your best method for guard against these attacks?

Should I just take off the auto respond confirm email part for safety?
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
 
Register now for full access!
Old 03-02-2009, 07:35 PM Re: Strange replies from contact form
Defies a Status

Posts: 1,606
Trades: 0
More than likely in is some wienie posting with some super-duper spam machine that he bought with "master resale rights".

I just delete them if I get them. Usually I get a notice that a contact form was submitted and I never see the actual form (different script).

Not sure what
Quote:
Should I just take off the auto respond confirm email part for safety?
this means. If you are auto replying that their message was received, turn it off. If you mean the confirmation that it was sent with no identifying information, it does not matter.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 08:15 PM Re: Strange replies from contact form
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
That's kind of what I thought.

Yes, I typed that like an idiot now looking back at it "auto respond confirm email". Ha!

I meant that I had a typical "Thank you for signing up....blah, blah" email that was sent to the user after they submitted the form.

Is the only way you know if they are ever successful(in sending mass amounts of email) when you get cut off or a notice from your host? Or will the contact form come back to you with some "mime" or injection type data?

And, thank you very much - btw!
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 03-03-2009, 09:00 AM Re: Strange replies from contact form
Defies a Status

Posts: 1,606
Trades: 0
If the input data is properly sanitized the only person they can send to is the address in the config file or the script (the webmaster).

I have never experienced a problem. I have heard that poorly written scripts can be exploited though I can't tell you how.



As I said in my initial post, the script I use sends me a notice each time the form is used. The meassage is sent seperately from that. If I got a slew of notices and no mail, I would investigate. I doubt I get more than one notice with no meassage a week from multiple sites.

If they are trying some exploit, it must not be working to their satisfaction.
__________________
Colbyt

Please login or register to view this content. Registration is FREE
colbyt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Strange replies from contact form
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28462 seconds with 12 queries