Highlights
Timing Attack: 2 prior fixes. Scrutinize any change in this area.
Security.php: most-fixed (4 issues). 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.
Authentication Bypass: HMAC verification was bypassable in decrypt because it was performed in engine classes; centralizing it in Security::decrypt ensures it always runs.
Timing Attack: Non-constant-time HMAC comparison in decrypt enabled MAC forgery via timing side-channel.
Cryptographic Weakness: Key derivation used a weak hash-based method; HKDF with separate encryption/auth keys strengthens it.