Support Forums

Old 11-14-2006, 09:17 AM   #1
Unregistered
Guest
 
Posts: n/a
Exclamation 68classifieds being used to send SPAM?

Hello,

We're a webhost and one of our clients is using your software.

I am posting in behalf of him since he doesn't speak english. Anyways, we found out that there has been e-mails sent to AOL.com users from 68classifieds or so it seems.

Here it is the info:

Return-path: <[email protected]>
Received: from vendas by server.wecontrol.com with local (Exim 4.52)
id 1GidCs-0005Cm-Pp; Fri, 10 Nov 2006 14:42:34 -0600
To: [email protected]
Subject: Peticion de contacto.
Date: Fri, 10 Nov 2006 14:42:34 -0600
From: "[email protected]" <Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain
X-Mailer: AOL 3.0 for Mac sub 84
Subject: Re: hi
Message-Id: <[email protected]>

If you're looking to lose weight quickly and KEEP it off, look no further..=
diet fads and chemicals can be dangerous, and almost never work as you exp=
ect them to. Hoodia, however, has the weight of scientific studies, trials =
and tests behind it, and simply WORKS, in that it has been proven to cause =
the user to eat far less on a daily basis. Its a simple fact that when you =
eat less, you lose weight, and thats the logic behind Hoodia.. over 95% of =
users eat less, and report immediate weight loss within the first week of u=
sage, and many lose between 5-10 pounds within the first two weeks (some ex=
ceptional cases have lost far more).

<A HREF=3Dhttp://www.adezzedr.com > Receive a completely free bottle, and m=
ore information </A>







d1db5020883da1cce9e41025df0eac22
.>
Message-ID: <[email protected] s>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="iso-8859-1"

Nombre: [email protected]
Email: Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain
X-Mailer: AOL 3.0 for Mac sub 84
Subject: Re: hi
bcc: [email protected]


I don't know what version he is running, I would have found it in the .php files but they are Ioncube encoded.

Have there been any problems like this in the past with 68classifields, in previous versions maybe?

