# Denial of Service caused by HTTP/2 CONTINUATION Flood

HTTP/2 CONTINUATION flood in Apache Tomcat buffers oversized headers in memory before resetting the stream, causing OOM crash and full availability loss.

- Payout: $4,860
- Severity: high
- Program: Internet Bug Bounty
- Found by (vendor credit): Bartek Nowotarski
- Found by: bart
- Disclosed: 2024-04-22
- CVE: CVE-2024-24549
- Write-up quality: 7/10
- Original: https://hackerone.com/reports/2334401
- Library page: https://bugbountylibrary.com/r/h1%3A2334401
- Tags: area:oss domain:oss impact:dos kind:bounty platform:hackerone sev:high tech:java technique:fuzzing technique:source-review vuln:dos

**Target:** Apache Tomcat HTTP/2 header processing (HPackHuffman decoding)
**Root cause:** When an HTTP/2 request exceeded configured header limits, the stream was not reset until after all headers were processed, so CONTINUATION frames accumulated in memory.
**Steps:**
1. Start Tomcat with HTTP/2 enabled: `docker run -m 800m -d -p 7777:8080 --name tomcat tomcat:latest`
2. Enable HTTP/2 in server.xml and restart container
3. Run exploit: `go run exploit.go -address "[ip]:7777" -connections 50`
4. Exploit sends HEADERS frame then 8 CONTINUATION frames each with 100 random 10-char headers, staying just under limits
5. Leave connection intact, open new connections; repeat until OOM
**How found:** Researcher hypothesized that HEADERS + N CONTINUATION frames are stored in memory and persist when connection is idle/dropped; tested against Docker images and observed memory growth and OOM in HPackHuffman decoding.
**Exploitation:** Attacker opens many connections, each sending HEADERS plus CONTINUATION frames sized just below header limits so server does not send GOAWAY/ENHANCE_YOUR_CALM. Buffered headers accumulate in heap across idle connections, exhausting memory and crashing the JVM with OutOfMemoryError.
**Insight:** Probe HTTP/2 implementations with CONTINUATION frames sized just under configured header limits and without END_HEADERS; the stream-reset ordering bug means limits are checked only after full buffering, so idle connections leak heap.

