webdesign jr
05-17-2007, 03:10 PM
Hello.
I host my sites on a shared server. Recently, two of them were attacked to send email spam messages. I do not understand the nature of the attack.
Basic facts:
1. Email is send by the PHPMailer class
2. No files were modified at the server - seems intact.
3. THERE ARE NO FORMS OR FIELDS TO FILL - the email addresses are read from database.
4. The database tables are not compromised.
-------------------------------------
The script sending emails:
$rows=$Database->fetch_assoc($myquery);
require_once(tecka."./classes/email.php");
$Email=new Email();
$Email->IsHTML(true);
foreach($rows as $radka) {
$Email->AddAddress($radka["email"]);
$Email->sablona(tecka."./sablony/email_aktivita_ucitele.html");
$Email->subject("Please confirm / Prosíme potvrďte");
$odkaz ="<a href='http://www.xxxxx.eu/user/aktivita.php?id=".$radka["id"]."'>there</a>";
$link ="<a href='http://www.xxxx.eu/user/aktivita.php?id=".$radka["id"]."'>sem</a>";
$keys=array("sem", "there");
$vals=array($link, $odkaz);
$Email->zprava_ze_sablony($keys, $vals);
if($Email->Send())
echo "OK";
$Email->ClearAddresses();
}
-----------------------------------------------------
The Email class is subclassed from PHPmailer class. It includes the (apparently intact) html file named email_aktivita_ucitele.html, uses it to create the message. The email is send by its parent method.
The message is send not only the given address selected form the database, but also to many other addresses not present in database (see below). I feel very perplexed.
--------------------
Hi. This is the qmail-send program at xx.xxxxx.cz.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<will@inthehollow.com>:
64.202.166.12 does not like recipient.
Remote host said: 553 Attack detected from pool 81.0.235.239. <http://unblock.secureserver.net/?ip=81.0.235.*>
Giving up on 64.202.166.12.
<datadisk101@yahoo.com>:
216.39.53.1 failed after I sent the message.
Remote host said: 554 delivery error: dd Sorry your message to datadisk101@yahoo.com cannot be delivered. This account has been disabled or discontinued [#102]. - mta107.mail.re4.yahoo.com
<krabourn@sbcglobant.net>:
Sorry, I couldn't find any host named sbcglobant.net. (#5.1.2)
<jonik.michal@onet.pl>:
213.180.130.206 does not like recipient.
Remote host said: 501 5.1.3 User: jonik.michal@onet.pl not found
Giving up on 213.180.130.206.
<mars337@lycos.com>:
209.202.208.20 does not like recipient.
Remote host said: 550 5.1.1 81.0.235.28: No such user: <mars337@lycos.com>
Giving up on 209.202.208.20.
I host my sites on a shared server. Recently, two of them were attacked to send email spam messages. I do not understand the nature of the attack.
Basic facts:
1. Email is send by the PHPMailer class
2. No files were modified at the server - seems intact.
3. THERE ARE NO FORMS OR FIELDS TO FILL - the email addresses are read from database.
4. The database tables are not compromised.
-------------------------------------
The script sending emails:
$rows=$Database->fetch_assoc($myquery);
require_once(tecka."./classes/email.php");
$Email=new Email();
$Email->IsHTML(true);
foreach($rows as $radka) {
$Email->AddAddress($radka["email"]);
$Email->sablona(tecka."./sablony/email_aktivita_ucitele.html");
$Email->subject("Please confirm / Prosíme potvrďte");
$odkaz ="<a href='http://www.xxxxx.eu/user/aktivita.php?id=".$radka["id"]."'>there</a>";
$link ="<a href='http://www.xxxx.eu/user/aktivita.php?id=".$radka["id"]."'>sem</a>";
$keys=array("sem", "there");
$vals=array($link, $odkaz);
$Email->zprava_ze_sablony($keys, $vals);
if($Email->Send())
echo "OK";
$Email->ClearAddresses();
}
-----------------------------------------------------
The Email class is subclassed from PHPmailer class. It includes the (apparently intact) html file named email_aktivita_ucitele.html, uses it to create the message. The email is send by its parent method.
The message is send not only the given address selected form the database, but also to many other addresses not present in database (see below). I feel very perplexed.
--------------------
Hi. This is the qmail-send program at xx.xxxxx.cz.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<will@inthehollow.com>:
64.202.166.12 does not like recipient.
Remote host said: 553 Attack detected from pool 81.0.235.239. <http://unblock.secureserver.net/?ip=81.0.235.*>
Giving up on 64.202.166.12.
<datadisk101@yahoo.com>:
216.39.53.1 failed after I sent the message.
Remote host said: 554 delivery error: dd Sorry your message to datadisk101@yahoo.com cannot be delivered. This account has been disabled or discontinued [#102]. - mta107.mail.re4.yahoo.com
<krabourn@sbcglobant.net>:
Sorry, I couldn't find any host named sbcglobant.net. (#5.1.2)
<jonik.michal@onet.pl>:
213.180.130.206 does not like recipient.
Remote host said: 501 5.1.3 User: jonik.michal@onet.pl not found
Giving up on 213.180.130.206.
<mars337@lycos.com>:
209.202.208.20 does not like recipient.
Remote host said: 550 5.1.1 81.0.235.28: No such user: <mars337@lycos.com>
Giving up on 209.202.208.20.
