MediumGHSA-wmx7-pw49-88jx
Craft CMS Allows TOTP Token To Stay Valid After Use
Affected versions
5.0.0-beta.1 to before 5.2.3 - fixed in 5.2.3Details
Craft CMS 5 allows reuse of TOTP tokens multiple times within the validity period. ### Impact An attacker is able to re-submit a valid TOTP token to establish an authenticated session. This requires that the attacker has knowledge of the victim's credentials. A TOTP token can be used multiple times to establish an authenticated session. [RFC 6238](https://www.rfc-editor.org/rfc/rfc6238) insists that an OTP must not be used more than once. > The verifier MUST NOT accept the second attempt of the OTP after the successful validation has been issued for the first OTP, which ensures one-time on
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-41800
- https://github.com/craftcms/cms/security/advisories/GHSA-wmx7-pw49-88jx
- https://nvd.nist.gov/vuln/detail/CVE-2024-41800
- https://github.com/craftcms/cms/commit/7c790fa5ad5a8cb8016cb6793ec3554c4c079e38
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/5.2.3
- https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240617-01_CraftCMS_TOTP_Valid_After_Use
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected