Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 14 min read

A Library That Died in 2008 Is Executing Code in w3wp.exe Today

This is the English adaptation of the original Korean analysis at dohyeontech.github.io. On 15 December 2008, a project called Idunno.AntiCsrf published version 0.9.1 Beta on CodePlex. That was the last release. The pro

This is the English adaptation of the original Korean analysis at dohyeontech.github.io.

On 15 December 2008, a project called Idunno.AntiCsrf published version 0.9.1 Beta on CodePlex. That was the last release. The project page was edited for the final time on 18 August 2009, the platform went read-only in November 2017, and no successor appeared. The archived page shows 4,454 downloads and two ratings. It is the last official documentation this library ever had.

Eighteen years later, on 18 November 2026, Mandiant published CVE-2026-131914: CVSS 4.0 9.3, CWE-502, and one sentence in the advisory body that decides everything downstream β€” "Active exploitation in the wild has been observed." The Hacker News covered it on 23 November.

There is nobody to patch this. The CNA wrote it down plainly: defunct upstream project, no maintainer, no vendor fix. What remains is a deletion job β€” and the hard part is that the DLL may be sitting in a bin/ folder somebody populated by pasting a blog post in 2009, absent from every inventory, SBOM, and scanner the organization owns.

1. Why 2008 code still runs in 2026

1.1 What the module was trying to do

Idunno.AntiCsrf implemented double-submit cookie CSRF protection for ASP.NET WebForms. Microsoft's standard guidance at the time was ViewState plus ViewStateUserKey, which requires ViewState to be enabled and some way to identify a user uniquely β€” usually a session ID. On a site with session state turned off, that guidance is unusable. The project's own description states the trade it made:

AntiCSRF does not have these requirements; instead if requires cookies to be enabled on the user's browser and uses a temporary cookie, cleared when the browser is closed, to identify a user and a hidden form field to carry the CSRF token.

One cookie, one hidden field. Installation was a single line in Web.config:

<!-- IIS6 / IIS7 classic mode -->
<system.web>
  <httpModules>
    <add name="AntiCSRF" type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf"/>
  </httpModules>
</system.web>

<!-- IIS7 integrated pipeline -->
<system.webServer>
  <modules>
    <add name="AntiCSRF" type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf"/>
  </modules>
</system.webServer>

One <add> line puts code into every request that application will ever serve. Recompiling the app does not remove it. Patching .NET Framework does not remove it. Upgrading IIS does not remove it.

1.2 Why no inventory ever listed it

A DLL copied into bin/ is not managed by a package manager. This library was never published to NuGet β€” a search of the NuGet index on 24 November 2026 returns zero hits β€” so an SBOM generator walking packages.config and .csproj references will never see it. No vulnerability scanner knew the name Idunno.AntiCsrf until this CVE existed.

Mandiant made this operational point explicitly: organizations that recompiled or customized the source will have different file hashes while retaining the vulnerable sink, so search Web.config and bin/ by name, not by hash. The published fingerprints are these three.

Build provenance Size (bytes) MD5 SHA-256
Idunno.AntiCsrf.dll 0.9.1.0, official 2008 release 69,632 dba68f9a091242b70b31f12caf90fdf3 da1efcfed182597ee946a9ef2895dfdfeab2bdff16855aeef01656d8158ead06
Rebuild of CodePlex 0.9.1 Beta source (Release) 69,632 6160ca8df91abd964c93ea98216e81f9 c5c994891783453ae85f3ef8efb48592b7c560aeb56f531ee9ea5736518246eb
Rebuild of CodePlex 0.9.1 Beta source (Debug) 70,144 48acb50c210ede14de69efaf035465ff aa7bbad4a7ebc38519955ac65517716569508ee4f61fc2f1276086940501e9bf

Two Release builds of the same source, same size, different hashes. That is the whole reason hash-based hunting is a secondary control here.

1.3 What actually gets compromised

