Code injection problem
-
Hello experts,
I have been having a problem with a hacked instance of WP 3.3.1, and for the past 3 days, and with all the help from existing forum articles regarding the topic, I couldn’t seem to find anything that helped my situation. So I hope that someone will be able to help me here, as I’m out of ideas.
I am running WP 3.3.1, and a few days ago, all my links started redirecting to a russian site. I noticed that my .htaccess was getting replaced on a frequent basis with one which included redirects, and had redirects especially when coming from referring sites, i.e: google, facebook, and a bunch of other sites.
The hack also seems to chmod .htaccess to 444 when it changes it. Also, it seems that the code injection is targeting any .htaccess file within my home directory, (even outside the wordpress blog), though I know that the injection is coming from the blog itself, as I just moved it to a new host with nothing else in it, and I got the same infection just as soon as I moved my blog over.So far I have replaced the core WordPress files with a clean copy, but the problem is still happening, so I’m suspecting that the problem is either in the plugins directory, themes, or in the database itself. I’m reluctant to mess with those without a specific plan, as I have a lot of data in the tables, and modifications in the theme which I don’t want to lose.
The things that are worth noting in my instance, is that I have Google Friend Connect enabled for my commenting system, so, unfortunately,the users are obscure, and I’m reluctant to go and just delete all of them, just to test whether the problem is caused by a vulnerable account.
I have already changed the authentication keys in wp-config.php.
Another thing I noticed is that if I enable the .htaccess file which enables permalinks, then, links within the site go to the correct location, but if I remove the .htaccess file which has the permalinks, suddenly, my links get redirected to some russian site.
So I know the code injection is still there and active. Unfortunately, I don’t have enough experience in PHP, or wordpress codex to know where exactly to look. I have tried looking in the link-templates.php, and some other files which I thought could be good candidates, but couldn’t see anything obvious.Would anyone be willing to give me some pointers regarding this issue? I’m willing to provide any information needed, I just wasn’t sure what exactly you would need to help with this.
The website in question is: https://peggyunderpressure.comYour help is much appreciated!
- The topic ‘Code injection problem’ is closed to new replies.