Idunno.AntiCsrf unkeyed CSRF-token deserialization is anonymous WebForms RCE (CVE-2026-131914)¶
Sources: GHSA-pj2m-2r8v-h9cp / CVE-2026-131914 (critical, Mandiant CNA, published 2026-11-18T00Z, GHSA published 2026-11-19T03:31Z, GHSA version fields empty and no package entry: defunct upstream, no patched release exists), Mandiant/FLARE advisory MNDT-2026-0048 (full root cause, sink trace, and binary hashes), CodePlex archive of the project. CVSS 4.0 (CVSS-BT): 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 (9.3 Critical). Advisory states active exploitation in the wild has been observed; not yet in CISA KEV at scan time (catalog 2026.11.18, 1786 entries) and the ITW-to-KEV lag seen with PHP2Shell (nine days) suggests a KEV entry is plausible within days: watch item.
Wave in one line: a double-submit-cookie anti-CSRF IHttpModule from 2008 calls new ObjectStateFormatter().Deserialize(Request.Form[field]) at PreRequestHandlerExecute, before comparing anything to anything, so any anonymous POST to any .aspx page carrying a non-empty CSRF cookie plus a Base64 .NET gadget chain in the CSRF form field executes code inside w3wp.exe.
Authorized scope only
This is an unauthenticated RCE with confirmed in-the-wild exploitation. Validate only against lab builds of the library (the CodePlex archive sources build in minutes) or customer-owned applications with written approval. Never send gadget-chain payloads at third-party hosts; use the non-executing fingerprint checks in step 1 and 2 below for anything you do not own.
Why this is worth an operator page¶
- A security control is the sink. The vulnerable call is not in business logic; it is inside the anti-CSRF protection module itself. The module's job is to compare a cookie to a form field, and it "compares" them by deserializing the form field first. The decision of what gets parsed is inseparable from the decision of what gets trusted. Sweep rule for any security filter, WAF module, auth module, or CSRF middleware: trace what the module parses (deserialize, XML-load, template-render, eval) before it validates, because parse-before-validate hands the attacker a pre-auth sink gated only by field presence.
- Presence-check vs content-check asymmetry is exploitable.
PreRequestHandlerExecuteonly requires thatRequest.Cookies[cookieName]andRequest.Form[formFieldName]are both non-empty. Cookie well-formedness (GuidTryParse) is enforced only later inPagePreRender, never beforeDeserialize(). SoCookie: __CSRFCOOKIE=1plus any Base64 blob in__CSRFTOKENreaches the sink. Decision table to run against any double-submit implementation: cookie absent / cookie garbage / cookie valid x field absent / field garbage / field gadget, and confirm at which cell any parsing with side effects occurs. Garbage-cookie-plus-field reaching a parser is the bug. - Pipeline position outranks page-level auth.
IHttpModule.PreRequestHandlerExecuteruns beforeIHttpHandler.ProcessRequestand before thePagelifecycle (Init/Page_Load). Pages that authenticate by session check insidePage_Load(the classic WebForms pattern) are anonymous to the module. A page with no<form runat="server">at all is still exploitable: the module never checks for a server form before deserializing. Audit consequence: for ASP.NET targets, the attack surface is the union of all.aspxendpoints as seen at the module layer, not the subset that looks form-bearing in rendered HTML. - Defense-in-depth defaults are the fingerprint.
CsrfSettingsdefaults arecookieName=__CSRFCOOKIE,formFieldName=__CSRFTOKEN,detectionResult=RaiseException, but there is a setter bug: if the<csrfSettings>section is omitted entirely,DetectionResult's setter overwritesFormFieldNamewith the literal string"RaiseException". Seeing a form field namedRaiseExceptionin scraped forms, or__CSRFTOKEN/__CSRFCOOKIEnames at all, is a zero-cost external fingerprint that this exact library is mounted. - Error-shape is a free oracle for which config branch you hit. After
Deserialize()the module callsRaiseError:detectionResult="Redirect"yieldsHTTP 302to the configurederrorPage,RaiseExceptionyields302to<customErrors defaultRedirect>when customErrors is on, or500whenmode="Off". A gadget that executes can surface as a 200/302 divergence from the benign-parse baseline. This is the parser-error-shape reachability family (Oct 26 PHP2Shell triage) plus the nested-control fail-open family (Oct 14 ONLYOFFICE): the config section you are guessing about also decides your observable response class. - Defunct-supply-chain triage for red teamers, not just defenders. Last release was
0.9.1 Beta, December 2008, on retired CodePlex; there is no patch, so "is it patched" is never the question, only "is it mounted". Organizations that recompiled it locally keep the sink with different hashes, so bin-name and config-name grep matter more than hash allowlists. When you findIdunno.AntiCsrf.dllin abin/during an engagement, treat the finding as pre-auth RCE-available, cite MNDT-2026-0048, and note ITW activity: this is a critical-severity, zero-interaction, single-request finding.
Fingerprint artifacts (from MNDT-2026-0048)¶
| Build provenance | Size | SHA-256 |
|---|---|---|
Official 2008 release 0.9.1.0 | 69,632 | da1efcfed182597ee946a9ef2895dfdfeab2bdff16855aeef01656d8158ead06 |
| CodePlex source rebuild, Release | 69,632 | c5c994891783453ae85f3ef8efb48592b7c560aeb56f531ee9ea5736518246eb |
| CodePlex source rebuild, Debug | 70,144 | aa7bbad4a7ebc38519955ac65517716569508ee4f61fc2f1276086940501e9bf |
Registration fingerprint in Web.config: <add name="..." type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf" /> under <httpModules>/<modules>, plus optional <csrfSettings> section. Sink chain: AntiCsrfModule.Init subscribes PreSendRequestHeaders + PreRequestHandlerExecute; the latter attaches PageLoad/PagePreRender and calls new ObjectStateFormatter().Deserialize(context.Request.Form[FieldName]) on POST to any System.Web.UI.Page that neither implements ISuppressCsrfCheck nor carries [SuppressCsrfCheck]. The parameterless ObjectStateFormatter performs no MAC, no signature, no encryption, no machineKey validation, and no SerializationBinder restriction.
Validation workflow (authorized lab first)¶
- Non-executing presence checks (safe on owned targets): request any
.aspxanonymously and inspectSet-Cookiefor the GUID-valued CSRF cookie name (default__CSRFCOOKIE,HttpOnly) and scrape hidden inputs for__CSRFTOKEN(or theRaiseException-named field indicating the omitted-config branch). Server-side during an approved assessment: grepWeb.configandbin/forIdunno.AntiCsrfandAntiCsrfModuleby name, not just hash. - Gated deserialization probe (lab only): POST to an anonymous
.aspxwithCookie: __CSRFCOOKIE=1and__CSRFTOKENset to (a) a validObjectStateFormatterblob serialized from a benign type vianew ObjectStateFormatter().Serialize(...)(no MAC in this path, so no machineKey needed), (b) a malformed Base64 blob, (c) a lab-only canary gadget that touches a file or DNS lookup you control. Compare response classes (200/302/500) perdetectionResult/customErrorsbranch and the canary side effect. The benign-vs-malformed pair distinguishes "the field reached a parser" from "the field was rejected as a string". - Suppress-flag differential: confirm which endpoints opt out via
ISuppressCsrfCheck/[SuppressCsrfCheck]to map the vulnerable endpoint family; pages WITHOUT the flag are in scope even when they render no server form. - Report shape: pre-auth single-request RCE-available, no patch exists (defunct upstream), ITW observed per the advisory; remediation is module removal + supported anti-forgery (
System.Web.Helpers.AntiForgery,Page.ViewStateUserKeywith MAC-verified ViewState, or ASP.NET CoreIAntiforgery), and any evidence of exploitation means rotatingmachineKey,Web.config/applicationHost.configsecrets.
Sibling genealogy and standing sweep notes¶
- Unkeyed deserialization on a framework formatter where the framework's keyed variant would have refused: same "framework-constructed reader skips app hardening" lesson as the Oct 8 RESTEasy
SourceProviderXXE fold and the Aug 6 CXF unhardened SAXParserFactory leg. Here the app never opted in at all; the module picked the unkeyed constructor. - Security-module-as-sink precedents on this wiki: Oct 4 NetScaler SAML-gated overflow (auth feature is the parser), Oct 7 RHACS SAML replay (no used-ID store), Oct 9 Nginx UI JWT-in-cookie CSRF fallback. Rule to reuse: enumerate
<httpModules>-era pipeline modules as first-class attack surface, ordered by pipeline stage, before enumerating pages. - KEV watch: CLOSED 2026-11-24: CVE-2026-131914 added to CISA KEV (catalog 2026.11.24, due 2026-11-27, forensic triage required), ITW confirmed by KEV on top of Mandiant's own ITW statement, six days after advisory publication. Same-product KEV pairs with the Drupal install.php KEV (CVE-2026-132165) also added today: two web-tier RCE KEVs in one catalog day. Remaining open watches: Shiro 129349, Cyrus 129483, Phison 124017, Zyxel wqw9.
- Same-wave (03:31Z Nov 19) tracked without publication: MemTensor memmy-agent
/api/v1/memory/logslocal information disclosure (m46r, local-only, sparse), SourceCodester pair (j352/pxff), SEO Panel trio, RuoYi w2j7, SECUDOCX 6g95, Elementor 8wxv (known WP plugin classes), and the Oracle CPU / Chrome 158 enrichment re-listings per standing precedent.