CVE-2026-131914 — Idunno.AntiCsrf Unauthenticated ObjectStateFormatter Deserialization RCE (ASP.NET)
Published: 2026-11-25 • Researcher: littlebird (Hakchandara/CVE-2026-131914 repo); disclosure credited to Mandiant (MNDT-2026-0048) per the repo README; upstream .NET Framework PoC by dinosn
Exploitation signals
Confirmed exploited in the wild. Added to CISA KEV 2026-11-24. Federal remediation deadline 2026-11-27.
EPSS 4.2% · 92th percentile
- Severity
- Critical
- CVE
- CVE-2026-131914
- Category
- web
- Affected product
- Idunno.AntiCsrf (ASP.NET IHttpModule double-submit CSRF library) as deployed in ASP.NET WebForms applications
- Affected versions
- Idunno.AntiCsrf through 0.9.1 Beta (NVD product idunno.anticsrf, no version range published, no fixed release)
- Disclosed
- 2026-11-25
- Patch status
- Unverified
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-131914
- https://www.cve.org/CVERecord?id=CVE-2026-131914
- https://github.com/mandiant/Vulnerability-Disclosures/blob/master/2026/MNDT-2026-0048.md
- https://github.com/Hakchandara/CVE-2026-131914
- https://github.com/dinosn/cve-2026-131914-poc
- https://github.com/pwntester/ysoserial.net
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-11-25 |
| Author / Researcher | littlebird (Hakchandara/CVE-2026-131914 repo); disclosure credited to Mandiant (MNDT-2026-0048) per the repo README; upstream .NET Framework PoC by dinosn |
| CVE / Advisory | CVE-2026-131914 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.x per NVD; vector: See references) |
| Status | Weaponized |
| Tags | deserialization, CWE-502, ASP.NET, WebForms, Idunno.AntiCsrf, unauthenticated, RCE, ObjectStateFormatter, ysoserial.net, IIS |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Idunno.AntiCsrf (ASP.NET IHttpModule double-submit CSRF library) as deployed in ASP.NET WebForms applications |
| Versions Affected | Idunno.AntiCsrf through 0.9.1 Beta (NVD product idunno.anticsrf, no version range published, no fixed release) |
| Language / Platform | C# / .NET Framework 4.x on IIS 10 (ASP.NET 4.0.30319, .NET Framework 4.8); Mono 6.12 + XSP4 in the bundled lab |
| Authentication Required | No |
| Network Access Required | Yes |
Summary
Idunno.AntiCsrf is an abandoned ASP.NET CSRF module that round-trips its token through a hidden form field and deserializes the returned value on every POST. The module runs at PreRequestHandlerExecute, before page events, before session or authentication checks, and passes the form field to a parameterless ObjectStateFormatter that has no MAC key and no type binder. The cookie comparison happens only after the deserializer returns, so a request carrying any non-empty CSRF cookie and a crafted token field has already instantiated attacker-chosen serializable types even though it is ultimately rejected. The bundled PoC wraps an ysoserial.net TypeConfuseDelegate graph in that wire format and reaches Process.Start inside the ASP.NET worker process, giving unauthenticated remote code execution as the web worker identity.
Vulnerability Details
Root Cause
Untrusted request data is deserialized with a serializer that provides neither integrity protection nor type restriction (CWE-502). AntiCsrfModule reads the __CSRFTOKEN form field and calls new ObjectStateFormatter().Deserialize(...) with a parameterless instance: no machineKey validation, no MAC, no binder. The token is otherwise a random GUID rendered by the module, so the only check the library performs is a string comparison against __CSRFCOOKIE — and that comparison happens after the object graph has already been materialized. Any [Serializable] type reachable in the worker’s loaded assemblies can therefore be instantiated. The bug is aggravated by lifecycle ordering: the module executes at PreRequestHandlerExecute, while the sample application (Meridian/Core.cs) performs its login check in Page.OnLoad, i.e. after the module has run, so even pages that require a session are reachable pre-auth.
Attack Vector
An unauthenticated HTTP POST to any .aspx page not opted out of the module, with Content-Type: application/x-www-form-urlencoded, a fabricated __CSRFTOKEN value and a non-empty __CSRFCOOKIE cookie. The token is the ObjectStateFormatter wire format: leading FF 01 plus a binary-object formatter id (0x32 on .NET Framework, 0x20 on the Mono lab), a 7-bit-encoded length, then a BinaryFormatter stream. On IIS/.NET the PoC emits the TypeConfuseDelegate SortedSet<string> graph (comparison delegate type-confused so that comparing the second item calls Process.Start(Items[1], Items[0])).
Impact
Remote code execution inside the ASP.NET worker process (w3wp.exe on IIS, mono/XSP under the lab) before authentication is evaluated. The attacker inherits the application pool identity, which typically exposes application configuration, connection strings, machineKey, session stores, and the site content — and from there enables persistence and lateral movement. NVD scores this 9.8; the CVE was added to CISA KEV on 2026-11-24 with an EPSS of 0.04292 in the source data.
Environment / Lab Setup
OS: Linux x86_64 with Docker (lab); Windows Server + IIS 10 / .NET Framework 4.8 for the real target
Target: Meridian CMS lab — mono:6.12 + mono-xsp4 on http://127.0.0.1:9001 (loopback only)
status.aspx has no server-side form; dashboard.aspx is the POST target after discovery
Attacker: Python 3.8+ (standard library only, no ysoserial.net or Windows host needed)
Tools: docker compose, curl; ysoserial.net v1.36 only if you want to regenerate the gadget templateSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Start the vulnerable lab —
docker compose up --build -dbuildsweb/withLabAntiCsrf.csregistered inWeb.config; the container binds loopback only, runs as uid 65534 with a read-only root filesystem, and drops all capabilities. - Discovery — the PoC GETs
login.aspx(or the supplied.aspx) and reads theSet-Cookiename and the hidden token field rendered by the module, so a renamed cookie/field is handled automatically. TheServerheader decides the engine: Mono/XSP selects the lab engine, otherwise the .NET gadget engine. - Payload build —
build()inflates the embedded 7-bit template (ysoserial.net TypeConfuseDelegateSortedSet<string>via LosFormatter) and replaces the placeholder executable and argument strings, reproducing ysoserial.net output byte for byte. On the Mono engine the payload is a hand-builtObjectStateFormatterclass record namingLabAntiCsrf.CommandProof, because Mono binds delegates through the validatingDelegate.CreateDelegate. - Delivery — one POST to
dashboard.aspx(or the supplied.aspx) with__CSRFCOOKIE=<any non-empty value>and__CSRFTOKEN=<base64 payload>. The module deserializes before comparing the cookie, so the sink runs even though the request is answered with400(lab) or302/500(vendor library). - Confirmation — never from the HTTP status: the lab engine reads the side-effect file
/tmp/anticsrf-rce-proof.txt(via the container orproof.aspx), the .NET path uses--oobfor anslookupcallback or--dnsto hex-encode command output into DNS queries.
Exploit Code
See
poc.py— single-file, standard-library exploit with--cmd,--oob,--dns,--payload,--dry-runand--selftest. The intentionally vulnerable module is inLabAntiCsrf.cs, its registration inWeb.config, the app-side auth ordering inCore.cs, and the container build inDockerfile/compose.yaml. Upstream usage notes are inpoc-README.md.
The request shape (condensed from poc.py):
| |
Command-mode usage:
| |
Expected Output
| |
Response semantics from poc-README.md — the status is not proof of execution:
| Response | Meaning |
|---|---|
400 | module rejected the request after the sink ran |
500 | sink threw; execution unconfirmed (exit 3) |
302 | rejected before the sink (vendor customErrors) |
Detection & Indicators of Compromise
- IIS/W3C or XSP access logs: POSTs to
.aspxpages from unauthenticated clients where__CSRFTOKENcarries a large base64 body starting with/wEy(bytesFF 01 32) or/wEg//wEvariants for Mono formatter ids; oversized URL-encoded bodies are typical. - Requests carrying
__CSRFCOOKIEwith an arbitrary or previously unseen value together with a non-GUID__CSRFTOKEN. w3wp.exe(or the Mono process) spawningcmd.exe,powershell.exe,nslookup, or shell children (/bin/sh) — the TypeConfuseDelegate chain resolves toSystem.Diagnostics.Process.Start.- Outbound DNS with labels of the form
<hex chunk>.<COMPUTERNAME>.<nonce>.<attacker domain>used for exfiltration, andnslookupof<hostname>.<attacker domain>for callbacks. - Error pages returning
400/500withObjectStateFormatter,BinaryFormatter,SerializationExceptionorPotentialCsrfExceptionmentions, followed by a new process or file under the web root / temp directory.
Example W3C log line and decode hint:
| |
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | There is no fixed release: Idunno.AntiCsrf is abandoned through 0.9.1 Beta. Remove the library and its httpModules / <modules> registration from Web.config; there is no vendor update to apply. |
| Workaround | If the module must stay briefly, stop deserializing request data — replace the token round-trip with a server-keyed HMAC of a random value that is verified before parsing, or switch to the framework’s AntiForgeryToken / ValidateAntiForgeryToken helpers. |
| Config Hardening | Rotate machineKey and any application secrets after suspected exposure; keep application-pool identities least-privileged; block or alert on oversized __CSRFTOKEN bodies at the WAF/reverse proxy; ensure pages that require auth do not rely on validation performed after PreRequestHandlerExecute; monitor worker child processes (cmd.exe, powershell.exe, nslookup). |
References
Notes
Auto-ingested from https://github.com/Hakchandara/CVE-2026-131914 on 2026-11-25. Review verdict: a real, working exploit PoC, not a detector — poc.py builds the serialized gadget payload itself, extracts the cookie and form-field names from a live page, sends the request, and supports command execution, OOB DNS callbacks and DNS exfiltration; --proof and --selftest are diagnostic modes of the same exploit. Not run against any target during ingestion; only the local payload-builder self-test was used to confirm the template round-trip.
License status: the repository ships no LICENSE file (no explicit grant, all rights reserved by default); files are archived with attribution for authorized security research only. poc.py carries the upstream lab-only notice plus an archive header, and its bytes are otherwise unmodified.
Limitations and quirks: the .NET gadget path needs CLR 4 (.NET Framework 4.x) in full trust and a gadget-compatible target; under Mono the delegate gadget cannot bind, so the bundled lab uses the lab-only CommandProof type — that proves the pre-auth deserialization and process spawn on the harness, not a stock Mono RCE. Formatter ids differ (0x32 .NET vs 0x20 Mono) and the Mono id is runtime-assigned, so the PoC probes it. The HTTP status is not evidence of execution (400 after the sink, 500 when the sink throws); confirm from a side effect. The lab binds loopback only and is safe to run locally.
Files: upstream README.md copied as upstream-README.md; the PoC subdirectory README copied as poc-README.md; entry copies poc.py, LabAntiCsrf.cs, Core.cs, Dockerfile, compose.yaml, Web.config, login.aspx, dashboard.aspx and status.aspx (the remaining CMS pages and web/assets/app.css were not needed for reproduction). Do not run any of this against systems you do not own or have written authorization to test.
| |