Skip to content
Mandiant Vulnerability Disclosures: MNDT-2026-0048

Mandiant Vulnerability Disclosures: MNDT-2026-0048

github.com • November 22, 2026

The legacy ASP.NET anti-CSRF library Idunno.AntiCsrf ( Idunno.AntiCsrf.dll , version 0.9.1.0 / 0.9.1 Beta ) contains an insecure deserialization vulnerability in the Idunno.AntiCsrf.AntiCsrfModule HTTP module ( PreRequestHandlerExecute ). When processing incoming HTTP POST requests to ASP.NET WebForms ( System.Web.UI.Page ) endpoints, the module deserializes untrusted CSRF form token data using an unkeyed .NET System.Web.UI.ObjectStateFormatter instance without cryptographic MAC or signature verification, allowing a remote attacker to achieve arbitrary remote code execution (RCE).

Critical: A remote attacker can supply any non-empty value in the configured CSRF cookie alongside a Base64-encoded .NET ObjectStateFormatter gadget chain in the configured CSRF form field to execute arbitrary code in the context of the IIS worker process ( w3wp.exe ), resulting in complete compromise of the web application server.

High: AntiCsrfModule.PreRequestHandlerExecute executes at the HttpApplication pipeline level prior to IHttpHandler.ProcessRequest and the ASP.NET Page lifecycle ( PreInit , Init , and Page_Load ). Although pipeline-level authentication rules ( AuthenticateRequest / AuthorizeRequest ) execute earlier, any anonymously reachable .aspx page or any page relying on application-level session checks inside Page_Load (and neither implementing ISuppressCsrfCheck nor decorated with [SuppressCsrfCheck] ) exposes the deserialization sink on POST --even if the page contains no . Exploitation requires only a single HTTP POST request with no prior authentication or valid CSRF token. Active exploitation in the wild has been observed.

Common Weakness Enumeration

CWE-502: Deserialization of Untrusted Data

Idunno.AntiCsrf is a third-party ASP.NET IHttpModule originally published on CodePlex ( ) to provide double-submit cookie Cross-Site Request Forgery (CSRF) protection for ASP.NET WebForms applications. It is registered in Web.config under / as Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf and configured via ( Idunno.AntiCsrf.Configuration.CsrfSettings ), where [ConfigurationProperty] defaults set cookieName to __CSRFCOOKIE , formFieldName to __CSRFTOKEN , and detectionResult to RaiseException unless overridden in Web.config . In the decompiled CsrfSettings source, if the section is omitted from Web.config entirely, a setter bug in CsrfSettings.DetectionResult overwrites the fallback FormFieldName value with "RaiseException" .

Pre- Page_Load Unkeyed ObjectStateFormatter.Deserialize Sink on POST ( PreRequestHandlerExecute ): For any System.Web.UI.Page handler neither implementing ISuppressCsrfCheck nor decorated with [SuppressCsrfCheck] , PreRequestHandlerExecute runs before Page_Load and inspects incoming POST requests. After checking only that both Request.Cookies[CsrfSettings.Settings.CookieName] and Request.Form[CsrfSettings.Settings.FormFieldName] are non-empty--without validating that the cookie is a well-formed GUID or requiring a --it instantiates a parameterless new ObjectStateFormatter() and calls Deserialize(context.Request.Form[CsrfSettings.Settings.FormFieldName]) before comparing the result against the cookie value. Because the parameterless ObjectStateFormatter constructor performs zero MAC, signature, encryption, or machineKey validation and enforces no SerializationBinder restrictions, supplying any non-empty cookie (e.g., Cookie: __CSRFCOOKIE=1 ) and a Base64-encoded .NET ObjectStateFormatter gadget chain in the CSRF form field executes arbitrary code inside Deserialize() under w3wp.exe . Immediately afterward, RaiseError either redirects ( HTTP 302 ) to when detectionResult="Redirect" , or throws PotentialCsrfException when detectionResult="RaiseException" (returning HTTP 302 to when customErrors is active, or HTTP 500 when mode="Off" ).

