WP Rocket Shipped a Fix. AccelerateWP Shipped the Same Fix, an Off Switch and a Trial Link.

A WordPress caching plugin, its rebranded twin, an embargo, and the most on-brand line ever printed in a security advisory.

TL;DR

  • WP Rocket had a bug that, under the right settings, lets anyone on the internet plant a PHP file on your WordPress site and run it. Fixed upstream in WP Rocket 3.24.2.
  • AccelerateWP, the “site optimization” plugin CloudLinux bundles with its OS, is WP Rocket with a different name tag. Same code, same bug. Its fixed version literally reports itself as 3.24.2-1.1-56.
  • CloudLinux emailed hosts twice. The second email asks us to run a root script that “fixes” vulnerable sites by turning their features off. It also contains a link to a free trial.
  • CFM got rule 10034 on 28 November. It blocks the attack at the edge whatever the plugin calls itself, and it has already blocked real attempts on our network.
  • The rule is a stopgap, not a patch. Update the plugin. Scan your wp-content/. Details below.

Meet the twins

AccelerateWP is what you get when you take WP Rocket, wrap it in an RPM and sell it as a CloudLinux feature. That isn’t a criticism. Forking good software is how open source is supposed to work. The catch is that when you fork something, you also fork its bugs, and from then on you are downstream of somebody else’s fix.

So here’s the actual sequence. WP Rocket fixed it. Then the fork picked up the fix, added its suffix and shipped. As far as I can tell from the package, that is the whole of the engineering work. The version string says it better than I can: WP_ROCKET_VERSION 3.24.2-1.1-56.

The advisory, in two acts

Act one (27 November): “Please check your servers.” It included a search command that looked in one cache folder for one file name.

Act two (1 December): “Four things have changed.” Among them, planted files can be anywhere in wp-content/, not only in the cache folder. It also turns out that updating the plugin cleans that cache folder. A compromised site that updates can therefore pass the first email’s check perfectly while still carrying a backdoor somewhere else. In other words, the first search command was a very good way to feel reassured.

To be fair, the second email is honest about it, and the updated search is a good one. Run it. But “the check we gave you might give you a clean result on a compromised site” is the kind of correction you’d ideally hear on day one, not day four.

The fix that needs a dead PHP

The fixed plugin requires PHP 7.4 or newer. Sites below that stay on the vulnerable version.

Let that sink in. PHP 7.4 went end-of-life in November 2022. The minimum bar for getting a security fix is a PHP version that hasn’t received security fixes itself for four years. Every host has a few customers below that bar, and they are exactly the customers least likely to click “Update now” in wp-admin.

The off switch

For those sites, CloudLinux now ships a script. You run it as root, give it a --pass argument (for a root-only script, which is a nice touch), and it finds every site on an old AccelerateWP and switches off the two settings that expose the hole, on the customer’s behalf.

This is the “unplug the server” school of security. It works, the way a tourniquet works. The advisory does say, quite rightly, that it changes settings your customers chose and that running it is your call. So the vendor of the plugin hands the decision to break its own features to the host, who gets to explain it to the customer. Very efficient, if you are the vendor.

And now, a word from our sponsor

At the bottom of a message about remote code execution on your customers’ websites, right after the paragraph on how Imunify360’s WAF blocks the exploit, comes this:

Not using Imunify360? Get the two-week trial.

I want to be precise here, because this blog doesn’t do unfair: Imunify360 does ship a WAF rule for this. It blocks the exploit requests and its scanner removes the planted files it knows about. If you run it, good, you’re covered at the edge.

But think about the shape of it. Your plugin, which we bundled with your OS, has a hole. The patch for it is someone else’s patch. If you can’t apply it, here’s a script to switch your features off. If you’d rather not, our other product blocks the attack, and you can try it free for two weeks. It’s a security advisory with a sales funnel in it. Somewhere, a marketing team is very proud of its conversion path.

Meanwhile, at the edge

We don’t run Imunify360’s WAF in front of these sites. We run CFM. Attacks against this bug started around 25 November, and on 28 November CFM got rule 10034.

The rule doesn’t care what the plugin calls itself. WP Rocket and AccelerateWP use the same request flow, so one rule covers both, including sites still on old versions of either.

The interesting part: every attempt it has blocked on our network so far was aimed at sites running genuine WP Rocket, not AccelerateWP. They were outdated versions, and the attempts came from the usual datacenter suspects. One site got 18 requests from a single datacenter IP, in a pattern that was clearly targeted, not a scanner passing by. Every one of them was blocked.

What we found

  • Every node already runs the fixed AccelerateWP packages.
  • No planted files or new must-use plugins were found on any of the sites that were targeted.
  • A fleet-wide scan of wp-content/ using the vendor’s updated search is running. Results to follow.

The takeaway isn’t “CFM beat CloudLinux”. It’s smaller than that. If you sell security, the advisory should be the fix, the check that actually works and the mitigation, in that order, on day one. The trial link can go in the newsletter. Back to the logs.