Hackers Exploit Critical ASP.NET Anti-CSRF Library Flaw Allowing Unauthenticated RCE
The Idunno.AntiCsrf library deserialises untrusted CSRF form token data without signature verification, allowing an attacker to send a single unauthenticated POST request containing a crafted gadget chain. This can lead to arbitrary remote code execution in the IIS worker process.
[email protected] (The Hacker News) Follow
Published on thehackernews.com
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
A remote attacker could execute arbitrary code in the IIS worker process, resulting in complete compromise of the web application server; active exploitation in the wild has been observed.
What the attacker needed
Target runs ASP.NET WebForms with the library; attacker can send an HTTP POST request; no authentication or valid CSRF token needed
The fix
There is no official patch; the library should be discontinued and replaced with an actively supported anti-CSRF alternative, with WAF rules as a stopgap.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a flaw in an old add-on for ASP.NET websites that was meant to stop cross-site request forgery (CSRF), where another site tricks a logged-in user's browser into sending a request. Instead of safely checking the token, the add-on turned attacker-supplied data back into live objects, and a crafted object can run code on the server. No login or valid token is needed, so anyone who can reach the site can try it.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.