Pre- Page_Load Unkeyed ObjectStateFormatter.Deserialize Sink on POST ( PreRequestHandlerExecute ): For any System.Web.UI.Page handler neither implementing ISuppressCsrfCheck nor decorated with [SuppressCsrfCheck] , PreRequestHandlerExecute runs before Page_Load and inspects incoming POST requests. After checking only that both Request.Cookies[CsrfSettings.Settings.CookieName] and Request.Form[CsrfSettings.Settings.FormFieldName] are non-empty--without validating that the cookie is a well-formed GUID or requiring a --it instantiates a parameterless new ObjectStateFormatter() and calls Deserialize(context.Request.Form[CsrfSettings.Settings.FormFieldName]) before comparing the result against the cookie value. Because the parameterless ObjectStateFormatter constructor performs zero MAC, signature, encryption, or machineKey validation and enforces no SerializationBinder restrictions, supplying any non-empty cookie (e.g., Cookie: __CSRFCOOKIE=1 ) and a Base64-encoded .NET ObjectStateFormatter gadget chain in the CSRF form field executes arbitrary code inside Deserialize() under w3wp.exe . Immediately afterward, RaiseError either redirects ( HTTP 302 ) to when detectionResult="Redirect" , or throws PotentialCsrfException when detectionResult="RaiseException" (returning HTTP 302 to when customErrors is active, or HTTP 500 when mode="Off" ).

Unkeyed ObjectStateFormatter.Serialize During Page Rendering ( PagePreRender & PreSendRequestHeaders ): When a Page with a renders, PagePreRender either generates a new GUID via Guid.NewGuid().ToString("D", CultureInfo.InvariantCulture) when the CSRF cookie is absent/empty (emitting Set-Cookie: = ; HttpOnly in PreSendRequestHeaders ) or reuses the existing cookie value after checking GuidTryParse (which is enforced only in PagePreRender , never in PreRequestHandlerExecute prior to Deserialize() ), and registers the hidden form field via new ObjectStateFormatter().Serialize((object)text) .

Unkeyed ObjectStateFormatter.Serialize During Page Rendering ( PagePreRender & PreSendRequestHeaders ): When a Page with a renders, PagePreRender either generates a new GUID via Guid.NewGuid().ToString("D", CultureInfo.InvariantCulture) when the CSRF cookie is absent/empty (emitting Set-Cookie: = ; HttpOnly in PreSendRequestHeaders ) or reuses the existing cookie value after checking GuidTryParse (which is enforced only in PagePreRender , never in PreRequestHandlerExecute prior to Deserialize() ), and registers the hidden form field via new ObjectStateFormatter().Serialize((object)text) .

Known Public Idunno.AntiCsrf.dll ( 0.9.1.0 ) Binaries

Organizations that have recompiled or customized Idunno.AntiCsrf internally will have different file hashes while retaining the vulnerable ObjectStateFormatter.Deserialize sink, and should also Web.config and bin/ for Idunno.AntiCsrf and Idunno.AntiCsrf.AntiCsrfModule by name.

CVSS 4.0 Vector (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 )

Idunno.AntiCsrf is a defunct open-source project last released as 0.9.1 Beta (official build dated December 2008) on the since-retired CodePlex platform, and has no active maintainer or official patch available. Organizations should discontinue use of Idunno.AntiCsrf ( Idunno.AntiCsrf.dll ) and replace it with an actively supported anti-CSRF alternative :

Remove Idunno.AntiCsrf ( Idunno.AntiCsrf.dll ): Remove all entries from and , remove both from and the element from Web.config , remove any code references to ISuppressCsrfCheck or [SuppressCsrfCheck] , and delete Idunno.AntiCsrf.dll from the application's bin/ directory.

Adopt a Supported Anti-CSRF Mechanism: Replace Idunno.AntiCsrf with a supported framework anti-forgery implementation, such as System.Web.Helpers.AntiForgery ( AntiForgery.GetHtml() and AntiForgery.Validate() from System.Web.WebPages ), ASP.NET WebForms Page.ViewStateUserKey combined with MAC-verified/encrypted ViewState on postback forms, or ASP.NET Core Anti-Request Forgery ( IAntiforgery ).

Detection & Post-Compromise Assessment: Audit all ASP.NET Web.config files and bin/ directories for references to Idunno.AntiCsrf or AntiCsrfModule , and review IIS logs for anomalous POST requests to .aspx endpoints returning HTTP 302 or HTTP 500 with elevated cs-bytes (where logged). Environments with evidence of exploitation should rotate all secrets stored in Web.config and applicationHost.config (including keys, encryption keys, and database credentials) and inspect webroots for unauthorized files.

Genwei Jiang, Google Cloud, FLARE OTF

Dhanesh Kizhakkinan, Google Cloud, FLARE OTF

Brian Bahtiarian, Mandiant Incident Response

Lucas Kossack, Mandiant Incident Response

2026-11-04: Vulnerability root-cause analysis completed by FLARE during incident response investigation

2026-11-11: Mandiant CNA initiated CVE assignment for public awareness (defunct upstream project; no vendor or maintainer patch available)

2026-11-18: Mandiant advisory and CVE-2026-131914 published

Archived Project Page - AntiCSRF on CodePlex (Wayback Machine)

CodePlex Archive - AntiCSRF

cve.org CVE-2026-131914

Extracted Entities