Security context

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

cakephp/utility
5.x @ 98376e5
5
Fixes
0
CVEs
CRITICAL
Peak severity
100.0%
Coverage
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.