Skip to main content

An Abandoned ASP.NET Anti-CSRF Library Can Hand an Attacker Your IIS Server, and Mandiant Says It Is Being Exploited

Mandiant says Idunno.AntiCsrf, unmaintained since 2008, lets one HTTP request run code on IIS and is being exploited. There is no patch.

KBY News Desk7 min read
Closeup of electronic device with colorful wires installed in rows in communications room on blurred background in dark studio inside

Anyone who runs an old ASP.NET WebForms site on IIS has a file to look for this morning. Google’s Mandiant team has warned that Idunno.AntiCsrf, a third-party anti-forgery library last updated in December 2008, contains a flaw that lets an unauthenticated attacker run code on the web server with one HTTP request, and says it has seen the flaw exploited. The flaw is tracked as CVE-2026-131914. There is no patch, because the project is abandoned. The advice from Mandiant is to remove the library and replace it, and to check whether anyone got in first.

#Who is exposed, and who can stop reading

The library is a small add-on module for ASP.NET WebForms, the page-based framework Microsoft shipped long before ASP.NET Core. It was published on CodePlex to protect forms against cross-site request forgery, an attack in which a booby-trapped page makes a logged-in user’s browser send a request they did not intend. The CVE record lists the affected versions as 0.9.1.0 and 0.9.1 Beta. If your applications are written in ASP.NET Core, or in WebForms without this module, this flaw is not yours.

That still leaves a real population. WebForms applications were widely used for line-of-business web software, and some have outlived the agency that built them. Our guess is that the library sits in a few unloved intranet sites, customer portals and booking systems, where nobody has opened the project for years. The practical difficulty is finding it, since it is a single DLL, not a product with an installer or an entry in a patch list.

#What the flaw does

Mandiant’s disclosure describes the problem in terms a developer will recognise. When a POST request arrives, the module reads a token from a cookie and a hidden form field and compares them. Before it compares anything, it deserialises the form field using .NET’s ObjectStateFormatter without a message authentication code or signature. Deserialisation means turning a stream of bytes back into live objects, and a formatter that will rebuild whatever types the bytes name hands the sender a way to make the server build objects of their choosing.

Mandiant says an attacker needs only to supply any non-empty value in the configured CSRF cookie and a Base64-encoded gadget chain in the configured form field. A gadget chain is a sequence of existing .NET classes that, once deserialised in the right order, ends up running a command. The code runs in the IIS worker process, w3wp.exe, which Mandiant describes as complete compromise of the web application server. It rates exploitability High, and says exploitation needs a single POST with no authentication and no valid token.

Why might a login not help? Mandiant explains that the module acts in the ASP.NET request pipeline before a page’s own Page_Load code runs. Any page that can be reached anonymously, or that does its session checks inside Page_Load, exposes the flaw on a POST, even if it contains no server-side form. Authentication that the pipeline enforces earlier does run first, so it can limit exposure. A page is skipped only if it carries the library’s own opt-out marker, ISuppressCsrfCheck or the SuppressCsrfCheck attribute. In our reading, that means a site whose only protection is a login check written inside each page is weaker than it looks, because the vulnerable code runs before the page can ask who you are.

#What Mandiant says to do

There is no vendor fix. Mandiant’s advice, as reported by The Hacker News, is to stop using the library and move to a maintained alternative: System.Web.Helpers.AntiForgery, ViewStateUserKey combined with MAC-verified or encrypted ViewState on postback forms, or the anti-request-forgery support in ASP.NET Core.

Its checking advice is specific:

  • Audit every Web.config file and bin folder for references to Idunno.AntiCsrf or AntiCsrfModule.
  • Review IIS logs for unusual POST requests to .aspx endpoints that returned HTTP 302 or 500, with elevated cs-bytes (the request size IIS logs) where the log records it.
  • Where there is evidence of exploitation, rotate every secret stored in Web.config and applicationHost.config, including machineKey values, encryption keys and database credentials, and inspect the web roots for files that should not be there.

Mandiant has not said who is exploiting the flaw, how many servers are affected or what the attackers did afterwards, and The Hacker News says it asked Google for more and had not heard back. We therefore cannot say whether this is a handful of targeted intrusions or opportunistic scanning. Treat it as the second until shown otherwise, because the request needed is so simple.

#A search you can run today

On a Windows web server, the quickest start is to search the web roots for the file name and the module name. Our suggested order:

  1. Search every IIS site’s folder for Idunno.AntiCsrf.dll, then search every Web.config for the text AntiCsrfModule. A hit in either means the library is in use.
  2. Ask the people who built or maintain each application whether it uses it. Agencies and former employees often know where the odd dependencies are.
  3. For each hit, remove the module from Web.config and the DLL from the bin folder, then test the forms. Removing it also removes the CSRF protection it was providing, so the replacement has to go in at the same time, not afterwards.
  4. Pull the IIS logs for the last month and look for the pattern Mandiant describes. A clean result does not prove the server is clean, since logs may not record request sizes and the attacker’s POST would not look unusual to a casual reader.
  5. If the server is exposed to the internet and you cannot do any of this today, put it behind a web application firewall rule or a login at the network edge, or take it offline until you can. We would rather see a booking site down for an afternoon than a web server handed over.

The rotation step is the one most likely to be skipped, and we would not skip it. In our reading, a leaked machineKey is the worst case, since applications that share a key can be forged against each other, so one compromised server can lead to others.

#Our view: dependencies nobody owns

This is the same shape of problem as the hidden Ghostscript copies we wrote about on Sunday, and the Ruby versions that will get no patch: a component that an organisation uses without having chosen it recently. The library was last updated in December 2008. The lesson we would take is not that anti-CSRF libraries are dangerous. It is that a dependency with no maintainer should be on a list with an owner and a replacement date, the same as any product that is going out of support. We suspect there will be more of these, because an abandoned open-source project has nobody to fix what researchers find in it. What would prove us wrong is a long gap before the next such disclosure.

For a small firm with a WebForms application built years ago by a contractor, the one email worth sending today is short. Ask the developer: “Does our application use Idunno.AntiCsrf, and if it does, when can you replace it?” If they cannot answer, ask them to search for the DLL file. Our Cyber Essentials explainer explains the UK scheme many small firms are asked to certify to, and our earlier stories on Ghostscript and Ruby show how to find components you did not know you ran.

#What is confirmed and what is not

Confirmed by the CVE record and Mandiant: the affected versions, the mechanism, the single-request attack and that exploitation has been observed. The Hacker News reports the CVSS score as 9.3 out of 10, the project’s abandonment since December 2008 and the list of replacements. Not known: how many sites run the library, who is exploiting it, how long exploitation has been going on, and whether any fork or patched build exists. We will update this story if Mandiant, Microsoft or the project’s old maintainers say more.

Evidence trail

Sources and verification

Primary documentation and external technical references used in this article.

  1. 01Mandiant disclosure MNDT-2026-0048github.com
  2. 02CVE record for CVE-2026-131914cveawg.mitre.org
  3. 03The Hacker News: Hackers Exploit Critical ASP.NET Anti-CSRF Library Flawthehackernews.com

About this page

Credited to

Dates

Published

Corrections

No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.

Reader Interaction

Comments

Add a thoughtful note on An Abandoned ASP.NET Anti-CSRF Library Can Hand an Attacker Your IIS Server, and Mandiant Says It Is Being Exploited. Comments are checked for spam and held for moderation before appearing.

Loading comments...

Get new fixes by email.

New runbooks, configuration traps and fixes from KBY Technologies, about twice a week.