• I am using 2.8.2 with slightly modified Fluid Blue theme. Still in development mode, so I haven’t worried about security to much.

    This morning, a mystery “WE DID 0 QUERIES” started showing up at the top of my footer. After reviewing the “View Source”, it appears to be getting added before the footer processes.

    I can’t find anything resembling this phrase in any of my files or database tables (could it be a feed has been injected).

    A web search on “WE DID 0 QUERIES” came up with a couple of other sites with the exact same thing.

    An “Upgrade” folder suddenly appeared in my wp_content tree and it looks like someone may have looked at my .htaccess

    Other than upgrading to 2.8.4…any ideas?

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter tmedler

    (@tmedler)

    To follow up, it definitely has the signature of being hacked:

    https://www.stlucaslcms.org

    Upgrading to 2.8.4, deactivating all plugins and changing to the default theme didn’t change anything.

    There is a “get_num_queries()” call in the footer for all of my themes, but it is not in the right place for where this is showing up.

    I can’t find where this is coming from anywhere!

    Even if it’s a feed, it’s got to be in your code or db…it can’t be appearing magically. Did you check the footer.php file? Also, are there any other, additional, files in your install? How did you search the db…dump it as an sql file and search it?

    Thread Starter tmedler

    (@tmedler)

    I searched a dump and didn’t find anything. I should note that it is very full of garbage for something that hasn’t been up for very long.

    It appears that whatever is there is getting added in the main content block.

    Thread Starter tmedler

    (@tmedler)

    Whatever this is…it is spreading.

    A new google search this morning comes up with about 10 different sites with the “WE DID 0 QUERIES” at the bottom.

    now THIS is interesting.

    youre right, ive found 3 seperate wp blogs, all at 2.8.4, all on different servers, all different themes, and they have the same code when you view the source,

    <div id="footer">WE DID 0 QUERIES<br /></div>

    I would LOVE to take at a look at your files.

    and thats not the same, samboll. THAT thread is about a very specific hack.

    now THIS is interesting

    are you talking about the o queries deal?
    I just searched it – wow

    I contacted the developer for one of the sites I found — he looks like he knows wordpress so im guessing he can find the code.

    tmedler, what is around, code-wise, the get_num_queries you see in your themes? since you mention its in all your themes, thats quite suspect.

    I checked fluid-blue, its there, and in the wrong spot and not wrapped the same,

    <!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
    	<?php wp_footer(); ?>

    that should be at the VERY start of your footer.php or the last thing in your sidebar.php, tmedler

    I compared a copy of your theme to whats displayed on your site.

    Thread Starter tmedler

    (@tmedler)

    I deleted the “get_num_queries” and it is still there. I also have another theme installed that didn’t have that code in the footer and it still shows up.

    Thread Starter tmedler

    (@tmedler)

    It also shows up in clean uploads of the default and classic themes.

    i’ve been getting a magical “viagra” link at the top of my header and it was nowhere in my theme coding. my host actually found it in my wordpress database.

    i deleted the coding but every once ina while it will reappear. havent found out how to get rid of it for good yet.

    Thread Starter tmedler

    (@tmedler)

    Fortunately, I’m not too far along whre I can’t just blow everything up and start over with a fresh 2.8.4 and fresh database.

    One of my clients was hacked. The code shows up in the <?php get_footer(); ?> command. I reloaded WordPress 2.8.4, but that didn’t fix the issue. I changed the <?php get_footer(); ?> to <?php include(TEMPLATEPATH.”/footer.php”);?> to remove the sign of the attack until I can find and remove it. Hope that helps somebody.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Have I Been Hacked? “WE DID 0 QUERIES” suddenly in footer’ is closed to new replies.