Reachability lab for CVE-2026-131914: hash-verified Idunno.AntiCsrf DLL, IL sink analysis and dynamic proof that an unkeyed ObjectStateFormatter deserializes attacker-controlled CSRF tokens.
Reachability lab for the legacy ASP.NET anti-CSRF library Idunno.AntiCsrf
(v0.9.1.0, defunct, no patch): the AntiCsrfModule HTTP module deserializes the
attacker-controlled CSRF form field with an unkeyed System.Web.UI.ObjectStateFormatter
GHSA / MNDT-2026-0048,
CVE-2026-131914.
CVSS 4.0 9.3 Critical CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A.
CWE-502. Actively exploited in the wild per Mandiant.
The vendored Idunno.AntiCSRF.dll is the genuine official 2008 release build, not
a reimplementation. run.sh verifies its SHA-256 against the hash table in the
Mandiant advisory before anything else runs:
da1efcfed182597ee946a9ef2895dfdfeab2bdff16855aeef01656d8158ead06 official-2008-release
It is redistributed under its original Microsoft Public License; license.txt is
included as the Ms-PL requires.
Mono 6.14.1, macOS arm64. No Docker, no IIS, no network.
RESULT dll-hash pass official 2008 build, hash matches the advisory
RESULT il-sink pass ctor + Deserialize(formField) in PreRequestHandlerExecute
RESULT dll-load pass Idunno.AntiCSRF, Version=0.9.1.0
RESULT config-defaults pass __CSRFCOOKIE / __CSRFTOKEN / RaiseException
RESULT forge-deserialize pass forged token deserialized, witness CVE131914-WITNESS
RESULT no-origin-check pass server-issued token also deserializes unkeyed
RESULT module-post skip Mono fidelity limit (NullReferenceException in the
simulated HttpContext)
Static, from the shipped binary. The disassembly of the official build shows, inside
PreRequestHandlerExecute, the cookie and form-field reads followed by:
IL_014b: newobj instance void class [System.Web]System.Web.UI.ObjectStateFormatter::'.ctor'()
IL_016e: callvirt instance object class [System.Web]System.Web.UI.ObjectStateFormatter::Deserialize(string)
The gate before it is exactly what the advisory describes: checks that
Request.Cookies[cookieName] and Request.Form[formFieldName] are non-empty. No GUID
validation happens on this path (the advisory confirms GuidTryParse only runs later,
in PagePreRender), so Cookie: __CSRFCOOKIE=1 is enough.
Dynamic, at the sink. The module's call is new ObjectStateFormatter().Deserialize(formFieldValue).
The harness performs precisely that call with attacker-forged data: a token serialized
by the harness itself (what an attacker does before swapping in a gadget chain),
carrying a benign Pair witness object. It deserializes and the witness comes back.
A server-issued token goes through the same path with the same result - there is no
origin check, no MAC, no signature, nothing that distinguishes what the server issued
from what an attacker forged.
Config defaults, reflected from the real assembly. CsrfSettings defaults are
cookieName=__CSRFCOOKIE, formFieldName=__CSRFTOKEN, detectionResult=RaiseException,
matching the advisory.
No gadget chain. The witness object is a benign System.Web.UI.Pair carrying a marker
string. There is no System.Configuration.Install / TextFormattingRunProperties /
ObjectDataProvider chain, no process launch, no file write, no network. The
deserialization-sink reachability is the claim; carrying it to code execution is the
step that is left out, and on an actively-exploited RCE that omission is the point.
The harness also tries to invoke the real private PreRequestHandlerExecute handler
against a simulated POST (forged token in the form collection, __CSRFCOOKIE=1). Mono's
System.Web does not emulate enough of the ASP.NET context internals, so the module
path dies with a NullReferenceException inside Mono's fidelity layer before reaching
the sink. That probe is reported as skip with the reason and does not affect the
result. The sink itself is proven by the IL evidence plus the direct dynamic probe -
which is the identical call the module makes.
python3 cve-2026-131914-idunno-anticsrf-deserialization-Abraxas-Labs.py
or directly:
cd lab && ./run.sh
Requires Mono (brew install mono): mono, mcs, monodis. Compiles the harness
against the Mono GAC's System.Web, verifies the DLL hash, checks the IL, runs the
probes, writes poc-last-run.txt. Everything is local and loopback-free - there is no
network component at all.
| File | Role |
|---|---|
run.sh | Hash check, IL check, compile, run |
poc.cs | Reachability harness |
Idunno.AntiCSRF.dll | Genuine official 2008 build (hash-verified), Ms-PL |
license.txt | Ms-PL, retained per its redistribution terms |
poc-last-run.txt | Recorded output |
ObjectStateFormatter.Serialize(object) returns System.String on Mono, not byte[].HttpWorkerRequest in System.Web, not System.Web.Hosting.HttpRequest has no HttpWorkerRequest constructor; form/cookie injection is by
reflection into private fields.GetMethod(name, NonPublic|Instance) returns null for this DLL's private methods;
enumerate GetMethods(... | Static) and filter by name.No patch exists; the project is defunct. Remove Idunno.AntiCsrf.dll and every trace
of it from Web.config (<httpModules>/<modules>, <configSections>, <csrfSettings>,
any ISuppressCsrfCheck / [SuppressCsrfCheck]), and replace with a supported
anti-CSRF mechanism (System.Web.Helpers.AntiForgery, Page.ViewStateUserKey, or
ASP.NET Core IAntiforgery). Rotate machineKey and other secrets if exploitation is
suspected. Full steps are in the Mandiant advisory.