Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
The built-in OCSP and CRL lookup callbacks connect to the URL named in the peer's certificate and read the HTTP response with no time limit. A responder that accepts the connection and then stops sending keeps the verifying thread blocked inside the handshake call indefinitely.
The opt-in OCSP responder screen resolves the responder host name, checks the addresses and discards them. The connect that follows resolves the name again and uses the first answer. A name whose DNS answers change between the two lookups passes the screen and receives the OCSP request at a loopback, link-local or private address.
The wolfSSL HTTP request builder rejects CR and LF in the path and host but not in the method, the Content-Type value or the extra headers. An application that forwards untrusted data into the exported wolfIO_HttpBuildRequest can be made to send injected request lines and headers.
In builds with the opt-in OCSP responder screen, IPv6 enabled and no getaddrinfo, the screen checks the resolver's IPv4 answer while the connect routine copies the same four bytes into the top of an IPv6 address and dials that. The destination is never the one that was checked. No blocked range becomes reachable; OCSP lookups by host name go to the wrong address and fail.
The OpenSSL-compatible OCSP request API has no timeout of its own and is non-blocking only if the caller's BIO is. With a blocking socket BIO, wolfSSL_OCSP_REQ_CTX_nbio blocks in the write and then in the HTTP response loops. A responder that sends a partial header and goes silent holds the calling thread indefinitely.
// No embargoed advisories.