Stuart Neal
Director of Operations at Nextgen Marketing
We have worked with Vitalli and his team for well over a year now and will continue to do so in the future.
Having the confidence in an agency that allowed us to scale up and down development resources, as and when needed, has really made a positive difference to our agency.
Home / Blog / News / WP Rocket has an unauthenticated RCE being exploited right now — update to 3.24.2
Patchstack published a writeup on 27 November on a critical flaw in WP Rocket, and the detail that moves it to the top of the pile is that attacks started before the post did. Their telemetry logs the first exploitation attempt at 15:27 UTC on 25 November, and tens of thousands of blocked attempts the following day. WP Rocket sits on over five million sites, most of them put there by an agency during a performance pass that nobody has revisited since — which is exactly the gap a standing update routine across the plugins you installed for clients years ago is supposed to close.
WP Rocket runs a small measurement script in the visitor’s browser that reports page data back to a public AJAX endpoint. The plugin then uses the reported URLs to optimise the page, and does not validate them strictly enough. A crafted report makes the site fetch content from a server the attacker controls and save it as a PHP file, which then executes on your server.
Every attempt Patchstack has seen goes to the same place:
Attackers hit both feature paths, sometimes in a single request, so whichever of the two options a site has enabled, one of them lands.
Patchstack describes a first operator working by hand — a handful of sites, then re-encoded payloads once the first attempt was blocked — turning into automated campaigns within a day. Several independent operators are now active. Payloads are hosted on bare IPs, `nip.io` wildcard DNS names, throwaway `trycloudflare.com` tunnels, and other WordPress sites that are themselves probably compromised. One cluster sent byte-identical requests from four residential IPs, which is a rotating proxy pool rather than four attackers. Since 25 November the ten busiest addresses account for roughly half of all blocked attempts, led by hosts in Indonesia, DigitalOcean ranges and Italian and Singaporean providers.
Some requests only check whether a site is vulnerable, without exposing the attacker’s own infrastructure. So an un-exploited site may still have been fingerprinted.
This is the part worth reading twice. The update stops new attacks. It does not remove anything already planted. On any site that ran a vulnerable version without a mitigation in front of it, Patchstack’s detection guidance is:
Historical logs matter here, because the window opened on 25 November and the patch is dated after that.
Turning off both LazyLoad for CSS background images and Host Fonts Locally closes the hole without touching the plugin, at the cost of two optimisations. Patchstack’s own RapidMitigate rule for this CVE was live more than two days before the first attack arrived, for sites running their protection.
Two things, and the first one is an inventory question rather than a security question. Which of your client sites run WP Rocket, and which of those have either of the two features enabled? That list is the whole job — the update itself takes a minute per site. The second is remembering that performance plugins are not in most people’s mental model of attack surface. A caching plugin that was installed once to fix a PageSpeed score and never thought about again is still running privileged code on the server, and this week it is the way in.
If your site is on one of our maintenance plans, this one is already handled — we checked the plugin inventory against the advisory, moved affected sites to 3.24.2, and looked for the file patterns above on anything that ran a vulnerable version during the exposure window. It will be written up in your next monthly maintenance report, and there is nothing for you to do. If you are not on a plan, this is a good illustration of what the plan is actually for: the fix was available, the exploitation started on a Tuesday afternoon, and the only thing standing between those two facts is somebody whose job it is to notice.
Source: Patchstack