CVE
CVE-2026-131914
CWE
CWE-502
Affected Surface
- `Idunno.AntiCsrf.dll` 0.9.1.0 (CodePlex release 0.9.1 Beta, December 2008), and internal rebuilds of the CodePlex source; the 0.9.0 Beta source and trunk contain the same deserialization call
- ASP.NET WebForms applications on IIS that register `Idunno.AntiCsrf.AntiCsrfModule` in `<httpModules>` or `<modules>`
TL;DR
Idunno.AntiCsrf is an ASP.NET IHttpModule that Barry Dorrans published on CodePlex in December 2008 under the Ms-PL license to add CSRF protection to WebForms pages. It sets a random GUID cookie, writes the same GUID into a hidden form field, and on POST checks that the two match. The trouble is how it reads the form field. It passes the raw value to new ObjectStateFormatter().Deserialize(), with no MAC, no machineKey and no type restrictions, and only compares the result with the cookie afterwards. ObjectStateFormatter falls back to BinaryFormatter for types it doesn’t know, so a public .NET gadget chain in that field runs code the moment it’s deserialized.
Mandiant’s FLARE team worked out the root cause on 4 November 2026 during an incident response engagement, and the advisory says plainly: “Active exploitation in the wild has been observed.” Mandiant, acting as CNA because nobody maintains the project, published MNDT-2026-0048 and CVE-2026-131914 on 18 November with CVSS 4.0 9.3 (E:A). It hasn’t named the attacker or shared indicators, and The Hacker News, which covered it on 23 November, got no more detail from Google. The CVE isn’t in CISA KEV, and EPSS on 23 November is 0.0061.
The module runs in PreRequestHandlerExecute, before the page’s own code. A page that checks the session in Page_Load is still exposed, and the page doesn’t even need a <form runat="server">. Any anonymously reachable .aspx page that hasn’t opted out with [SuppressCsrfCheck] or ISuppressCsrfCheck is enough.
What to do now:
- Search every IIS server and code repository for
Idunno.AntiCsrfinWeb.configfiles andbin/folders. There’s no NuGet package to find with a dependency scanner. The DLL was shipped as an MSI and copied by hand. - Remove the module, its config section and the DLL, and switch to a supported anti-forgery mechanism.
- Assume a server that ran it on the internet may be compromised. Check IIS logs and webroots, then rotate
<machineKey>keys, connection strings and other secrets inWeb.configandapplicationHost.config.
Affected packages and projects
| Ecosystem | Package | Affected versions | Fixed or safe version |
|---|---|---|---|
| .NET Framework (manual install) | Idunno.AntiCsrf.dll (CodePlex project AntiCSRF) | 0.9.1.0 (0.9.1 Beta, the last release) and rebuilds of the CodePlex source | None. The project has been unmaintained since December 2008 |
| .NET Framework (manual install) | Idunno.AntiCsrf.dll | 0.9.0 Beta (same Deserialize() call in its source) | None |
Mandiant names 0.9.1.0 as affected. The 0.9.0 Beta source in the CodePlex archive and the trunk source have the same call. The module only exists in the CodePlex archive. NuGet’s unrelated AntiCSRF package, by a different author, is not this code.
Technical analysis
The vulnerable code
This is PreRequestHandlerExecute in idunno.AntiCSRF/AntiCsrfModule.cs from the 0.9.1 Beta source archive. It runs for every POST to a Page that hasn’t opted out:
if (context.Request.HttpMethod.Equals("POST", StringComparison.Ordinal))
{
if (context.Request != null)
{
HttpCookie csrfCookie = context.Request.Cookies[CsrfSettings.Settings.CookieName];
string csrfFormField = context.Request.Form[CsrfSettings.Settings.FormFieldName];
// Only presence checks. Nothing checks that the cookie is a GUID.
if (string.IsNullOrEmpty(csrfFormField) && (csrfCookie == null || string.IsNullOrEmpty(csrfCookie.Value)))
{ RaiseError(new PotentialCsrfException(Properties.Resources.exceptionMessageCookieAndFormFieldMissing), context); }
if (csrfCookie == null || string.IsNullOrEmpty(csrfCookie.Value))
{ RaiseError(new PotentialCsrfException(Properties.Resources.exceptionMessageCookieMissing), context); }
if (string.IsNullOrEmpty(csrfFormField))
{ RaiseError(new PotentialCsrfException(Properties.Resources.exceptionMessageFormFieldMissing), context); }
string tokenField = string.Empty;
ObjectStateFormatter stateFormatter = new ObjectStateFormatter(); // no MAC, no machineKey, no binder
try
{
// Attacker-controlled Base64 goes straight into the deserializer.
tokenField = stateFormatter.Deserialize(context.Request.Form[CsrfSettings.Settings.FormFieldName]) as string;
}
catch
{ RaiseError(new PotentialCsrfException(Properties.Resources.exceptionMessageDeserializationError), context); }
// By the time this comparison runs, the gadget chain has already executed.
if (csrfCookie.Value != tokenField)
{ RaiseError(new PotentialCsrfException(Properties.Resources.exceptionMessageNotMatched), context); }
}
}
The token is just a GUID string. The module wraps it in ObjectStateFormatter when it renders the page (new ObjectStateFormatter().Serialize(csrfToken) in PagePreRender) and unwraps it the same way on the way back. ASP.NET’s own ViewState uses a keyed formatter and checks a MAC before deserializing. The parameterless constructor used here does neither. The only GUID check (GuidTryParse) is in PagePreRender, which runs after the POST has been handled.
What an attack looks like
Mandiant says one request is enough, with no login and no valid token:
POST /AnyPage.aspx HTTP/1.1
Host: victim.example
Cookie: __CSRFCOOKIE=1
Content-Type: application/x-www-form-urlencoded
__CSRFTOKEN=<Base64 ObjectStateFormatter gadget chain>
__CSRFCOOKIE and __CSRFTOKEN are the defaults from CsrfSettings. Sites can rename them in <csrfSettings cookieName="..." formFieldName="..." />. Mandiant also found a setter bug: if <csrfSettings> is missing from Web.config, the DetectionResult setter overwrites the fallback FormFieldName with the string "RaiseException", so on those sites the payload goes in a field called RaiseException.
The code runs inside Deserialize() as the application pool identity. Then the module rejects the request. With detectionResult="Redirect" it sends a 302 to the configured error page. With the default RaiseException it throws PotentialCsrfException, which becomes a 302 to customErrors defaultRedirect or a 500 when custom errors are off. The attacker doesn’t need the response, so a failed CSRF check in the logs can be the only trace.
The fix
There is no upstream fix and there won’t be one. The useful change is removing the module. In Web.config:
<configuration>
<configSections>
- <section name="csrfSettings" type="Idunno.AntiCsrf.Configuration.CsrfSettings, Idunno.AntiCsrf" />
</configSections>
- <csrfSettings cookieName="__CSRFCOOKIE" formFieldName="__CSRFTOKEN" detectionResult="RaiseException" />
<system.web>
<httpModules>
- <add name="AntiCSRF" type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf" />
</httpModules>
</system.web>
<system.webServer>
<modules>
- <add name="AntiCSRF" preCondition="managedHandler" type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf" />
</modules>
</system.webServer>
</configuration>
Then delete bin/Idunno.AntiCsrf.dll and the [SuppressCsrfCheck] attributes and ISuppressCsrfCheck references that compile against it. To keep CSRF protection in WebForms, set Page.ViewStateUserKey per user (for example to the session ID) with ViewState MAC on, or call AntiForgery.GetHtml() and AntiForgery.Validate() from System.Web.Helpers. Applications on ASP.NET Core use IAntiforgery.
If you patched your own copy, removing the Deserialize() call and comparing the posted string with the cookie in constant time closes this hole. Mandiant’s guidance is still to retire the module, and the rest of it hasn’t been reviewed since 2008.
IOCs
Mandiant hasn’t published attacker infrastructure, payloads or webshell names. These hashes identify the vulnerable DLL, not malware:
| Build | Size (bytes) | SHA-256 |
|---|---|---|
Idunno.AntiCsrf.dll 0.9.1.0, official 2008 release | 69,632 | da1efcfed182597ee946a9ef2895dfdfeab2bdff16855aeef01656d8158ead06 |
| Rebuild of the 0.9.1 Beta source, Release | 69,632 | c5c994891783453ae85f3ef8efb48592b7c560aeb56f531ee9ea5736518246eb |
| Rebuild of the 0.9.1 Beta source, Debug | 70,144 | aa7bbad4a7ebc38519955ac65517716569508ee4f61fc2f1276086940501e9bf |
MD5 for the official build is dba68f9a091242b70b31f12caf90fdf3 and SHA-1 is 61c3b6250dd83b2ab018d01975b9123e09c0843f. Builds you compiled yourself will hash differently, so search by name too.
Behavioural signs of exploitation:
- POSTs to
.aspxpages with a short, non-GUID__CSRFCOOKIEvalue (such as1) and a large__CSRFTOKEN(orRaiseException) form field - Those POSTs answered with HTTP 302 or 500 and a high
cs-bytesvalue in IIS logs w3wp.exestartingcmd.exe,powershell.exeor other child processes, or writing new.aspx,.ashxor.dllfiles under the webroot
Detection and remediation
Find the module and the DLL (PowerShell on the IIS host):
Get-ChildItem -Path C:\inetpub, D:\ -Recurse -Include web.config -ErrorAction SilentlyContinue |
Select-String -Pattern 'Idunno\.AntiCsrf|AntiCsrfModule' | Select-Object Path, LineNumber, Line
Get-ChildItem -Path C:\inetpub, D:\ -Recurse -Filter Idunno.AntiCsrf.dll -ErrorAction SilentlyContinue |
Get-FileHash -Algorithm SHA256
# Modules registered at the server level
& "$env:windir\system32\inetsrv\appcmd.exe" list modules | Select-String AntiCsrf
And in source control:
rg -n -i 'Idunno\.AntiCsrf|AntiCsrfModule|SuppressCsrfCheck' --glob '*.{config,cs,vb,csproj,vbproj,aspx}'
Look for exploitation attempts in IIS W3C logs (field positions depend on your log format):
Select-String -Path C:\inetpub\logs\LogFiles\W3SVC*\*.log -Pattern ' POST .*\.aspx .* (302|500) ' |
Where-Object { $_.Line -match '__CSRFCOOKIE=[^;]{0,8}(;|\s|$)' }
Check the webroot for files written since the module went live, and process creation logs (Sysmon event 1 or Security event 4688) for children of w3wp.exe. Then remove the module as shown above and recycle the application pool.
If you find signs of compromise, rotate:
<machineKey>validation and decryption keys. An attacker with them can forge ViewState and authentication cookies even after the module is gone.- Database connection strings and other credentials in
Web.config,applicationHost.configand encrypted config sections - The application pool identity’s password, and any service account or API key the site uses
Timeline
- 2008-12-13: AntiCSRF 0.9.0 Beta uploaded to CodePlex.
- 2008-12-15: 0.9.1 Beta, the last release, uploaded. The project is never updated again.
- 2026-11-04: Mandiant FLARE finishes root-cause analysis during an incident response investigation.
- 2026-11-11: Mandiant starts CVE assignment as CNA, since there’s no maintainer to notify.
- 2026-11-18: Mandiant publishes MNDT-2026-0048 and CVE-2026-131914 (CVSS 4.0 9.3), reporting exploitation in the wild.
- 2026-11-23: The Hacker News covers the advisory. EPSS is 0.0061; the CVE isn’t in CISA KEV and no indicators have been released.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- Mandiant MNDT-2026-0048: Idunno.AntiCsrf insecure deserialization (CVE-2026-131914)
- CVE-2026-131914 record
- The Hacker News: Hackers exploit critical ASP.NET anti-CSRF library flaw allowing unauthenticated RCE
- CodePlex Archive: AntiCSRF (source and releases)
- Wayback Machine: anticsrf.codeplex.com project page (January 2010)
- Microsoft Learn: ObjectStateFormatter class