Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
With inline CRL fetching enabled, wolfSSL sends an HTTP GET to the host and port named in a certificate's CRL distribution point and applies no check to the destination. A certificate that the verifier accepts can direct that request at loopback, link-local or private addresses reachable from the verifier.
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.
During the TLS handshake, wolfSSL compares the configured host name with the peer certificate using matching flags fixed at zero. Host flags set with X509_VERIFY_PARAM_set_hostflags, such as the no-wildcards flag, are never read on this path, so a certificate with a wildcard name is accepted for a host name the application asked to match literally.
wolfSSL_X509_VERIFY_PARAM_inherit copies the host-matching flags only inside the branch that copies the host name. When the source parameter carries flags such as the no-wildcards flag but no host name, the flags are dropped without an error, and store-side host name verification then accepts wildcard certificate names the application asked to reject.
A TLS 1.2 client that requests ocsp_multi stapling defers revocation checking of chain CA certificates to the CertificateStatus message. The handler for that message requires a stapled response for the leaf only, then adds every pending chain CA to the certificate manager whether or not a response for it arrived.
When the server answers a client's OCSP stapling request, wolfSSL turns off its own OCSP and CRL lookups for the leaf certificate and relies on the staple. A missing or zero-length staple is then accepted unless must-staple is set, so a server can complete the handshake with a leaf certificate that had no revocation check.
For a client that requests OCSP stapling, wolfSSL replaces a failed CRL check on a chain CA certificate with success unless the CRL explicitly lists the certificate as revoked. The staple that is expected to cover the certificate is never required, so a missing or stale CRL for an intermediate no longer fails the handshake.
In a default build the certificate manager starts with minimum CA key sizes of 1024 bits for RSA and 224 bits for ECC. AddCA rejects only keys below those floors, so a 1024-bit RSA CA certificate loaded with verification enabled is installed as a trusted signer. Stronger floors exist but are opt-in.
ProcessPeerCertCheckKey compares the public key size of each certificate in a peer's chain with the connection's minimum. In a default build that minimum is 1024 bits for RSA and 224 bits for ECC, so a 1024-bit RSA certificate that chains to a trusted root is accepted and the peer is authenticated at about 80-bit strength.
When a TLS 1.2 server omits the CertificateStatus message, the wolfSSL client runs a fallback OCSP lookup for the leaf certificate only and returns its failure only if OCSP or must-staple is enabled on the certificate manager. A client that requires CRL checking, has OCSP disabled and still requests stapling completes the handshake with no revocation check on the leaf.
The hash-directory fallback in LoadCertByIssuer checks that the issuer-hash file exists and then opens the same path again by name to load it as a trusted signer. A local process that can write to the directory can replace the file between the check and the open.
When CA certificates are loaded from a directory, wolfssl_ctx_load_path accepts entries that were regular files at listing time and later opens each by name. A local process with write access to the directory can replace an entry between the check and the open, and the substituted content is installed as a trusted CA.
// No embargoed advisories.