Need help protecting my blog

As some of you noticed, this blog keeps on getting hacked. I need help.

  • I have the latest version of wordpress. I have changed the password and I did my best to find any backdoor.
  • I do not think anyone can modify the PHP files because they are not writeable on the server.
  • In the latest hacks, they update the content of my post with hidden spam. That is, the spam appears directly my relational database. It appears that, indeed, the PHP files are not modified. It also appears that they are only able to update the latests posts. Indeed, only 3 posts had spam in them. Surely, if they could have done more, my entire database would be filled with spam right now.

So, what should I be looking for?

I think there must be at least one backdoor left. I have checked that when I write a new post, the spam is not automatically inserted. So, the post must be updated a bit later.

This is very scary and annoying.

Update: My current best guess is that only few blog posts were modified because I changed my password and removed the default admin user just in time. If so, I am very lucky because the spammers could have infected all of my content. Indeed, it appears that none of my recent posts have been spammed. Of course, it could be just a matter of time…

Published by

Daniel Lemire

A computer science professor at the University of Quebec (TELUQ).

4 thoughts on “Need help protecting my blog”

  1. It seems you are having SQL injection problems. If you have logs check when they were “updated” and the PHP requests before.

    Good luck!

  2. Luis had the same idea I had: SQL injection. Grepping logs should help narrow down what happened; if you are on the latest WP, this is something a lot of people will want to know / fix.

    Also, is your personal machine safe?

  3. I’m no WordPress expert and only have a very the general comment but you may want to install Nessus and inspect your server from the outside.

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

You may subscribe to this blog by email.