7.4high
TastyIgniter: Password reset code comparison is not constant-time (timing side-channel)
- Severity
- 7.4high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-46f8-hgf3-9p6m
Description
TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. Prior to 4.2.0, checkResetPasswordCode() in src/Auth/Models/User.php compares a submitted reset code with the stored 42-character token using a normal string comparison, which can return after the first differing byte instead of taking constant time. The password-reset flow exposes this comparison to remote requests, but the endpoint is rate-limited to six requests per minute per IP, and the advisory reports no live exploit or practical token-recovery demonstration. Recovering a high-entropy reset code through the constrained timing signal could permit an unauthorized password reset. This issue is fixed in version 4.2.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| tastyigniter ti-ext-user | < 4.2.0 | CVE List |
| tastyigniter/ti-ext-user (Packagist) | before 4.2.0 | GitHub Advisory Database |
All scores
| GitHub_M | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
TastyIgniter is an open-source online ordering, table reservation, and restaurant management system. Prior to 4.2.0, checkResetPasswordCode() in src/Auth/Models/User.php compares a submitted reset code with the stored 42-character token using a normal string comparison, which can return after the first differing byte instead of taking constant time. The password-reset flow exposes this comparison to remote requests, but the endpoint is rate-limited to six requests per minute per IP, and the advisory reports no live exploit or practical token-recovery demonstration. Recovering a high-entropy reset code through the constrained timing signal could permit an unauthorized password reset. This issue is fixed in version 4.2.0.
GitHub Advisory Database
Summary
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.
Details
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().
PoC
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.
Impact
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134023 changed 2026-11-24 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-46f8-hgf3-9p6m changed 2026-11-30 | CC-BY-4.0 |
| NVD | CVE-2026-134023 changed 2026-11-24 | Public domain |