ASP.NET's Forgotten Library. Hackers Are Exploiting It Now.

ASP.NET’s Forgotten Library. Hackers Are Exploiting It Now.

What happened

Some software dies quietly. The project page goes stale, the maintainer moves on, and the code keeps running — inside companies that never noticed. That is the story of Idunno.AntiCsrf, a small open-source library that protected ASP.NET WebForms apps against cross-site request forgery. It has not been updated since December 2008. Now researchers have revealed the protection itself is the hole — and attackers are already using it.

The flaw, tracked as CVE-2026-131914, carries a CVSS score of 9.3 out of 10. It affects versions 0.9.1.0 and 0.9.1 Beta — a third-party ASP.NET module providing double-submit cookie CSRF protection for WebForms apps. Google’s Mandiant division, whose researchers discovered the flaw earlier this month, rated exploitability “High” — and added a sentence that should stop any administrator cold: “Active exploitation in the wild has been observed.”

Cross-site request forgery, or CSRF, is when a malicious website tricks a logged-in user’s browser into sending a request the user never intended — changing a password, say, or moving money. The double-submit cookie pattern defends against it: every form submission must carry a token matching a cookie only the real site could have set. Idunno.AntiCsrf implemented that pattern. The problem is what it did with the token afterward.

How the attack works

When a form is submitted to a WebForms page, the module takes the CSRF token from the form field and turns it back into a live object — deserialization. Think of unpacking a parcel: data arrives as text, and the server rebuilds the object it describes. With a signature check proving the parcel came from a trusted sender, that is routine. Idunno.AntiCsrf did it with an unkeyed .NET ObjectStateFormatter and no signature or MAC verification at all. It unpacked whatever arrived, from anyone, without asking who sent it.

That is enough for a remote attacker to run their own code on the server. The attack needs exactly one HTTP POST request to a WebForms (.aspx) endpoint — no login, no valid CSRF token, no prior access. The attacker puts any non-empty value in the CSRF cookie and a Base64-encoded gadget chain in the CSRF form field. A gadget chain is a sequence of small pieces of code already inside the server’s own libraries, stitched together so that when the server unpacks the parcel, those pieces run one after another and hand over control. The code executes inside the IIS worker process, w3wp.exe — complete compromise of the web application server.

How the Idunno.AntiCsrf attack works: one unauthenticated POST carries a gadget chain into the unkeyed deserializer, and code runs as the IIS worker process
One POST, no login — and the server runs the attacker’s code.

Why it matters

Three things make this flaw unusually dangerous. First, the barrier to entry is nearly zero. There is no authentication to bypass, no token to steal, no complicated setup. A single crafted request is the whole attack — which is why Mandiant rates exploitability High, and why exploitation is already happening.

Second, there is no patch, and there never will be. The project is defunct; its last update shipped in December 2008. The only fix is to stop using the library entirely. Every day it stays in place is a day the door stands open.

Third, the blast radius is the whole server. Code running as w3wp.exe can read configuration files, reach databases, and move laterally — and the secrets that make that possible, from machine keys to database credentials, live in those files. This is not the first flaw to hide for a decade — a Linux kernel TCP bug we covered recently sat unnoticed for eleven years. And it is not the only unauthenticated remote-code flaw in web-server code this month: a ten-year-old bug that needed no login at all forced emergency NGINX fixes just days ago.

What to do now

1. Find out whether the library is anywhere in your estate. Audit every ASP.NET Web.config file and every bin/ directory for references to Idunno.AntiCsrf or AntiCsrfModule. Legacy WebForms applications are the hunting ground — apps built in that era often still run on servers nobody has inventoried in years. If you find it, the application is exposed until the library is gone.

2. Check your IIS logs for signs someone already knocked. Look for anomalous POSTs to .aspx endpoints returning HTTP 302 or 500 with elevated cs-bytes — the data volume the server sent back. A failed attempt can still leave a trace in the response codes and byte counts — do not dismiss odd entries just because the request did not obviously succeed.

3. Replace the library — do not wait for a fix that is not coming. Switch to an actively supported alternative: System.Web.Helpers.AntiForgery, ASP.NET WebForms Page.ViewStateUserKey combined with MAC-verified and encrypted ViewState, or ASP.NET Core Anti-Request Forgery (IAntiforgery). Test it in staging first — CSRF protection touches every form — but treat the migration as urgent, not backlog.

4. If the logs show exploitation, assume the server is fully compromised. Rotate every secret stored in Web.config and applicationHost.config, including machineKey keys, encryption keys, and database credentials, and inspect the webroots for unauthorized files. One successful request hands the attacker the keys; changing the lock afterward is not enough if they already copied them.

What to do about the Idunno.AntiCsrf flaw: audit for the library, check IIS logs, replace it with a supported alternative, and rotate secrets if exploitation is found
Find it, check the logs, replace it — and rotate secrets if it was hit.

A security library untouched since 2008 was never going to get safer with age. It sat in the one place nobody looks — the guard at the door — and the guard turned out to be the way in. Check what is guarding yours.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.