Cont: Resolving SPAM abuse of our IP

ioDaniel

Verified User
Joined
Jun 4, 2009
Messages
17
Location
Chiang Mai
Hi

Background (Sorry if this is too detailed).
I asked for help a couple of weeks ago after our Server IP was hacked and abused by a SPAMMER and we got blacklisted by Abuseat as well as Yahoo.

We manage the server with the following: DirectAdmin 1.33.1 - Apache 2.2.6, Centos, Exim 4.67, MySQL 5.0.37, ProFTPd 1.3.1 ...) I have been fixing the problem (thanks Jeff), as well as looking at how to prevent the problem in future.

Much as I would like to install a Firewall, the combination of DirectAdmin version, Centos and Apache, mean this is not an option at the moment.

The next issue is to resolve the FTP problem that Jeff outlined in his detailed reply. I have gone through all the sites we host and changed:
* Control Panel and FTP passwords.
* Re-checked all local PC's for Trojans, Virus's etc (something we do rigorously anyway).
*Checked logs (I know the IP and URL where the spammer is coming through, but this is probably just another jump of many to get to us.
*Cleaned all infected sites (both the Iframe as well as SQL injection) - more than once while we did the next step.
*Re-written a new Authentication sequence to reinforce web forms, login pages and so on...

I then started to look at FTP and found that the FTP module included with DirectAdmin is itself a problem. I quote:
02/20/09
CVE 2009-0542
A vulnerability exists in ProFTPD that could be exploited by remote attackers to conduct SQL injection attacks on the server. This flaw is due to improper validation of a user-supplied username string before being used in an SQL query. A remote unauthenticated attacker can trigger this vulnerability by sending a malicious username to the target ProFTPD server and gain the privileges of a legitimate user.

and an older aler:
10/03/08
CVE 2008-4242
The ProFTPD 1.3.1 and prior is prone to a security vulnerability, which can be exploited by malicious people to conduct cross-site request forgery attacks. The vulnerability is caused due to the application truncating an overly long FTP command, and improperly interpreting the remainder string as a new FTP command.

We are using ProFTPD 1.3.1 and I can see there is an update available:
1.3.2 released
[5/Feb/2009]
The ProFTPD Project team is happy to release 1.3.2 to the community. This is a bugfix release, including a SQL injection vulnerability fix. The RELEASE_NOTES and NEWS files contain the full details.

The Question

Since most of the problem we had and have, is to do with managing server access, my question is, has anyone upgraded ProFTP in DirectAdmin (I am a new user of DirectAdmin (and learning fast). Not a pro..my background is really about operations and admin, not managing a web server, programming etc....)?

Can any one please please advise me the steps to take for upgrading and if possible, the commands...I do have root access...

My genuine thanks in advance

Daniel
IO Wow
 
Both ProFTPD vulnerabilities are fixed in ProFTPD 1.3.2 which is available through CustomBuild.
Code:
cd /usr/local/directadmin/custombuild
./build update
./build proftpd

You should also upgrade Apache and Exim. Detailed instructions can be found on the DA official help site or in this forum.
 
ProFTPD vulnerabilities

Hi Tillo

Thanks for your reply. I did see it but just haven't had time to get back to you.

I will try to rebuild Pro-FTP today, and also upgrade Apache and Exim. Thanks for the advice and your time

I am also looking at blacklisting IP's that are using our server to send SPAM..I can see their IP's in the logs trying to hack into FTP accounts.

Anyway thanks again

Daniel
ioWow
 
The easiest way is to use a firewall solution like CSF. There is a tutorial for that too on this forum.
 
The easiest way is to use a firewall solution like CSF. There is a tutorial for that too on this forum.

I wish it was that easy. It was my first choice but have been strongly advised that the specific server config we have is not compatible.

Compiled on Redhat CentOS 5.0
Server Version 1.33.1
Apache 2.2.6

So I am now heading down the track of upgrading ProFTP, and if thats successful, then Apache and also Exim.

If anyone has already upgraded ProFTP and has any suggestions, now would be a great time to say something. I am still preparing what I need to know before starting

Thanks Tillo. I really do appreciatr your advice and time

Daniel
ioWow
 
Back
Top