Understanding the Worst .NET Vulnerability
ASP.NET Core's Kestrel server parsed chunk extensions leniently, treating a lone line-feed as a valid terminator, so a malformed chunked request could be interpreted differently by a front-end proxy and the server. An attacker could then smuggle a hidden request past the proxy, potentially reaching endpoints the proxy would block or impersonating another user.
andrewlock.net
Published on andrewlock.net
I admit, that's a very click-baity headline, but Microsoft have given the vulnerability a CVSS score of 9.9, their highest ever. Time to panic, right?
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
Root cause
Likely the server's chunk-extension parser skipped bytes until it found a carriage return and line feed, accepting a lone line-feed as a terminator instead of rejecting the malformed header.
Impact
Depending on how the application is built, a smuggled request could bypass proxy authentication or access controls, poison caches, or capture other users' requests; the text notes the effect is application specific.
What the attacker needed
A front-end proxy or proxy-like parsing; ability to send crafted chunked requests
The fix
The vulnerability was fixed in patched .NET releases, and the text advises patching all supported versions.
How it was found
- Send a chunked request whose chunk extension ends with a lone line-feed instead of a proper line ending
- The proxy parses the request one way and forwards it to the server
- The server parses the chunk header differently and treats the remainder as a second request
- The smuggled request reaches an endpoint such as an admin path that the proxy would normally block
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.
When a request passes through a front-end proxy to a web server, both must agree on where one request ends and the next begins. Here they disagreed about a malformed chunked request, so the proxy saw one request while the server saw two. The hidden second request slips past whatever checks the proxy performs.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.