curl 8.23.0 keeps sending requests to an HTTP/3 backend after Alt-Svc: clear
curl 8.23.0 kept a cached HTTP/3 alternative route after the origin sent Alt-Svc: clear, so a later request went to a separate H3 backend instead of the origin. In the local test, a signed token sent to that backend was replayed through the normal origin to read one synthetic customer record.
- Disclosed after 36 hours
In an owned local test of curl 8.23.0 with HTTP/3 and persistent --alt-svc, an HTTPS origin advertised an H3 alternative; after its operator stopped advertising H3, the trusted edge returned Alt-Svc: clear on the H3 route.
Curl retained the HTTP/2-to-HTTP/3 cache entry and sent a later request to the separate H3 backend, whereas a matching HTTP/2-to-HTTP/2 control cleared its entry and sent the request to the origin.
A signed Keycloak token issued after withdrawal went to that H3 backend and was replayed through the normal HTTPS origin to retrieve one synthetic customer record from a protected local API.
The unmodified Nordstjernen Sol 1.0.44 Linux application reproduced the stale H3 route with a synthetic session cookie under its NS_FORCE_HTTP3=1 setting and a locally substituted curl 8.23.0 shared library; its HTTP/2 control used the origin.
Impact
Nordstjernen uses HTTP/2 by default, and although its macOS package bundles curl 8.23.0, we have not run that package. A live attacker controlling an H3 backend that the trusted edge continues forwarding to after withdrawal could capture and use valid later credentials; no such live deployment has been identified.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely curl did not remove its cached HTTP/3 alternative when it received Alt-Svc: clear, unlike the HTTP/2 control case.
Impact
A live attacker controlling an H3 backend still forwarded to after withdrawal could capture and use valid later credentials, though no such live deployment was identified and the macOS package was not tested.
What the attacker needed
Local test setup; curl 8.23.0 with HTTP/3; persistent alt-svc cache; attacker controls H3 backend
How it was found
- Set up a local HTTPS origin that advertises an HTTP/3 alternative.
- Stop advertising HTTP/3 and have the edge return Alt-Svc: clear on the H3 route.
- Run curl 8.23.0 with HTTP/3 and a persistent alt-svc cache.
- Send a later request and observe it going to the separate H3 backend.
- Compare with an HTTP/2-to-HTTP/2 control, which cleared its entry.
- Replay the token through the normal origin to fetch one synthetic record.
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 report has not been written yet. The Original tab links to the source.
When a website says it can also be reached over a newer, faster version of the web protocol, a client like curl remembers that for next time. The site can later say 'forget that', but here curl ignored the instruction and kept using the old route. That meant a login token went to a server the site no longer wanted it sent to.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.