The code runs inside w3wp.exe, the IIS worker process. That process holds the application's entire trust boundary: the <machineKey> that signs forms-authentication tickets and ViewState, database connection strings, third-party API credentials, and whatever filesystem permissions the app pool identity has accumulated. Mandiant's impact statement is precise about the scope.

execute arbitrary code in the context of the IIS worker process (w3wp.exe), resulting in complete compromise of the web application server.

The requirements are minimal. No authentication, no valid CSRF token, no user interaction. One POST.

2. Root cause: after authentication, before validation

2.1 Where the module hooks in

AntiCsrfModule.Init subscribes to two pipeline events, PreSendRequestHeaders and PreRequestHandlerExecute. The advisory lays out the resulting order:

Init β†’ PreRequestHandlerExecute β†’ PageLoad β†’ PagePreRender β†’ PreSendRequestHeaders

PreRequestHandlerExecute fires before IHttpHandler.ProcessRequest, which for WebForms is the method that runs PreInit, Init and Page_Load. At that moment the module attaches its own Load and PreRender handlers to every Page instance. The module's PageLoad therefore executes before whatever Page_Load the developer wrote.

That single ordering fact defines the vulnerability. AuthenticateRequest and AuthorizeRequest still run earlier, but they do not stop requests that are allowed to be anonymous. Any anonymously reachable .aspx page arrives at this point, and the module acts first. The advisory states the exposure:

any anonymously reachable .aspx page or any page relying on application-level session checks inside Page_Load (and neither implementing ISuppressCsrfCheck nor decorated with [SuppressCsrfCheck]) exposes the deserialization sink on POSTβ€”even if the page contains no <form runat="server">.

Three things follow. Session checks inside Page_Load are not a defense, because deserialization finishes before that code runs. Pages with no form at all are still exposed, because they are still Page handlers. And the only pages excluded are those that opted out with ISuppressCsrfCheck or [SuppressCsrfCheck] β€” meaning every WebForms page that never opted out is a candidate.

2.2 The sink

The following is pseudocode reconstructed from Mandiant's description, not the original source.

// PreRequestHandlerExecute: attach hooks to every Page handler
void PreRequestHandlerExecute(object sender, EventArgs e)
{
    var page = HttpContext.Current.Handler as Page;
    if (page == null) return;
    if (page is ISuppressCsrfCheck) return;

    page.Load      += PageLoad;
    page.PreRender += PagePreRender;
}

// Runs before the developer's Page_Load
void PageLoad(object sender, EventArgs e)
{
    var req = HttpContext.Current.Request;
    if (!req.HttpMethod.Equals("POST")) return;

    var cookie = req.Cookies[CsrfSettings.Settings.CookieName];   // default __CSRFCOOKIE
    var field  = req.Form[CsrfSettings.Settings.FormFieldName];   // default __CSRFTOKEN

    if (cookie == null || string.IsNullOrEmpty(cookie.Value)) return;
    if (string.IsNullOrEmpty(field)) return;

    // No GUID check on the cookie. No signature check on anything.
    object token = new ObjectStateFormatter().Deserialize(field); // ← the sink

    if (!Equals(token, cookie.Value))
        RaiseError();   // 302 or 500. Too late.
}

The decisive property is what ObjectStateFormatter is. It is the serializer used for ViewState, and it does no MAC, signing, or encryption of its own. ViewState is unforgeable not because of the formatter but because Page wraps it: Page.LoadPageStateFromPersistenceMedium verifies a MAC computed with machineKey and silently discards the payload when it fails.

The module never applies that wrapper. The parameterless new ObjectStateFormatter() leaves no point where machineKey participates, and no SerializationBinder restriction is installed. The submitted string is base64-decoded and handed straight to the .NET binary deserialization path β€” in the advisory's words, "zero MAC, signature, encryption, or machineKey validation and enforces no SerializationBinder restrictions."

