In association with heise online

24 April 2013, 16:32

WordPress cache plugins enabled remote PHP execution

  • Twitter
  • Facebook
  • submit to slashdot
  • StumbleUpon
  • submit to reddit

W3 Total Cache logo The popular WordPress caching plugins WP Super Cache and W3 Total Cache, with around six million downloads between them, have both been found to have a vulnerability that allows remote users to use them to execute arbitrary PHP on the server. Cache plugins are designed to relieve the load on WordPress sites by saving the latest versions of pages in memory and serving the saved version to users from memory rather than regenerating them. Versions 1.2 and below of WP Super Cache and version and below of W3 Total Cache are affected by the problem. Users should update to the latest WP Super Cache (1.3.1) and W3 Total Cache ( to ensure they are not vulnerable.

The problems were first reported on WordPress's forums over month ago. Updates were released around a week ago to address the problem. A blog post explained how the vulnerability functioned, using HTML comments in comments. An attacker could comment on a message with PHP code embedded in a comment and once the comment was submitted, the first refresh of the page would expose the page's content to a dynamic snippet parser which would execute the PHP in the page. Disabling dynamic snippets by default can mitigate the problem, but it is simple to just update to the fixed plugins.


Print Version | Send by email | Permalink:

  • July's Community Calendar

The H Open

The H Security

The H Developer

The H Internet Toolkit