Public Security Advisories
Coordinated vulnerability disclosures from Argus. Findings, impact, and remediation, published in good faith.
On heap-math builds a TLS 1.2 server computes the DHE pre-master secret into a 512-byte buffer (578 with PSK) without checking it against its configured DH prime. A server that uses a prime above 4096 bits writes past the buffer whenever a client completes a DHE key exchange, before the client is authenticated.
On heap-math builds with PSK, a TLS 1.2 server writes the DHE-PSK shared secret at offset 2 of a 578-byte buffer without checking it against its configured DH prime. With a prime above 4096 bits the write passes the end of the buffer on any DHE-PSK ClientKeyExchange, before the pre-shared key is looked up.
A TLS 1.2 DHE-PSK client writes the DH shared secret at offset 2 of a 578-byte buffer (heap-math builds) without checking it against the prime from the unsigned ServerKeyExchange. With wolfSSL's own key generation an oversized prime fails earlier with an error. The write is reachable when a PK callback generates the client's DH key pair.
A wolfSSL TLS 1.2 client tests the server's Diffie-Hellman prime for primality, but the two flags that control the test are set once per object and never re-armed. After one handshake, a client object reused through wolfSSL_clear() accepts any later server prime, including a composite modulus, without the test.
A wolfSSL server sets options.useTicket when a ClientHello carries a session ticket extension and no reset path clears it. On an object reused with wolfSSL_clear(), a later ClientHello with any session ID resumes the retained session and derives keys from a master secret that wolfSSL_clear() zeroed.
In the wolfSSL sniffer, the handshake case of the record loop advances its cursor past the decryption trailer but does not reduce the remaining-bytes count by the same amount. A following handshake message in the same record is then length-checked against a stale count, and the sniffer reads past the end of the heap buffer that holds the decrypted record.
A TLS 1.2 DHE client writes the DH shared secret into a 512-byte buffer (heap-math builds) without checking it against the prime from the ServerKeyExchange. With wolfSSL's own key generation an oversized prime fails earlier with an error. The write is reachable when a PK callback generates the client's DH key pair.
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.
On a resumed TLS 1.2 handshake the wolfSSL client marks the server as authenticated as soon as it has copied the cached master secret. The session records nothing about whether the server certificate was verified when it was created, so a session made without verification resumes on a connection that requires it.
When a server application supplies the master secret through a session-secret callback, the TLS 1.2 resumption code marks the peer as authenticated and returns before the ticket expiry check. An expired ticket that still decrypts completes resumption with the peer-authentication flag set.
// No embargoed advisories.