Protect.Computer
NEWS

Abandoned ASP.NET Library Idunno.AntiCsrf Exploited for RCE

· 1 min read · Got hacked Network safety
Abandoned ASP.NET Library Idunno.AntiCsrf Exploited for RCE

Google’s Mandiant has published an advisory for CVE-2026-131914, a critical flaw in Idunno.AntiCsrf, an old third-party anti-CSRF module for ASP.NET WebForms applications, and says it has seen active exploitation in the wild. The project is defunct (its last build is dated December 2008), so there is no vendor or maintainer patch. The advice is to stop using the library.

According to the advisory, the module reads the CSRF token from a form field and deserializes it with an unkeyed .NET ObjectStateFormatter, with no MAC or signature check. Because this happens before the page runs, a remote attacker needs only one HTTP POST: any non-empty CSRF cookie plus a Base64-encoded .NET gadget chain in the CSRF form field. The code then runs as the IIS worker process (w3wp.exe), which Mandiant describes as complete compromise of the web application server. Mandiant rates the flaw 9.3 under CVSS 4.0 and its exploitability as high. The Hacker News reports that Google did not share details of the exploitation it has seen.

How to check if you’re affected

Affected versions are Idunno.AntiCsrf 0.9.1.0 and 0.9.1 Beta, used in ASP.NET WebForms applications on IIS. Mandiant says applications that recompiled or customized the library keep the same vulnerable code even though their file hashes differ, so search by name rather than only by hash.

  • Find it: audit every ASP.NET Web.config and bin/ directory for Idunno.AntiCsrf and AntiCsrfModule. The advisory lists the file hashes of the known public Idunno.AntiCsrf.dll builds.
  • Remove it: Mandiant says to delete the module entries from <httpModules> / <modules>, the csrfSettings section and element from Web.config, any ISuppressCsrfCheck / [SuppressCsrfCheck] references, and Idunno.AntiCsrf.dll from bin/, then use a supported replacement such as System.Web.Helpers.AntiForgery, WebForms Page.ViewStateUserKey with MAC-verified or encrypted ViewState, or ASP.NET Core’s IAntiforgery.
  • Look for exploitation: Mandiant says to review IIS logs for unusual POST requests to .aspx endpoints that returned HTTP 302 or HTTP 500 with large cs-bytes values, where that is logged.
  • If you see signs of exploitation: Mandiant says to rotate every secret in Web.config and applicationHost.config, including <machineKey> keys, encryption keys and database credentials, and to inspect webroots for unauthorized files.

Sources

Related reading