Found another great post that has all the details:
https://blog.sucuri.net/2011/08/mass-infection-of-wordpress-sites-counter-wordpress-com.html
There is even a php script that you can run to scan your wordpress site for vulnerable files :
https://sucuri.net/tools/sucuri_wp_check.txt
I have listed it below:
<?php
/* Sucuri WordPress check - v1.0 (c) 2011 Sucuri.net
*
* This script will do a quick check on your WordPress installation looking for
* plugins or themes that you should remove.
*/
@set_time_limit(0);
@ini_set("max_execution_time",0);
@set_time_limit(0);
@ignore_user_abort(TRUE);
function remove_dirall($dir)
{
if(!$dh = @opendir($dir))
{
return;
}
while (false !== ($obj = readdir($dh)))
{
if($obj == '.' || $obj == '..')
{
continue;
}
if (!@unlink($dir . '/' . $obj))
{
remove_dirall($dir.'/'.$obj);
}
}
closedir($dh);
@rmdir($dir);
}
function getfile($myfile)
{
$sigs = array('TimThumb script created by Ben Gillbanks',
'Uploadify v', '$allowedSites = array (');
$fh = fopen($myfile, "r");
if(!$fh)
{
return(0);
}
$buffer = fread($fh, 26096);
foreach($sigs as $mysig)
{
if(strpos($buffer, $mysig) !== FALSE)
{
fclose($fh);
return(1);
}
}
fclose($fh);
return(0);
}
function scanallfiles($dir)
{
$issues = 0;
$dh = opendir($dir);
if(!$dh)
{
return(0);
}
if($dir == "./")
{
$dir = ".";
}
while (($myfile = readdir($dh)) !== false)
{
if($myfile == "." || $myfile == "..")
{
continue;
}
else if($myfile == "sucuri_wp_check.php")
{
continue;
}
else if($myfile == "wp-phpmyadmin" || $myfile == "portable-phpmyadmin" || $myfile == "adsense-now-redux"
|| $myfile == "adsense-now" || $myfile == "easy-adsenser")
{
echo "Warning: Found insecure (vulnerable) WordPress plugin: $dir/$myfile\n";
$issues++;
}
if(strpos($myfile, ".php") !== FALSE)
{
if(strpos($dir, "/images/") !== FALSE)
{
echo "Warning: Found PHP file inside image directory $dir/$myfile\n";
$issues++;
}
if(getfile($dir."/".$myfile))
{
echo "Warning: Found suspicious file (timthumb or uploadify): $dir/$myfile\n";
$issues++;
}
}
if(is_dir($dir."/".$myfile))
{
$ret = scanallfiles($dir."/".$myfile);
$issues += $ret;
}
}
closedir($dh);
return($issues);
}
/* Scanning all files. */
$dir = "./";
echo "<html><title>Sucuri WP check</title><h2>Checking your WordPress install...</h2><h3>By <a href=\"https://sucuri.net\">Sucuri.net</a> - Questions?
Contact [email protected]</h3><pre>";
$issues = scanallfiles($dir);
echo "</pre>";
if($issues == 0)
{
echo "<h3>No issues found. Completed.</h3>\n";
}
?>