Hello all, my 1st post here.
I have found my Linux box hacked. The hacker inserts hundreds/
thousands of outgoing mails into my mailq.
1) I clean the mailq
2) mailq reports empty.
3) tail -f /var/log/apache/error.log
[I wait...]
4) Suddenlty in the logs I have:
[Sun Jun 1 11:43:09 2008] [error] [client 64.151.82.172] File does
not exist: /var/www/custom_www/dsitelecom.com/www/http://
www.geocities.com/sam_osagie01/fire4fire.html
[Sun Jun 1 11:44:14 2008] [error] [client 64.151.82.172] File does
not exist: /var/www/custom_www/dsitelecom.com/www/http://
www.geocities.com/sam_osagie01/fire4fire.html
5) mailq reports hundreds of mails.
I have accessed
http://www.geocities.com/sam_osagie01/fire4fire.html
and it seems a form with fields to do spam (content, from, destination
list, etc)
I have looked at /var/www/custom_www/dsitelecom.com/www/ and the index
are mine and there is no .htaccess which makes any kind of rewrites
nor anything like this.
I need to understand this in order to stop they coming in. My current
method is to ban the attacking IP via iptables but of course when they
use a different IP I'm violated again.
Does anybody know how the devil is this working? How do they put
outgoing-spam in my mailq?
Thanks!
Xavi.