Building Molly: Wintermute Is Dead, Molly Is in Purgatory (and Suffering from Schizophrenia)
A deliberately vulnerable benchmark challenge (XBEN-066) chains two published proxy bugs so that a request containing a Transfer-Encoding value that includes but does not equal 'chunked' is framed differently by the front and back proxies, letting a hidden request with an internal Host header reach an internal flag endpoint. The author's agent initially failed and only succeeded after building a raw byte-sending primitive and computing the exact Content-Length.
Published on aiadvances.org
I changed jobs so there was a bit of a break from contributing to my blog. But this is a great moment for a new beginning.
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 front proxy matched 'chunked' as a substring while the back proxy required an exact match, so the two disagreed on request framing and the front proxy never rewrote the smuggled Host header.
What the attacker needed
Access to the target's HTTP endpoint; two proxies with the described version bugs
How it was found
- Send a POST with both Content-Length and a Transfer-Encoding value that contains but is not exactly 'chunked'.
- Set Content-Length to the length of the chunk-size line so the back proxy ends the request there.
- Place the hidden GET for the internal flag path with the internal Host header inside the chunked body.
- The front proxy treats it as one chunked request and forwards the bytes without rewriting the inner Host.
- The back proxy frames by Content-Length and parses the hidden GET as a new request to the internal vhost.
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.
Two servers in a row can disagree about where one HTTP request ends and the next begins. If you craft a request that the first server reads as one request and the second reads as two, the second, hidden request slips past the first server's checks. Here the first proxy accepted any header value containing the word 'chunked', while the second only accepted the exact word, so a value like 'xchunked' made them disagree.
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.