Improper Authentication in CraftCMS two factor authentication plugin
The advisory, in context
The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
Earlier releases before 3.3.4
Fixed in 3.3.4
63 explicitly affected versions
0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 1.0.0, 1.0.1, 1.1.0, 2.0.0, 2.0.0-beta, 2.0.0-beta.1, 2.0.0-beta.10, 2.0.0-beta.11, 2.0.0-beta.12, 2.0.0-beta.13, 2.0.0-beta.14, 2.0.0-beta.2, 2.0.0-beta.3, 2.0.0-beta.4, 2.0.0-beta.5, 2.0.0-beta.6, 2.0.0-beta.7, 2.0.0-beta.8, 2.0.0-beta.9, 2.0.1, 2.1.0, 2.1.0-beta.1, 2.1.0-beta.2, 2.1.1, 2.1.2, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.7.0, 2.7.0-beta.1, 2.7.1, 2.7.2, 2.7.3, 2.7.3.1, 2.7.4, 2.8.0, 2.8.1, 2.9.0, 3.0.0, 3.0.0-beta.1, 3.0.1, 3.1.0, 3.2.0, 3.2.1, 3.3.0, 3.3.1, 3.3.2, 3.3.3
View affected-version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.4"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.1",
"0.0.2",
"0.0.3",
"0.0.4",
"0.0.5",
"0.0.6",
"1.0.0",
"1.0.1",
"1.1.0",
"2.0.0",
"2.0.0-beta",
"2.0.0-beta.1",
"2.0.0-beta.10",
"2.0.0-beta.11",
"2.0.0-beta.12",
"2.0.0-beta.13",
"2.0.0-beta.14",
"2.0.0-beta.2",
"2.0.0-beta.3",
"2.0.0-beta.4",
"2.0.0-beta.5",
"2.0.0-beta.6",
"2.0.0-beta.7",
"2.0.0-beta.8",
"2.0.0-beta.9",
"2.0.1",
"2.1.0",
"2.1.0-beta.1",
"2.1.0-beta.2",
"2.1.1",
"2.1.2",
"2.10.0",
"2.10.1",
"2.11.0",
"2.11.1",
"2.2.0",
"2.3.0",
"2.4.0",
"2.5.0",
"2.6.0",
"2.6.1",
"2.6.2",
"2.6.3",
"2.7.0",
"2.7.0-beta.1",
"2.7.1",
"2.7.2",
"2.7.3",
"2.7.3.1",
"2.7.4",
"2.8.0",
"2.8.1",
"2.9.0",
"3.0.0",
"3.0.0-beta.1",
"3.0.1",
"3.1.0",
"3.2.0",
"3.2.1",
"3.3.0",
"3.3.1",
"3.3.2",
"3.3.3"
]
}References
- https://nvd.nist.gov/vuln/detail/CVE-2024-5658
- https://github.com/born05/craft-twofactorauthentication/commit/89d2339463c0f3ee690e707d4bc8501360885289
- https://github.com/born05/craft-twofactorauthentication
- https://github.com/born05/craft-twofactorauthentication/releases/tag/3.3.4
- https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240202-02_CraftCMS_Plugin_Two-Factor_Authentication_TOTP_Valid_After_Use
- https://plugins.craftcms.com/two-factor-authentication?craft4
- http://www.openwall.com/lists/oss-security/2024/06/06/2