Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

cloudflare/cfssl
master @ e429e72
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
selfsign/selfsign.go: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Attackers could override critical, CA-managed X.509 extensions (such as KeyUsage and BasicConstraints) by supplying malicious ExtraExtensions in Certificate Signing Requests (CSRs). Developers must ensure that extensions are strictly filtered or stripped before calling x509.CreateCertificate.
Signature Bypass: An incorrect variable check led to ignoring the signature validation error returned by csr.CheckSignature(), allowing invalid or unsigned requests to be treated as valid self-signed certificates. Strict compiler or linter enforcement of error handling on signature checks is vital.