Reply
Abuse Of A Php Contact Script, someone is the bcc to send out emails
Old 12-06-2006, 06:18 PM Abuse Of A Php Contact Script, someone is the bcc to send out emails
Junior Talker

Posts: 3
Hi -

I have had a message today from my hosting company to tell me that one of the sites on my hosting account is having it's php code abused. Apparently someone is manipulating the php code from the contact form to allow them
to add Bcc addresses.

Any ideas on what I need to do to close this loop hole?

Thanks.
Kalpa is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-06-2006, 08:03 PM
Ultra Talker

Posts: 408
That's a common exploit as many people don't secure their contact forms. Basically what is happening is that the exploiter is adding extra email headers to your message. This is caused because of a lack of security on your part.

Check the user input with regex to make sure that the email and other information has a a valid format and doesn't contain any special markup (such as \r\n).
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 12-07-2006, 12:30 AM
jessecooper's Avatar
Junior Talker

Posts: 31
check access and if file is exe. also there are tons of php checkers online
jessecooper is offline
Reply With Quote
View Public Profile Visit jessecooper's homepage!
 
Old 12-07-2006, 09:53 AM
Ultra Talker

Posts: 408
This is not a problem relating to viruses, trojans or EXEs. The script was just exploited through a web browser by variable injection.
Lucas3677 is offline
Reply With Quote
View Public Profile Visit Lucas3677's homepage!
 
Old 12-07-2006, 12:20 PM
Junior Talker

Posts: 45
Here'a a really good article that explains the problem and suggests some solutions: http://www.securephpwiki.com/index.php/Email_Injection
imported_Ack is offline
Reply With Quote
View Public Profile
 
Old 12-14-2006, 04:57 PM
netdesignz's Avatar
Junior Talker

Posts: 1
That was happening to me ALL the time for a contact form I had on one of my sites. Thanks for the link, Ack.
__________________
Free Webmaster Tools
Free Templates
http://www.netdesignz.org/
Also make sure to check out the forums
netdesignz is offline
Reply With Quote
View Public Profile Visit netdesignz's homepage!
 
Old 12-14-2006, 07:36 PM
Junior Talker

Posts: 22
Yup. Spammers love it, it is like hitting gold for them. They use a few search queries for common things included in contact forms, see if they allow for simple injection of their own addresses, and suddenly your site has become the gateway to millions of spam e-mails.

It is actually a bit more severe than it sounds, you can easily get your mail server blacklisted because of it.
__________________
CSS Box Model | CSS Margin | CSS Padding
Kurt is offline
Reply With Quote
View Public Profile
 
Old 12-16-2006, 03:27 PM
J G R's Avatar
I'm almost certain.

Latest Blog Post:
Email bonus
Posts: 63
Name: k jones
Location: out of town
Hi, I am not too familiar with the form securities but I have heard that your form should do a stripping of characters that aren't allowed. There are even some free scripts that you can get that have this security measure in them.:tooth:
J G R is offline
Reply With Quote
View Public Profile Visit J G R's homepage!
 
Old 12-16-2006, 07:11 PM
Ken Iovino's Avatar
Administrator

Posts: 1
Kalpa, post the code in question and I'll take a look at it for you.
Ken Iovino is offline
Reply With Quote
View Public Profile
 
Old 12-20-2006, 10:44 AM
Junior Talker

Posts: 2
yeh post the cde so we can have a look at it
Alex.
halotree is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Abuse Of A Php Contact Script, someone is the bcc to send out emails
 

Thread Tools

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

vB 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.15957 seconds with 12 queries