Exploited flaw in abandoned .NET anti-CSRF library has no patch


SaveAdd to Google

Idunno.AntiCsrf, last released in 2008, deserializes untrusted data before checking its CSRF token.

TORONTO, ON

A security library meant to protect older .NET websites from attack has turned out to be a way in. And because the project was abandoned years ago, there is no patch.

On November 18, Mandiant published advisory MNDT-2026-0048 for CVE-2026-131914, a critical flaw in Idunno.AntiCsrf, a module that adds cross-site request forgery (CSRF) protection to ASP.NET WebForms applications. The flaw scores 9.3 under CVSS 4.0. Mandiant says active exploitation has been observed, and that there is no active maintainer and no official fix. Its advice is simple: stop using the library.

An abandoned dependency

Idunno.AntiCsrf was published on CodePlex, Microsoft's former open-source hosting site. Its last release, version 0.9.1 Beta, dates from December 2008, and CodePlex itself has since been shut down. Libraries like this tend to stay in place for years in older WebForms applications, often added by a developer or agency that has long since moved on. Many small and medium-sized businesses may be running it without knowing it.

The flaw came to light the hard way. Google's FLARE team found the root cause on November 4 during an incident response investigation, which means attackers were using it before anyone had described it publicly.

What goes wrong

CSRF protection works by checking that a form submission carries a token that matches a cookie. Idunno.AntiCsrf does the checks in the wrong order. According to Mandiant, the module deserializes the CSRF form field with .NET's ObjectStateFormatter before it validates the token, with no signature, encryption or type restrictions to stop malicious data. Before deserializing, it only checks that the cookie and form field are not empty.

Insecure deserialization is a well-known route to remote code execution in .NET. Here, a single HTTP POST request with no login and no valid token is enough. The attacker can run code inside the IIS worker process (w3wp.exe) and take full control of the web application server. Any page that anonymous visitors can reach is exposed, as are pages that only check the session inside Page_Load, even if the page has no <form runat="server">.

Checklist: what to do now

1. Find out whether you use it. Search your web applications' Web.config files and bin/ folders for Idunno.AntiCsrf or AntiCsrfModule. Mandiant notes that organizations which recompiled or modified the library will have different file hashes but the same flaw, so search by name, not by hash. If an outside developer or agency maintains your site, ask them directly.

2. Remove it. There is no update to install. Mandiant's steps are to delete the module entries from <httpModules> and <modules>, remove the csrfSettings section from Web.config, remove any ISuppressCsrfCheck or [SuppressCsrfCheck] references in code, and delete Idunno.AntiCsrf.dll from bin/.

3. Replace it with a supported mechanism. Removing the module also removes your CSRF protection, so put something supported in its place. Mandiant names System.Web.Helpers.AntiForgery, WebForms' ViewStateUserKey with MAC-protected ViewState, or IAntiforgery in ASP.NET Core.

4. If you can't fix it today, limit exposure. Until the library is removed, consider taking the application offline or restricting it to known IP addresses or a VPN. Any internet-facing page that runs the module can be attacked anonymously.

5. Check for compromise. Review IIS logs for unusual POST requests to .aspx pages that returned HTTP 302 or 500. If you suspect exploitation, Mandiant advises rotating the secrets stored in Web.config and applicationHost.config, including machineKey values, encryption keys and database credentials, and checking web folders for files you didn't put there.

The bigger lesson

This flaw is a reminder that old dependencies are a risk in their own right. A small business may have a perfectly patched Windows server running a web application that still loads a library nobody has maintained since 2008. A software inventory that lists third-party components, not just operating systems and major applications, is the only way to catch this kind of problem before attackers do.

If an affected application handled customer data and shows signs of compromise, organizations may need to assess whether the breach must be reported under PIPEDA or, in Quebec, Law 25. Suspected intrusions can be reported to the Canadian Centre for Cyber Security through My Cyber Portal or at [email protected].

The vulnerability in this story

  1. 9.3 Critical CVE-2026-131914 (cve.org, opens in a new tab) Exploited

    Idunno AntiCsrf Deserialization of Untrusted Data Vulnerability

    Exploited in the wild, listed by CISA on Nov 23, 2026

Scores and dates: NVD (not endorsed by the NVD). Each ID opens its record on cve.org.

About the author

Editor's Picks

The best of cybersecuritynews.ca, delivered to you weekly.

On Display

ARTEX: what Canadian SMBs should do about AI-speed intrusions

Drupal installer flaw exploited; Cyber Centre urges patching

The attack targets the VMware Directory Service, which stores the credentials and signing keys behind every vSphere single sign-on login.

Inside the vCenter zero-day that handed China-linked hackers the keys to vSphere