Field notes · Exploited in the wild

One plugin flaw, four days, two attackers.

A remote code execution flaw in WP Rocket (CVE-2026-125812) was published on 23 November 2026. On 27 November, two different actors used it on two websites of a hosting account we were already investigating. This is what they did, from the server logs and the files they left behind.

AnonymisedReal case, November 2026Indicators included

Timeline

Four days from publication to two compromises.

Both websites ran WP Rocket 3.23.5.1. The fixed version, 3.24.2, was offered in the WordPress dashboard the whole time. All times UTC.

  1. Mon 23 Nov. The flaw is published. It lets anyone on the internet run code on the server, with no login.
  2. Tue 24 Nov. First scanners on the hosting, looking for web shells left by other attackers.
  3. Fri 27 Nov, 08:51. Site B is compromised by a hands-on actor.
  4. Fri 27 Nov, 18:33. Site A is compromised by an automated actor.
  5. Fri 27 Nov, 21:57. We find and remove the web shell on site A and update the plugin, with the owner’s agreement.
  6. Sat 28 Nov. The whole hosting is checked. The implants on site B are removed and the plugin is taken off every site.

Site A · Actor 1

An automated attack, stopped by one setting.

Six probe requests with a random wpr value in the query string, one POST to admin-ajax.php, and four seconds later a ten-line PHP file in wp-content. Its own comment calls it a “callback payload” that proves the server can run commands before the “canonical shell” is uploaded.

PHP code of the dropper: for each of the parameters c, cmd, 0 and exec, run the value with shell_exec and print the result.
The file written through the flaw. 403 bytes, named to look like a WordPress media file.
Access log: probe requests, a POST to admin-ajax.php, then test commands to the new file, and a PHP fatal error because shell_exec is undefined.
The test command was a sum, echo $((2717+1743)). The hosting had shell_exec disabled, so each call ended in a fatal error. The actor never came back.

Site B · Actor 2

A person, ready for exactly that setting.

Same hosting, same PHP settings, same plugin version. This actor’s shell calls itself a “post-exploit shell” that “works when exec() is blocked”: if every command function is disabled, it falls back to plain PHP to list folders, read files and write files, and it accepts PHP code to run directly.

Access log of site B: two POSTs to admin-ajax.php, the shell answering LSPWN, renaming itself, then two PHP payloads sent through the shell.
Two tries to plant the shell, a check that it answers, then a rename to a random name. Every later action went through GET requests, so the logs show all of it.
Excerpt of the post-exploit shell: tries six command functions, falls back to PHP for id, ls, cat and write, accepts eval through the php parameter and can rename itself.
Excerpt, 2,948 bytes in full. Comments and messages in Indonesian.
  1. 08:51 · In

    One request to the flaw, the shell is written to wp-content. Two minutes later it answers.

  2. 08:53 · Hide

    The shell renames itself to a random name ending in -shell.php.

  3. 11:03 · Lock the door

    A must-use plugin is written that switches off the vulnerable WP Rocket feature. More on this below.

  4. 13:05 · Move in

    A 587 KB file manager is downloaded from a temporary tunnel into the web root, plus a hidden copy.

The detail that matters

The attacker patched the flaw behind them.

The file is called “Cache Guard”. It turns off the font cache and the beacon handler of WP Rocket, the path the flaw goes through, so no other attacker can use it on this site. Must-use plugins load on every request and do not appear in the normal plugin list.

The Cache Guard must-use plugin: Indonesian comments with English translation; it disables WP Rocket font preloading and removes the rocket_beacon handler.
English translation added by us. The original comments are in Indonesian.

A site that suddenly looks “patched” is not always a safe site. Sometimes it is a site that already has an owner.

Stage two

A file manager built for shared hosting.

The second payload fetched “GECKO FM PRO” from a Cloudflare quick tunnel and wrote it twice: once in the web root, once as a hidden file. It is protected by a password and a lock-out after five failures.

Decoded payload: download bootstrap.inc.php from a trycloudflare address with a cURL fallback, write it to the web root and as a hidden copy.
The payload, decoded from the base64 the attacker sent. Address defanged.
  1. Persistence. A cron template and a runner script in a hidden folder under /tmp.
  2. Reach beyond the site. Symlink reading of other users’ files and mass copy across virtual hosts.
  3. Clean-up of protections. Removal of .htaccess files.
  4. What we saw used. Only the login page was loaded, five times. No login to it appears in the logs, and we found no cron job, no process and no file in /tmp.

Background noise

Others came looking for shells they did not plant.

From 24 November, scanners asked the same sites for well-known web shell names with ?c=id. They did not attack. They checked whether someone else already had. Requests like this on the hosting went from 6 a day to 92 on 25 November and 132 on 27 November.

Access log: three scanners requesting thumb-cache.php, wp-plain.php, doni.inc.php and similar names with ?c=id, all 404.
All of these returned 404 on these sites.

If you run WP Rocket

Six checks, in this order.

  1. Update every copy

    Version 3.24.2 or later, on the live site and on every old, test or language copy on the same hosting. Here, two copies still ran vulnerable versions after the main site was fixed.

  2. Look for PHP where it does not belong

    Any .php file directly in wp-content/, anything in wp-content/mu-plugins/ you did not install, and new or hidden files in the web root.

  3. Read the logs since 23 November

    Query strings with lang=wpr or lp-variation-id=wpr, a POST to admin-ajax.php followed by a request to a new PHP file, and any ?c=, ?php= or ?r= on a file you do not know.

  4. Clear the cache after cleaning

    On site B the shell was written again when WP Rocket preloaded a page, at the same second. Deleting the file is not enough while the cache still holds the poisoned entry.

  5. Do not restore blindly

    The hosting backup of 27 November already contained a shell. Check any backup taken after 23 November before using it.

  6. Then change the secrets

    Database password, WordPress keys and salts, administrator passwords. Only after the backdoors are gone, or they can be read again.

For defenders

Indicators of compromise.

Addresses defanged. The national cyber security centre received the indicators from this case.

CVE-2026-125812   WP Rocket   fixed in 3.24.2   public 23 Nov 2026

Actor 1 (automated)        5.188.206.226
  wp-content/wp-media-497d4b51.php
    sha256 2e23e095b024265ab581d819782dd5d12df1d209d853514cb25cb407364a2d9e
  probe parameters         ?lang=wpr<hex>   ?lp-variation-id=wpr<hex>
  marker in .json file     smchairs[.]com/pixel.png

Actor 2 (hands-on)         103.235.74.72
  wp-content/ls-poc.php, renamed <random>-shell.php
    sha256 3f5c0797750443192b755fce3c35a602b7463d5eaefee66f3394704c632fc1f4
  bootstrap.inc.php and .bootstrap.inc.php (GECKO FM PRO)
    sha256 5a4d53b49e72b59306a46db9cfd369fab46716e40448c304109e0dc8a2a330f2
  wp-content/mu-plugins/zz-cache-guard.php
    sha256 c79172dc4332465145646c3b981fff432b022e4d4810c7ce82bf8f6718385b8b
  stage URL                hxxps://span-portrait-falls-sixth.trycloudflare[.]com/bootstrap.inc.php
  cron template            hxxps://paste.myconan[.]net/673684.txt

Shell hunters (?c=id on known shell names, no exploit seen)
  185.187.169.124   159.203.34.80   2a02:c207:2300:6203::1

This flaw was one part of a larger incident. Read the full case, step by step, or see our incident response service.