Security context

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

containers/ocicrypt
main @ c03ceaa
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
crypto/pkcs11: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix 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: Ambiguity in PKCS#11 key resolution allowed operations to proceed even when multiple keys matched the criteria. This could lead to signature verification bypasses or incorrect key usage. The fix requires explicitly rejecting queries that return multiple matching objects.
Weak Cryptographic Algorithm: RSA-OAEP encryption helper functions historically defaulted to the insecure SHA-1 hashing algorithm. The component was hardened by upgrading the default hash algorithm to SHA-256 to mitigate collision and forgery risks.
Hardcoded Credentials: The SoftHSM token initialization script contained a hardcoded PIN ('1234') rather than dynamically consuming configured environment variables, potentially exposing the cryptographic token to unauthorized access in deployed environments.