Skip to content

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. PreRequestHandlerExecute only requires that Request.Cookies[cookieName] and Request.Form[formFieldName] are both non-empty. Cookie well-formedness (GuidTryParse) is enforced only later in PagePreRender, never before Deserialize(). So Cookie: __CSRFCOOKIE=1 plus any Base64 blob in __CSRFTOKEN reaches 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.PreRequestHandlerExecute runs before IHttpHandler.ProcessRequest and before the Page lifecycle (Init/Page_Load). Pages that authenticate by session check inside Page_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 .aspx endpoints as seen at the module layer, not the subset that looks form-bearing in rendered HTML.
  • Defense-in-depth defaults are the fingerprint. CsrfSettings defaults are cookieName=__CSRFCOOKIE, formFieldName=__CSRFTOKEN, detectionResult=RaiseException, but there is a setter bug: if the <csrfSettings> section is omitted entirely, DetectionResult's setter overwrites FormFieldName with the literal string "RaiseException". Seeing a form field named RaiseException in scraped forms, or __CSRFTOKEN/__CSRFCOOKIE names 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 calls RaiseError: detectionResult="Redirect" yields HTTP 302 to the configured errorPage, RaiseException yields 302 to <customErrors defaultRedirect> when customErrors is on, or 500 when mode="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 find Idunno.AntiCsrf.dll in a bin/ 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)

  1. Non-executing presence checks (safe on owned targets): request any .aspx anonymously and inspect Set-Cookie for the GUID-valued CSRF cookie name (default __CSRFCOOKIE, HttpOnly) and scrape hidden inputs for __CSRFTOKEN (or the RaiseException-named field indicating the omitted-config branch). Server-side during an approved assessment: grep Web.config and bin/ for Idunno.AntiCsrf and AntiCsrfModule by name, not just hash.
  2. Gated deserialization probe (lab only): POST to an anonymous .aspx with Cookie: __CSRFCOOKIE=1 and __CSRFTOKEN set to (a) a valid ObjectStateFormatter blob serialized from a benign type via new 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) per detectionResult/customErrors branch and the canary side effect. The benign-vs-malformed pair distinguishes "the field reached a parser" from "the field was rejected as a string".
  3. 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.
  4. 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.ViewStateUserKey with MAC-verified ViewState, or ASP.NET Core IAntiforgery), and any evidence of exploitation means rotating machineKey, Web.config/applicationHost.config secrets.

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 SourceProvider XXE 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/logs local 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.