Put plainly: the code passed attacker input to a function that reconstructs arbitrary objects, while believing it was calling a function that reads a token string. The developer wanted one GUID. The format they used to carry it can express any .NET object graph. The Equals(token, cookie.Value) comparison looks like a guard, but it sits after deserialization; by the time it is evaluated, the attacker's work is finished.

2.3 Where validation ended up

The advisory mentions GuidTryParse. The module does own code that validates the cookie as a GUID. It lives in PagePreRender only.

That placement makes sense from the renderer's perspective: with no cookie, the module generates Guid.NewGuid().ToString("D") and emits it via Set-Cookie; with one, it reuses the value after a format check to build the hidden field. But no equivalent check exists in PreRequestHandlerExecute, the one place attacker input arrives. Validation exists at one of the two points that need it, and the point it protects is not the point that gets attacked. Nobody touched that asymmetry in eighteen years.

There is a second oddity worth recording. The advisory notes that if the <csrfSettings> section is omitted entirely, a setter bug in CsrfSettings.DetectionResult overwrites the fallback FormFieldName value with the literal string "RaiseException". Read operationally, that means deployments without the config section do not read __CSRFTOKEN β€” they read a field named RaiseException. (That is my reading of the advisory text; Mandiant does not state that exploitation used that field name.) A scanner probing only the documented default would walk past such a host, while anyone who reads the code changes one string.

3. Exploit mechanics: one request, and a success that looks like a failure

3.1 The request

Three conditions: a path handled by Page, a form body, a non-empty cookie. Nothing else.

POST /Default.aspx HTTP/1.1
Host: target.example
Content-Type: application/x-www-form-urlencoded
Cookie: __CSRFCOOKIE=1

__CSRFTOKEN=<Base64 of an ObjectStateFormatter-serialized .NET gadget chain>

The cookie value 1 deserves attention. GuidTryParse is not called on this path, so the value does not need to look like a GUID; anything non-empty passes. Token equality is also irrelevant, because the comparison happens after Deserialize returns.

The tooling is public. ysoserial.net emits gadgets such as TypeConfuseDelegate as BinaryFormatter, NetDataContractSerializer, or LosFormatter payloads. It dropped the ObjectStateFormatter formatter in release 1.33, and the release notes say why:

ObjectStateFormatter formatter has been removed (LosFormatter without a key == ObjectStateFormatter)

A keyless LosFormatter payload is this sink's input format. The primitives are a SortedSet<string> carrying a ComparisonComparer<string>, whose Comparison<string> delegate is forged through DelegateSerializationHolder so that the second entry in the invocation list points at Process.Start(string, string). Deserialization sorts the set, the comparer is invoked, and Process.Start runs. Deserialization stops being object construction and becomes code execution.

3.2 Detonation leaves a 500

Here is the operational trap. The line after Deserialize is unconditionally RaiseError. With detectionResult="Redirect" it redirects to errorPage with 302; with RaiseException it throws PotentialCsrfException, which becomes a 302 to defaultRedirect when customErrors is on, or a 500 with a stack trace when mode="Off".

detectionResult customErrors Response What actually happened
Redirect any 302 β†’ errorPage Code ran, then redirect
RaiseException On / RemoteOnly 302 β†’ defaultRedirect Code ran, exception handled
RaiseException Off 500 + stack trace Code ran, exception surfaced

Success and failure share a status code. A defender sees 302 or 500 either way, which means the status code cannot answer "was I exploited." That answer has to come from the process and filesystem side. The same property helps detection, though: a legitimate form submission should never fall out of this module as a 302 or 500 on a correctly configured application.

3.3 What to hunt

Written against IIS W3C logs. cs-bytes and cs(Cookie) are not default fields, so availability varies by logging configuration.

