Overview
Idunno.AntiCsrf provides double-submit cookie validation to protect against CSRF attacks. In versions through 0.9.1 Beta, the component deserializes data from the cookie without sufficient validation, enabling an attacker to supply crafted objects that are deserialized on the server. The vulnerability can be triggered remotely without authentication.
Technical details
The vulnerability stems from insecure deserialization of untrusted data supplied via the double-submit cookie. When the AntiCsrf module processes the cookie, it attempts to deserialize the payload to compare it with a form field value. Because the deserialization routine does not enforce a trusted type whitelist, an attacker can craft a malicious serialized object that, when deserialized, executes arbitrary code. The flaw is present in any ASP.NET application that uses Idunno.AntiCsrf versions up to 0.9.1 Beta.
Impact
Successful exploitation results in arbitrary code execution on the affected web server, potentially allowing the attacker to take control of the host, access sensitive data, or move laterally within the network. Any ASP.NET application that incorporates the vulnerable Idunno.AntiCsrf component is exposed.
Recommended actions
- Patch affected systems to a version that resolves the issue, if one is released.
- Restrict network access to servers running the vulnerable component to trusted sources only.
- Disable or replace the Idunno.AntiCsrf double-submit cookie validation if a patch is not available.
- Monitor application and server logs for unexpected deserialization errors or suspicious object creation events.
Detection
Review ASP.NET server logs and the Idunno.AntiCsrf component logs for deserialization exceptions, unusually large or malformed cookie values, and repeated validation failures. Correlate these events with source IP addresses and alert on patterns indicative of object injection attempts.
Reference: NVD entry for CVE-2026-131914