TastyIgniterにパスワード再設定コードの照合で応答時間から情報が漏れる脆弱性
Summary
TastyIgniterのパスワード再設定コードの照合処理に、応答時間の違いから再設定コードを推測されるおそれのある脆弱性が見つかりました。4.2.0より前のバージョンが対象で、4.2.0で修正されています。公開された情報では悪用の確認はされておらず、再設定の試行は1分に6回までに制限されています。ただし、影響を受けるおそれがあるため、4.2.0以降への更新を急いでください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
TastyIgniterのパスワード再設定コードの照合処理に、応答時間の違いから再設定コードを推測されるおそれのある脆弱性が見つかりました。4.2.0より前のバージョンが対象で、4.2.0で修正されています。公開された情報では悪用の確認はされておらず、再設定の試行は1分に6回までに制限されています。ただし、影響を受けるおそれがあるため、4.2.0以降への更新を急いでください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tastyigniterti-ext-user | — | Not listed |
| Packagisttastyigniter/ti-ext-user |
< 4.2.0→ 4.2.0 |
4.2.0 |
| composertastyigniter/ti-ext-user |
< 4.2.0→ 4.2.0 |
4.2.0 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com