Security context

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

aws/s2n-tls
main @ ba1d678
124
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 30 prior fixes. Scrutinize any change in this area.
tls/s2n_x509_validator.c: most-fixed (10 issues). Treat as high-risk during review.
47 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: Frequent logic and verification bypasses in X509 validation, such as failing to validate certificate usage intents or improperly handling OpenSSL callback return values. Developers must ensure callback validation strictly checks for positive success values.
Side-Channel Attack: Recurring Bleichenbacher-style and timing side-channel vulnerabilities during client key exchange decryption and protocol version checks. Implementations must strictly use constant-time operations and dummy pre-master secret substitution.
Memory Safety: Integer overflows and resizing issues in stuffer/buffer management that can lead to out-of-bounds writes or use-after-free bugs. Resizing operations must include safe addition checks and enforce taint/active-reference tracking.