Skip to content
DoS Disclosed report Advanced

PROTOCOL-LEVEL: Persistent UDP Amplification and Cache Poisoning via Alt-Svc Logic Flaw

A logic flaw in libcurl's Alt-Svc parser lets the persist and max-age attributes from one service definition leak onto another, so an attacker can make a client cache a malicious HTTP/3 route for up to 30 days. The client then sends large UDP QUIC packets to an arbitrary victim address on later visits, acting as a persistent amplifier.

huntsd Follow

Originally disclosed on HackerOne

  • Disclosed after 34 hours

Summary

A structural logic flaw in the libcurl Alt-Svc header parser allows attack attributes (specifically persist and max-age) to "leak" from one service definition to another.

We have successfully chained this logic bug with curl's HTTP/3 (QUIC) support to demonstrate a Persistent UDP Amplification attack. An attacker can force a victim's client to cache a malicious UDP route for up to 30 days (persist=1), turning the client into an unwilling participant in a distributed denial-of-service (DDoS) attack against arbitrary targets.

Affected version

Reproduced on: curl 8.17.0 (and libcurl master branch) Platform: Linux/Generic (Issue is cross-platform)

Steps To Reproduce

  1. Setup Malicious Server: Host an HTTP/HTTPS server that returns the following header: Alt-Svc: h3="<VICTIM_IP>:12345", h2=":443"; ma=2592000; persist=1
  2. Trigger (Client Side): Run curl --alt-svc cache.txt https://<ATTACKER_HOST>
    • Logic Flaw: curl correctly parses persist=1 for h2, but incorrectly applies it to h3 as well due to scope leakage in lib/altsvc.c.
  3. Verify Persistence:
    • Inspect cache.txt. You will see the h3 entry for <VICTIM_IP> has the persistence flag set and a 30-day expiry.
  4. Verify Attack:
    • Kill the server/client.
    • Run curl https://<ATTACKER_HOST> again (simulating a future visit).
    • curl will immediately send a 1200-byte UDP QUIC Initial packet to <VICTIM_IP>:12345.

Supporting Material

  • This utilizes a "Confused Deputy" amplification vector (Factor ~30x).
  • Privacy Impact: The persistence flag allows "Server-Side Super Cookies" that track users across network changes.

Impact

Summary

This vulnerability transforms libcurl clients into a Persistent Botnet for UDP Amplification attacks.

  1. DDoS Amplification: By injecting a malicious QUIC route, an attacker can designate any IP address as a target. Every victim who visits the attacker's site once becomes a permanent amplifier, sending heavy UDP traffic to the target on every subsequent visit.
  2. Privacy Violation: The logic bug allows attackers to force persist=1 on routes that should be ephemeral, enabling long-term user tracking that persists across network changes (bypassing standard anonymity protections).

The original report as published on HackerOne, by huntsd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 the Alt-Svc parser applies attributes such as persist and max-age to the wrong service entry because it does not reset per-entry state between definitions.

Impact

Clients visiting the attacker's site could become long-lived amplifiers sending UDP traffic to an arbitrary target, and the persistence flag could enable long-term tracking across network changes.

What the attacker needed

Victim uses curl with alt-svc cache enabled; victim visits attacker-controlled host; curl built with HTTP/3 support

How it was found

  1. Host a server that returns an Alt-Svc header defining an h3 route to the victim address and an h2 route with persist and max-age set.
  2. Run curl with an alt-svc cache file against the attacker host.
  3. Inspect the cache file to confirm the h3 entry for the victim has the persistence flag and a 30-day expiry.
  4. Stop the server and client, then run curl against the attacker host again.
  5. Observe curl send a 1200-byte UDP QUIC Initial packet to the victim address.

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.

Alt-Svc is a header a server uses to tell a browser or client about alternative ways to reach the same site, such as a newer protocol. The client stores these routes in a cache file. Here the parser mixed up settings between two routes, so a route the attacker chose was saved as long-lived and then used to send traffic to someone else.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from curl

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.