In a follow up to the PHP Injection Script Exploit, there is a new version on the loose: It is the evolution of the script – much nastier than the first. Instead of just injecting code onto PHP and JavaScript files, it goes further by adding new PHP files to your images directories and adding the script to HTML files as well.

There is more information about these two exploits. It is not just limited to php-based blogs and forums – larger sites, such as,, and have been hit with this exploit, along with over 2,300 other websites. The average internet surfer will discover that their machine is infected with this virus when they realize their Google search results in Internet Explorer and Firefox have been hijacked – clicking on the result you want will take you to some other site. The virus will also go one step further and look for any FTP credentials on your machine in order to inject the script onto more websites. Some sites have reported that the script can also modify the permissions of specific directories to give them access to write in the files within.

What does this mean to website owners?

  • Up to an hour (or more, depending on size) of cleaning up and rebuilding each site infected.
  • Visitors receiving warning messages through their browser or security software that your site is dangerous.
  • Possibility of being de-listed by Google to prevent spreading the virus.

So how do you protect yourself, the average internet surfer?

  • Update your Adobe Reader to the latest version, and under the Edit menu > Preferences, uncheck the Enable JavaScript option.
  • Update your Flash Player to the latest version.
  • Update your security software and scan for spyware / viruses.

How do you clean your infected WordPress site?

  • First, protect your machine as listed above. Uploading files onto your website from an infected machine will just lead to more injections of the script later.
  • For the previous exploit, simply cleaning the PHP files and JavaScript’s within your WordPress installation, themes, and plugins was seemingly enough. But the new exploit will go further and add the injected script to JavaScript and HTML files anywhere on your site, down to the simple readme.html files that come with themes, plugins, etc.
  • The newer scripts also add an images.php and/or gifimg.php file with the malicious code to many or all of your images directories, from the main one down to image directories in themes, plugin folders, and so on.
  • If you have to go in and remove the malicious code manually, you will find it in the top of PHP files, near the bottom of JavaScript files, and in the head area of HTML files between script tags. Also in the injected images.php and/or gifimg.php files in image directories. The code can vary from site to site, even page to page.

How do you protect your website from further attacks?

Thanks to Kristi the owner and author of the Kikolani blog for this great follow up article.