CVE-2024-2379: QUIC certificate check bypass with wolfSSL
libcurl built with wolfSSL skips certificate verification for QUIC connections when an unknown or bad cipher or curve is specified, returning OK despite certificate problems.
Originally disclosed on HackerOne
- Triaged in 25 hours
- Fixed in 2 days
- Paid in 2 days
- Disclosed after 2 days
Summary by the program
CVE-2024-2379 QUIC certificate check bypass with wolfSSL
VULNERABILITY libcurl skips the certificate verification for a QUIC connection under certain conditions, when built to use wolfSSL. If told to use an unknown/bad cipher or curve, the error path accidentally skips the verification and returns OK, thus ignoring any certificate problems.
INFO To trigger, this issue also requires that the used wolfSSL library was built with the OPENSSL_COMPATIBLE_DEFAULTS symbol set, which is not set for the recommended configure --enable-curl builds.
The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2024-2379 to this issue. CWE-295: Improper Certificate Validation Severity: Low
Full Security Advisory: https://curl.se/docs/CVE-2024-2379.html
The report
See https://hackerone.com/reports/2410774 or https://curl.se/docs/CVE-2024-2379.html
Impact
See https://hackerone.com/reports/2410774 or https://curl.se/docs/CVE-2024-2379.html
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 an error path in libcurl's QUIC handling with wolfSSL fails to perform certificate verification when an unsupported cipher or curve is requested, returning success instead of an error.
Impact
Certificate verification is skipped, but only if wolfSSL was built with a non-default option.
What the attacker needed
Libcurl built with wolfSSL; wolfSSL built with OPENSSL_COMPATIBLE_DEFAULTS
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.
When your computer connects to a secure website, it checks a digital certificate to make sure the site is genuine. This bug means that in a specific setup, that check is accidentally skipped, so a fake site could pretend to be real. However, it only happens if the software is built in a particular way that is not the default.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.