Signal Field Reading
POST to .aspx returning 302/500 cs-method, cs-uri-stem, sc-status The module refusing a request. Should not occur in normal traffic
cs-bytes well above the path's form baseline cs-bytes Gadget blobs run to several KB or more, but real forms are large too β€” per-endpoint baselining required
__CSRFCOOKIE that is not a GUID cs(Cookie) Legitimate cookies are always Guid.NewGuid() output. Any exception is a signal
Missing Referer, default or empty User-Agent cs(Referer), cs(User-Agent) Script, not browser
w3wp.exe spawning a child process Sysmon Event ID 1, parent image w3wp.exe Evidence of execution. A web server spawning cmd.exe or powershell.exe is rare
Unknown files in the webroot, extra DLLs in bin/ File integrity Web shell stage

The first four catch attempts; only the fifth catches execution. If Sysmon is not deployed, substitute Windows Security event 4688 (process creation with command line, where audit policy enables it) filtered on the app pool identity.

3.4 If execution is suspected

Mandiant's post-compromise guidance is to rotate every secret stored in Web.config and applicationHost.config β€” <machineKey> keys, encryption keys, database credentials β€” and inspect webroots for unauthorized files. Practitioners should add:

  • Rotating <machineKey> invalidates forms-authentication tickets and ViewState for every user. Plan it as a maintenance window, not a hotfix.
  • Extra DLLs in bin/, unknown entries in <modules> and <handlers>, and changes to the server-level module list.
  • Any path where the app pool identity holds write permission. A file dropped there is the web-shell stage.
  • Database accounts and third-party API keys the application uses. Anything the worker process could read should be treated as exposed.

4. Patch analysis: what to do when there is no patch

4.1 No upstream fix exists

There is no diff to analyze. The CNA recorded "defunct upstream project; no vendor or maintainer patch available," and the last release was in 2008. The "patch analysis" section of this report therefore becomes a removal procedure. Ownership of this vulnerability lies with whoever placed the DLL in bin/ β€” not with a vendor.

Inventory comes first. Two checks cover it:

# the assembly itself
find /path/to/sites -iname "Idunno.AntiCsrf.dll"

# configuration references (httpModules / modules / configSections / csrfSettings)
grep -ril "Idunno.AntiCsrf" /path/to/sites --include="*.config"

On Windows: where /r C:\inetpub Idunno.AntiCsrf.dll and findstr /s /i /m "Idunno.AntiCsrf" *.config. On a server hosting many sites, group the results by application pool β€” removal proceeds one application at a time.

4.2 Removal order

Translating the advisory's remediation into a deployment sequence: do all four steps in one change, then recycle the app pool.

# Action Where If you get it wrong
1 Remove module registration <httpModules> or <system.webServer><modules>: <add name="AntiCSRF" type="Idunno.AntiCsrf.AntiCsrfModule, Idunno.AntiCsrf"/> Leave it and delete only the DLL: every request returns 500
2 Remove the config section <configSections>'s <section name="csrfSettings" .../> and the <csrfSettings .../> element Leaving the section behind fails configuration load and the app will not start
3 Remove code references ISuppressCsrfCheck implementations, [SuppressCsrfCheck] attributes These fail the build, which is the one helpful outcome here
4 Delete the DLL bin/Idunno.AntiCsrf.dll The assembly stays loaded until the app pool recycles

Step 3 announcing itself as a compile error is the only courteous part of this job. Steps 1 and 2 surface only at runtime, so someone has to load a page after deployment rather than trusting the build.

4.3 Replacements

Do not finish with CSRF protection removed. If the original constraints still apply β€” no sessions, no ViewState β€” the options narrow.

Replacement Implementation Prerequisites
System.Web.Helpers.AntiForgery AntiForgery.GetHtml() to mint, AntiForgery.Validate() to verify. Cookie plus form field, signed with machineKey Add a System.Web.WebPages reference; check token lifetime and cookie policy defaults
Page.ViewStateUserKey + MAC'd/encrypted ViewState Mixes a per-user key into the ViewState MAC ViewState enabled and a way to identify the user (session or authentication)
ASP.NET Core IAntiforgery Middleware plus [ValidateAntiForgeryToken] A migration to Core

