Skip to content
DoS Disclosed report Intermediate CVE-2016-6304

OCSP Status Request extension unbounded memory growth (CVE-2016-6304)

A malicious client can send an excessively large OCSP Status Request extension and repeatedly request renegotiation, causing unbounded memory growth on the server. This eventually leads to a denial of service through memory exhaustion.

theyarestone Follow

Originally disclosed on HackerOne

  • Fixed in 14 days
  • Paid in 14 days
  • Disclosed after 14 days

Summary by the program

A malicious client can send an excessively large OCSP Status Request extension. If that client continually requests renegotiation, sending a large OCSP Status Request extension each time, then there will be unbounded memory growth on the server. This will eventually lead to a Denial Of Service attack through memory exhaustion. Servers with a default configuration are vulnerable even if they do not support OCSP. Builds using the "no-ocsp" build time option are not affected.

Servers using OpenSSL versions prior to 1.0.1g are not vulnerable in a default configuration, instead only if an application explicitly enables OCSP stapling support.

OpenSSL 1.1.0 users should upgrade to 1.1.0a OpenSSL 1.0.2 users should upgrade to 1.0.2i OpenSSL 1.0.1 users should upgrade to 1.0.1u

This issue was reported to OpenSSL on 29th August 2016 by Shi Lei (Gear Team, Qihoo 360 Inc.). The fix was developed by Matt Caswell of the OpenSSL development team.

The report

A malicious client can send an excessively large OCSP Status Request extension. If that client continually requests renegotiation, sending a large OCSP Status Request extension each time, then there will be unbounded memory growth on the server. This will eventually lead to a Denial Of Service attack through memory exhaustion. Servers with a default configuration are vulnerable even if they do not support OCSP. Builds using the "no-ocsp" build time option are not affected.

The original report as published on HackerOne, by theyarestone. 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 server did not limit the size of the OCSP Status Request extension or the number of renegotiations, so each request added memory that was never freed.

Impact

A malicious client could cause a denial of service through memory exhaustion; servers with a default configuration are vulnerable even if they do not support OCSP, while builds using the no-ocsp option are not affected.

What the attacker needed

Network access to the TLS server; server uses a vulnerable OpenSSL version; server not built with no-ocsp

The fix

The issue was fixed by upgrading to OpenSSL 1.1.0a, 1.0.2i or 1.0.1u.

How it was found

  1. Send an excessively large OCSP Status Request extension to the server.
  2. Continually request renegotiation, sending a large OCSP Status Request extension each time.
  3. Observe unbounded memory growth on the server until it is exhausted.

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 client can send an excessively large OCSP Status Request extension during TLS setup. If it keeps requesting renegotiation and sending a large extension each time, the server's memory grows without bound until it runs out and stops working.

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 theyarestone

View all

7 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.