Post

The issues are: - Postgres client never checked the certificate hostname: any valid cert from any CA passed for any host. - NODE_TLS_REJECT_UNAUTHORIZED=0 disabled a server's client-certificate requirement. - secureConnect reported authorized === true for a peer that failed the key proof.

- WebSocket client never called tls.checkServerIdentity; a pin returning Error was ignored. - tls: [...] passed to Bun.listen/Bun.connect produced a plaintext listener, silently. - `https.createServer()` without a usable key/cert answered plain HTTP.

- PGSSLMODE=verify-* silently dropped when a TLS_* URL variable was also present. - Revoked client certificates accepted; the mTLS server never saw a CRL. - Use-after-free from destroy() in ALPNCallback. - Heap-use-after-free in the stream TLS engine (ASAN, found by audit).

0 reposts0 likes

- TLS write() silently lost 16 KB while another socket on the loop was stalled. - SIGABRT in fetch through an environment proxy with a Bun.file() body. - Different client certs/CAs shared one `https.Agent` socket and session. - Client certificate still sent to a server the client had refused.