+22
−0
+95
−0
+22
−0
Loading
A peer-sent intermediate was accepted as an issuer purely on a matching
subject name and a valid signature -- never checked whether the issuer was
actually a CA, respected its own pathLenConstraint, or was itself still
valid. That let an end-entity certificate (or an expired/over-length CA)
sign a forged leaf and pass verifyPeerChain(). Retrofits basicConstraints
and keyUsage parsing onto x509cert and uses them in the chain walk.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>