• The symptoms of this hack is an SEO hack that replaces the content of your website with, say, black market pharmaceutical sites for search robots, but shows the normal site for any modern browser that interprets Javascript.

    To find out if you’re infected with this particular creeper, see if you can find the following block in wp-includes/default-constants.php as outlined here:

    https://plus.google.com/u/0/118153148768252972560/posts/9kT6HQcvunW

    Other symptoms of this hack are outlined here:

    https://plus.google.com/u/0/118153148768252972560/posts/XuQuUWG4QMM

    It’s insidiuous enough that I’m convinced I’m not getting all of it. I’m getting hit with this repeatedly after changing all passwords, ripping out ssh keys, blocking FTP, etc. And of course replacing the file each time.

    I think though since I reported it, they’re moving the location of the hack. Fresh installs of wordpress do nothing.

    Have you seen this? I don’t know what else to do.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi ArachneJericho, I don’t believe I have seen this specific hack before, but I’ve seen many SEO type hacks before.

    It’s insidiuous enough that I’m convinced I’m not getting all of it. I’m getting hit with this repeatedly after changing all passwords, ripping out ssh keys, blocking FTP, etc. And of course replacing the file each time.

    Have you been able to determine how this is being done? For example, if you scan your FTP logs (you may need to contact your web host for help), do you see anyone uploading files?

    If the problem is severe, you may want to do some testing and rule out if it is an insecure plugin or theme causing the problem.

    For example, after you clean the hack and ensure it is no longer there, try disabling your plugins. If the hack doesn’t come back, than it may be a plugin that is causing the issue. You could also do the same thing, but with your theme, and change it to something else to see if it helps.

    Thread Starter arachnejericho

    (@arachnejericho)

    Thank you, Brad.

    An update: I think the problem is that DreamHost keeps getting hacked.

    https://plus.google.com/u/0/118153148768252972560/posts/JoJYPZ3aiP6

    If those were DreamHost admins, they aren’t (a) root and their IPs are not (b) in DreamHost’s block.

    I’d say there’s a hack in progress. DreamHost may or may not respond by phone (which I’m now paying for, as this is severe enough to warrant it).

    Thread Starter arachnejericho

    (@arachnejericho)

    No hack in progress. Just been backdoored and code injected all over the place and oy. Nothing is good and everything hurts.

    Thanks for the looks and the advice.

    Hi ArachneJericho, thanks for following up. It doesn’t sound like disabling all plugins / themes is an option for you right now, but please keep us updated further, as I’m curious to know how it goes. Just on a side note, I work for a rather large hosting company and I may have some insight that may help you (I use to see these types of hacks often), so feel free to let me know if you have any specific questions I may be able to answer.

    Thread Starter arachnejericho

    (@arachnejericho)

    @ MickeyRoush

    Yeah, I know. It’s … disturbing to say the very, very least.

    @ Brad Markle

    There were a bunch of random php files they had managed to drop into the installations of one of my side sites. From there, they hacked the main site.

    Only the http logs caught them. So now I’m scanning those for similarly suspicious entries.

    87.225.253.174 - - [25/Jan/2012:16:23:38 -0800] "POST /wp-includes/js/tinymce/themes/advanced/skins/wp_theme/img/defines.php HTTP/1.1" 404 579 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:41 -0800] "POST /wp-content/plugins/w3-total-cache/lib/W3/Cdn/S3/archive.php HTTP/1.1" 404 569 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:44 -0800] "POST /wp-content/plugins/w3-total-cache/lib/Minify/Minify/Inline/rss.php HTTP/1.1" 404 576 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:46 -0800] "POST /wp-content/plugins/w3-total-cache/inc/options/support/form/de.php HTTP/1.1" 404 575 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:49 -0800] "POST /wp-content/plugins/w3-total-cache/lib/Microsoft/WindowsAzure/RetryPolicy/en.php HTTP/1.1" 404 589 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:51 -0800] "POST /wp-content/plugins/wp-ajax-edit-comments/css/themes/aesthetica-large/images/en_GB.php HTTP/1.1" 404 595 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:54 -0800] "POST /wp-content/plugins/wp-ajax-edit-comments/css/themes/classy-large/images/images.php HTTP/1.1" 404 592 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:56 -0800] "POST /wp-content/w3tc/pgcache/2010/04/03/retyping-the-speckled-band-part-6-action-climax-and-epilogue/rss.php HTTP/1.1" 404 613 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:23:59 -0800] "POST /wp-content/plugins/wp-ajax-edit-comments/css/themes/aesthetica-small/images/json.php HTTP/1.1" 404 594 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:24:01 -0800] "POST /wp-includes/js/tinymce/themes/advanced/skins/highcontrast/rss.php HTTP/1.1" 404 575 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:24:04 -0800] "POST /wp-content/themes/weaver/js/superfish/images/index.php HTTP/1.1" 404 564 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"
    87.225.253.174 - - [25/Jan/2012:16:24:07 -0800] "POST /wp-content/w3tc/pgcache/2010/04/03/json.php HTTP/1.1" 404 553 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)"

    Hi ArachneJericho. That IP address, 87.225.253.174, is coming from Germany. Do you have or expect traffic to normally come from Germany?

    Thread Starter arachnejericho

    (@arachnejericho)

    Brad Markle,

    Nope, it’s not expected, and not that pattern with POSTs.

    Here’s more information I dug up from a recent hack, with plugins I was using (all the latest versions available from WordPress).

    https://plus.google.com/u/0/118153148768252972560/posts/e4FTcmTxuvB

    When I removed all plugins and did a totally fresh WP install after an “rm -rf *”, I didn’t get hacked again.

    Whoa! Be careful with that gun! rm -rf *

    If you think the problem is with either supercache or W3 total cache, now would be the time to reinstall all plugins again except those two.

    Are we also 100% sure that IP address is the one doing the hack? You may want to block that IP (87.225.253.174) and watch what happens over the next few hours.

    There’s many things we can do to troubleshoot, nice to see you’re on top of things!

    Thread Starter arachnejericho

    (@arachnejericho)

    Brad Markle,

    I’m going to install plugins one at a time, slooooowly, and wait to see if hacks reappear over time. Snapshot before installing any plugin.

    The IP address is a Tor address, so it’s pretty much a mask they can take on and off whenever they like.

    I’ve been reading up on fun like last year’s exploit of Tim Thumb.

    This is going to be a slow operation.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Reporting a hacking method; have you seen this?’ is closed to new replies.