Malformed ECParameters causes infinite loop
OpenSSL enters an infinite loop when processing a specially malformed ECParameters structure with a binary polynomial field. An attacker could cause denial of service against systems that process public keys, certificate requests, or certificates, including TLS clients and servers with client authentication.
- Fixed in 19 days
- Paid in 19 days
- Disclosed after under an hour
Malformed ECParameters causes infinite loop (CVE-2015-1788)
Severity: Moderate
When processing an ECParameters structure OpenSSL enters an infinite loop if the curve specified is over a specially malformed binary polynomial field.
This can be used to perform denial of service against any system which processes public keys, certificate requests or certificates. This includes TLS clients and TLS servers with client authentication enabled.
This issue affects OpenSSL versions: 1.0.2 and 1.0.1. Recent 1.0.0 and 0.9.8 versions are not affected. 1.0.0d and 0.9.8r and below are affected.
OpenSSL 1.0.2 users should upgrade to 1.0.2b OpenSSL 1.0.1 users should upgrade to 1.0.1n OpenSSL 1.0.0d (and below) users should upgrade to 1.0.0s OpenSSL 0.9.8r (and below) users should upgrade to 0.9.8zg
This issue was reported to OpenSSL on 6th April 2015 by Joseph Birr-Pixton. The fix was developed by Andy Polyakov of the OpenSSL development team.
http://jbp.io/2015/06/11/cve-2015-1788-openssl-binpoly-hang/
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 code that parses elliptic curve parameters does not validate the binary polynomial field properly, so a malformed curve leads to a loop that never terminates.
Impact
An attacker could cause denial of service against any system that processes public keys, certificate requests, or certificates, including TLS clients and TLS servers with client authentication enabled.
What the attacker needed
Attacker can supply a malformed certificate or key; target processes public keys or certificates
The fix
The issue was fixed in OpenSSL 1.0.2b, 1.0.1n, 1.0.0s, and 0.9.8zg; users should upgrade to those versions.
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.
OpenSSL is a widely used library that handles secure connections. A malformed input could make it hang forever, so a service using it stops responding. This is a denial-of-service bug: the attacker does not steal data, they just make the system unavailable.
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.