WP Pro – Design, Development and Professional WordPress Hosting for Serious Bloggers - Just another WordPress weblog


Site Hacked: Site Name and Post Titles Changed via Database (Possible Fix)


Finding the source of the problem:

WP upgrades overwrite all folders except wp-content, so it is likely the exploit is via this folder. Look for it in the plugins folder, a place you would seldom go once you have the plugin of choice set and running.

  1. Visit your site via FTP, this is the simplest way to make changes to file on your server.
  2. Look for file permission of each of the plugins folder/file name.

    folder permission check

  3. The one that has a read-write-execute permission set for World/Group is most likely the corrupt file.
  4. The way to determine the permission is by looking at the permission section of the file detail (should have something like drwrx-xr-x) or by right clicking the folder and selecting properties. Normally you should set the permission to 755 or lower. See image below:
  5. Open the folder with the incorrect file permission, usually the corrupt file will be set to permission 777.

    check extra file in folder

  6. Look for suspect files within the folder, usually the suspect file will have two dots (.) in the file name and will contain gibberish within when opened. It is safe to open this file to inspect. It will look like the image (click to enlarge).

    extra file in folder

  7. Delete this file.
  8. Reset permission of the folder, to do, simply right click the folder and select properties, then change the permission to 755 or less.

    folder permission change

  9. The changed folder permission should look like this (CHMOD folder to 755):

    folder permission change complete

  10. Look for all such exploits in all plugin folders and repeat the step to remove and change folder permission.
  11. Once done, change both FTP and WP password.

These testes above would get the file that is actually causing the problem to be removed. But the problem also resides in the database. The way to identify the issue is by following Chris’s method as he tweeted last evening as described in a little more detail next.

2 Responses to “Site Hacked: Site Name and Post Titles Changed via Database (Possible Fix)”

  1. I had no idea that people could do this!! Jeez, it’s a jungle out there. I will definitely be using that backup plugin now – thanks!

  2. I agree with this post as backups are certainly important. I’ve come across a situation similar to this that put our business back a whole week due to not properly backing up our servers. Take advantage of any automated tools – they’re worth it..even if you need a quick fix.


Leave a Response

Some Useful Info

Use SimpleCode while including codes.

The links from all comments have the no-follow tag to prevent spammers from gaming their way up into SERP. So please keep the comments clean, try not to use keywords as "Names" or post unnecessary links in the comments. Thank you for cooperating.



Copyright © WP Pro – Design, Development and Professional WordPress Hosting for Serious Bloggers - CSS | XHTML | Login | Return to Top ↑