How can I tell which version he is using? (I don't have access to administrator) to the files and to view the source code of the index page generated by the website (already checked HTML headers and no info there).

Thanks
Francisco
www.NavigatorIS.net
  Reply With Quote
Old 11-14-2006, 09:21 AM   #2
Unregistered
Guest
 
Posts: n/a
Default

Wooops!

I think I forgot to rename one of the customer's email address from my original post.

Can an admin please remove the original address @yahoo.com?

Thank you.
  Reply With Quote
Old 11-14-2006, 09:49 AM   #3
Staff
 
Join Date: Mar 2006
Posts: 410
Rep Power: 22
Blair will become famous soon enough
Default

This has been addressed in http://www.68classifieds.com/issues/...md=view&id=131

We will be making the designer files available later today.

Thanks-
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base

Last edited by Blair; 11-14-2006 at 09:57 AM.
Blair is offline   Reply With Quote
Old 11-15-2006, 01:14 AM   #4
Senior Member
 
SkGold's Avatar
 
Join Date: Mar 2006
Location: Best city in the World � Calgary, Canada
Posts: 468
Rep Power: 24
SkGold has a spectacular aura about
Default

Blair, you said there:
Quote:
Open the file contact.php and go to line 65 which should have:
$from = $_POST["sender"];

Below that add:
$from = urldecode($from);
if (eregi("\r",$from) || eregi("\n",$from))
{
die("Why ?? ");
}
I can�t find $from = $_POST["sender"]; in contact.php
__________________
Thanks,
Sergey

Bargain Finder in Calgary, Alberta, Canada.
Calgary Business Directory V3.1.10 Dev - Calgary Classifieds V3.1.10 Dev - Calgary Real Estate V3.1.10 Dev - Calgary Used Cars V3.1.10 Dev - Calgary Rent V3.1.10 Dev - Calgary Dating V3.1.5 Dev

A website without well-done Internet Marketing and Search Engine Optimization is as good as non-existent.

Last edited by SkGold; 11-16-2006 at 02:34 PM.
SkGold is offline   Reply With Quote
Old 11-15-2006, 06:37 PM   #5
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 741
Rep Power: 28
Chaslie will become famous soon enough
Default

Quote:
I can’t find $from = $_POST["sender"]; in contact.php
I can also confirm that.
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 11-16-2006, 09:27 AM   #6
Moderator
 
juven14's Avatar
 
Join Date: Mar 2006
Location: Texas
Posts: 2,217
Rep Power: 61
juven14 is a jewel in the rough
Default

Here is the code I'm using in includes/functions.php:

PHP Code:
//filter email headers and body
function safeMail($value)
{
    
$find = array("/bcc\:/i","/Content\-Type\:/i","/cc\:/i","/to\:/i"'/%0A/i''/%0d/i''/\n/i''/\r/i''/\[lb\]/i''/x015/i''/x012/i');
    
$return preg_replace($find"**spam attempt removed**"$value);
    return 
$return;

Then in contact.php:

PHP Code:
//data has been filled
$id = (int)@$_POST['ownerid'];
$vehicle = (int)@$_POST['listingid'];
$name=safeStripSlashes(trim($_POST['name']));
$from=safeStripSlashes(trim($_POST['email']));
$comments=safeStripSlashes(trim($_POST['message']));

            
$name safeMail($name);
$from safeMail($from);
$comments safeMail($comments); 
Also in contactus.php:

PHP Code:
//data has been filled
$name=safeStripSlashes(trim($_POST['name']));
$email=safeStripSlashes(trim($_POST['email']));
$comments=safeStripSlashes(trim($_POST['message']));
                    
$name safeMail($name);
$email safeMail($email);
$comments safeMail($comments); 
Of course this allows the email to go through but with all the spam stuff replaced. The person who gets the mail will be aware that somebody attempted to spam via the form. I like the idea of just preventing the mail, but I think it might be better to ban them on the spot or generate an email to the admin so they can take action.
__________________
John Snyder
PHP Developer
juven14 is offline   Reply With Quote
Old 11-16-2006, 05:31 PM   #7
Moderator
 
Chaslie's Avatar
 
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Posts: 741
Rep Power: 28
Chaslie will become famous soon enough
Default

Thanks John.
__________________
Chaslie
V4.1 dev


68 Classifieds Important Links
Customer Area | Issue Tracker | User Manuals & Documentation

HTML Help
W3 Schools
Chaslie is offline   Reply With Quote
Old 11-17-2006, 11:16 AM   #8
Senior Member
 
 
Join Date: Oct 2006
Posts: 135
Rep Power: 14
Chad is on a distinguished road
Default

In 3.1.5a does it allow the spam to go through or does it block it? I'd rather not even let the person know someone attempted to spam them from my site.
__________________
Chad
http://www.parrotclassifiedads.com
v3.1.7 Developer
Chad is offline   Reply With Quote
Old 11-17-2006, 11:46 AM   #9
Coder
 
Join Date: Mar 2006
Posts: 4,562
Rep Power: 111
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by Chad View Post
In 3.1.5a does it allow the spam to go through or does it block it? I'd rather not even let the person know someone attempted to spam them from my site.
What happens is that people abuse mail forms by using them to send a message to the intended recipient and by appending other information they can also attempt to have it sent to additional people thereby abusing your mail server to spam other people.

There is no real way for the script to know if the mail is spam or not so unless im mistaken the mail goes through to the intended recipient, the new changes just make sure that the form isnt abused and mail wont be sent to anyone else.
__________________
Larry.
Lhotch is offline   Reply With Quote

Bookmarks

Tags
None

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
New convert to 68classifieds michael v3.1 Suggestions and Feedback 6 01-15-2007 09:45 PM
Modify the contact.php to send more than one message? bgordon v3.1 Modules & Modifications 13 01-05-2007 10:30 AM
E-Mails won't send Winnie v3.0 Questions & Support 17 10-07-2006 05:05 AM
Install restrictions and 68classifieds server problems. pd58m Pre Sales Questions 3 05-05-2006 11:54 AM
Dreamweaver Template in 68classifieds sporthorsebreeder HTML, CSS, and Design Help 3 04-23-2006 10:34 AM


All times are GMT -4. The time now is 03:33 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0