The third is the right long-term direction and not an afternoon's work. What can be finished today is containment and detection: enumerate anonymously reachable .aspx pages and reduce them, then move authentication for the rest to the pipeline level (<authorization> or URL rewrite). A session check inside Page_Load does nothing against this bug.

SameSite cookies and eliminating side effects from GET are complementary CSRF controls, not replacements. The project's own documentation was candid about its limits too β€” "GET requests are not protected with this module" β€” so this was always half a defense.

4.4 Why the scoreboards disagree

Four numbers, one vulnerability:

Source Value What it measures
CVSS 4.0 (CNA: Mandiant) 9.3 Critical, E:A (exploitation confirmed) Threat-informed score from the reporting researcher
NVD CVE-2026-131914 Status Received; 9.3 is the CNA value NVD has not analyzed it yet
CISA SSVC (Coordinator) exploitation: none, automatable: yes, technicalImpact: total Automated triage default
EPSS 0.61% (2026-11-23, 50.4th percentile) Observed exploitation probability
CISA KEV not listed (as of 24 Nov 2026 09:00 KST; catalog 2026.11.23, 1,792 entries) Confirmed exploitation on federal assets

These do not contradict each other; they answer different questions. EPSS reflects how large the target population is, and a library whose distribution ended in 2008 has a small one. SSVC's exploitation: none is an automated default, and KEV simply has not run its course. Only Mandiant's E:A describes the actual state of this campaign.

The asymmetry underneath is worth naming. Defenders find vulnerabilities in asset inventories; attackers find code in repositories. An Idunno.AntiCsrf.dll in bin/ appears in no application list, no SBOM, and no KEV entry β€” but the fact that the file exists is something an attacker can confirm with one request. That reading is mine rather than the advisory's, yet it points at exactly what Mandiant emphasized: search by name, not by hash.

5. Five minutes, today

Scope the work to what fits in one sitting. If the name is not in bin/, this article belongs to someone else.

Check Where If found
DLL present bin/Idunno.AntiCsrf.dll (search by name) Β§4.2 removal
Config reference Web.config: httpModules, modules, configSections, csrfSettings Β§4.2 removal
Code reference ISuppressCsrfCheck, [SuppressCsrfCheck] Remove; a broken build lists what is left
Log signature .aspx POST with 302/500, non-GUID __CSRFCOOKIE, elevated cs-bytes Β§3.4 incident response
Execution evidence w3wp.exe child processes, new files in the webroot Isolate, then rotate credentials

One closing observation. The root-cause analysis in this advisory came out of incident response, not a code review β€” FLARE completed it on 4 November 2026 while investigating a compromise. That is worth keeping in mind the next time an investigation closes: what remains afterward is not only the attacker's footprint, but also the inventory of everything that had been sitting on that server for the last seventeen years.

Primary sources: Mandiant, MNDT-2026-0048 (advisory published 2026-11-18) Β· NVD, CVE-2026-131914 (status Received, 2026-11-19) Β· The Hacker News, "Hackers Exploit Critical ASP.NET Anti-CSRF Library Flaw Allowing Unauthenticated RCE" (Ravie Lakshmanan, 2026-11-23) Β· Internet Archive snapshot of the CodePlex project page (2017-12-23) for the 0.9.1 Beta release date, download count and configuration options Β· ysoserial.net release notes for version 1.33 (ObjectStateFormatter formatter removal) and TypeConfuseDelegateGenerator.cs for supported formatters and gadget mechanics Β· CISA KEV catalog 2026.11.23 (checked 2026-11-24 09:00 KST; CVE not listed) Β· EPSS API, score dated 2026-11-23. Mandiant has not disclosed the exploiting actor, the campaign's scale, or any victim identity, and this article does not speculate about them. The pseudocode in Β§2.2 is reconstructed from advisory prose and is not the original source.

The original Korean version of this report is published at dohyeontech.github.io.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.