For the past month or so, I have wasted a lot of my time on dealing with hackers! That’s right. Firstly they found a way to exploit my tmp folder on the server and placed an IRC bot called emech. Thanks to Coreix - they noticed some unusual traffic and helped to stop it.

Then they managed to exploit one of my user’s site which had a weak password. I noticed that quickly as whatever they tried to do caused the apache to die.

The last part that got me furious is somehow they managed to write to my htaccess files a few lines of code that was telling google to go and index their site instead:

RewriteEngine On

RewriteBase /
RewriteCond %{HTTP_USER_AGENT} (Googlebot|Slurp|msnbot)
RewriteRule ^ http://dfsg.us/ [R=301,L]

Now that’s cheeky. I have no idea how they did it as the file is accessible for writing only by the owner. There is no way they know my password as if they did, they would have probably done more damage. I guess there is a new php/apache vulnerability which is yet to be reported and a patch made available for it.

For now, I disabled ftp access, installed a few programs to block IP addresses of users who attempt anything suspicious, changed all my passwords, installed a php patch for improved security and I am looking forward to wasting more of my time in due course!

Oh, the same issue has been reported by a guy over here - http://44px.net/blog/2009/02/28/napominayu-prosteyshee-pravilo-teper-i-iz-svoego-opyita

He thinks its the ftp details that got hacked – I looked through my ftp logs – nothing there on my end.

Update 05/03/2009Coreix was kind enough to do a audit on the server and suggested a few extra security measures that I gladly accepted to make the server extra secure. Now I can sleep at night :)

And once again I will comment on how good the Coreix support is – professional, knowledgeable, polite and not trying to rip anyone off! They worked to apply all the security measures and disable the services that were not necesary etc for a good part of the day and I got charged a very reasonable ammount of money for that!

, ,
Trackback

3 comments untill now

  1. .htaccess权限777引起的Google谷歌不收录问题…

    到服务器后台查看访问记录时,可以看到凡是Googlebots的访问全部被301转向了,而baiduspider的访问就是正常的200。
    ……

  2. I have the trouble too. But Luckly only four days when I find it. I don’t know how they did that too. I have asked webmaster , he saw that it’s maybe a bug of WordPress.

    Reply

    Vadim Reply:

    I think you are right – only 2 of my websites were affected and both had wordpress on.

    Reply

Add your comment now

  • Polls

    What do you think is the future of PC cooling?

    View Results

    Loading ... Loading ...
  • Recent Comments

    • Aldo Zanoni: Hello, Vadim. Good work in putting together a server-side...
    • UK Gaming Computers: Another interesting blog entry Vadim. You have a VERY...
    • PC Base unit: Hi Valdim, I do share your thoughts regarding watercooling, and...
    • Vadim: Thanks David, thats useful to know about the hot swap, will bear that...
    • David Hamilton: Thanks for your advice, the memory upgrade is a must. I...
  • Categories

  • RSS Bright Side of News

  • Tags