Probe Magento stores for the CVE-2026-48356 PolyShell upload with a benign image differential, then read-only IoC checks for known webshells and loaders.
Finds Adobe Commerce / Magento Open Source stores and scores CVE-2026-48356 (unauthenticated PolyShell file upload through guest-cart REST custom options, APSB26-73, CVSS 9.6, CISA KEV, mass exploitation since March 2026). One benign image upload differential decides patched vs missing fix; a read-only IoC pass hunts the known loader and webshell campaign markers. The probe file is a tiny valid PNG with a random name and zero PHP content — never a polyglot, never a .php name. Upload differential is derived from Sansec's root-cause analysis, not a published PoC: lab-validate on a patched store before shipping. APSB26-73 · Sansec
Target List
A FILE of store URLs, one per line. Comments and blank lines are stripped. The workflow fails closed when the input is missing or empty.
Store Probe — how it works
1. GET /magento_version confirms Magento and captures the release line and edition. The patch build is not externally visible, so a version match is labeled exposed_possibly_vulnerable — never a vulnerable verdict.
2. Benign upload differential: one throwaway guest cart, then one cart item whose custom option carries a tiny valid PNG (image/png, trickest-probe-<random>.png, zero PHP content). Accepted with a saved-file reference = missing_APSB2673 (fix not applied). Rejected with a patch-shaped 4xx = patched. WAF-shaped blocks or ambiguous answers = exposed_possibly_vulnerable.
3. Read-only IoC pass: homepage scan for the campaign loader markers (se_referrer, fpCode, 136c1e07507f4a97, loader domains) plus GET of known webshell filenames under /pub/media/custom_options/quote/ (accesson.php answers with marker 8194460). GET only, never POST, no attacker parameters. Any hit = likely_compromised — route to incident response and credential rotation, not just patching.
Results
findings.jsonl: one row per target — verdict (missing_apsb2673 / patched / exposed_possibly_vulnerable / likely_compromised / inconclusive / error / not_product), version and edition, upload and IoC detail, APSB26-73 reference, incident_response flag. summary.jsonl: verdict counts, affected and compromised target lists, coverage note. Inconclusive and error rows are never clean.
Overview
This workflow checks Magento and Adobe Commerce stores for CVE-2026-48356, the guest-cart file upload Adobe fixed in APSB26-73 and security researchers call PolyShell, a researcher label. The store accepts a base64 file on a cart item whether or not the product has a file option, and the upload lands under the media directory where a polyglot image can become a webshell. Attackers have run this as a mass campaign since March 2026, CISA listed it on KEV, and the remediation window has closed. Give the workflow store URLs and it reads the unauthenticated version endpoint, runs one benign image upload through the guest-cart API, then walks the store read-only for the loader and webshell names the campaign uses. Every host comes back with a verdict you can feed into exposure management.
The upload carries a tiny valid PNG with a random filename and zero executable content, so the probe tests the missing checks without ever placing a script on the target.
Pipeline
GET /magento_version on each store to confirm Magento and capture the release line and edition. A line in the affected range is an exposure label, never a vulnerable verdict.
Create a throwaway guest cart with one unauthenticated POST, then send one cart item whose custom option carries a file_info object holding a tiny valid PNG under a random innocuous filename.
Read the answer: an accepted upload with a saved-file reference means the store is missing the APSB26-73 fix; a rejection with an option or upload error means patched; anything else stays inconclusive.
Run the read-only compromise pass: scan fetched pages for the campaign loader markers and GET known webshell filenames under the media upload path, never POSTing to a suspected shell.
Reconcile one verdict per target, flag compromise evidence as an incident-response row, and write the findings plus summary.
Inputs
Target list. Store base URLs you are authorized to test. The default file ships a sample fleet list; bind your own.
Outputs
findings.jsonl. One row per store: target, Magento line and edition, upload differential result, IoC hits, overall verdict, severity keyed to the verdict, and a note of which basis the verdict used.
summary.jsonl. One line with verdict counts and the sorted target lists per verdict.
Integrations
HTTP. Unauthenticated GET of the version endpoint and public pages, one POST pair against the guest-cart API with a harmless image, and GET-only reads of suspected upload paths.
Sample output
The records below are illustrative and do not come from a real run. They show a store missing the fix, a patched store, and a store where the compromise pass found a known backdoor name.
No. The file is a tiny valid PNG under a random innocuous name with no script content. It tests the three checks the patch added without ever placing a file that could execute. A small image may persist under the store's media upload path; treat that as a known, disclosed side effect of the probe.
Can this workflow be validated before we trust its verdicts?
Validate the differential on a lab instance before shipping: the patched-response shape (which 4xx text counts as a rejection) is derived from the root-cause analysis, and the exact patched wording can vary by version. Until that lab check passes, treat upload verdicts as indicative rather than final.
What do the verdict names mean?
missing_apsb2673 means the upload differential proved the store accepts a file it should reject. exposed_possibly_vulnerable is the version-only label for stores where the upload could not be attempted. likely_compromised means the read-only pass found a loader marker or a serving webshell name, and that row belongs with incident response, not just patching.
Which versions are affected?
The Jul-2026 APSB26-73 builds are the fix: Commerce 2.4.4 through 2.4.9 -2026-jul, B2B 1.3.3 through 1.5.3 -2026-jul, and Events 1.21.0. The public version endpoint shows the release line and edition but not the patch build, which is why version-only results stay an exposure label.
What is CVE-2026-48356?
Unrestricted file upload in the Magento REST guest-cart custom options path. CISA listed it on KEV in October 2026 after months of mass exploitation.
Related workflows
PHP CGI RCE (CVE-2024-4577). Reach for it when the next mass-exploited upload bug is a Windows PHP CGI host, not a store.