The password-reset code verification compares the submitted code to the stored value using PHP's != operator instead of a constant-time comparison function, creating a theoretical timing side-channel on a security-sensitive token comparison.
checkResetPasswordCode() (src/Auth/Models/User.php, ~lines 160-175):
if ($this->reset_code != $resetCode) {
return false;
}
PHP's != on strings short-circuits on the first differing byte, which is a textbook timing side-channel for a security token comparison, versus using hash_equals().
Not exploited live. The login/reset endpoint is protected by a throttle:6,1 rate limit (6 requests/minute/IP, confirmed live on the Login controller), which makes practical timing-based recovery of a 42-character random token computationally infeasible over a real network in any reasonable timeframe. This finding is reported as a defense-in-depth code-quality fix rather than a demonstrated exploit.
Low in practice due to the endpoint's own rate limiting, but a real deviation from secure-coding best practice for comparing security tokens. Worth fixing as a free, one-line change that removes the theoretical gap entirely, in case the rate limit is ever relaxed or bypassed by a future change.
{
"cwe_ids": [
"CWE-208"
],
"github_reviewed": true,
"github_reviewed_at": "2026-11-30T20:55:51Z",
"nvd_published_at": "2026-11-23T23:17:05Z",
"severity": "HIGH"
}