CVE-2024-5658 CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use

Medium 4.8 Published Updated

Attackers can reuse TOTP tokens to bypass two-factor authentication and take over accounts in the CraftCMS Two-Factor Authentication plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-5658?

CVE-2024-5658 is a medium-severity authentication bypass vulnerability in Born05 CraftCMS Plugin - Two-Factor Authentication, published on 6 Jun 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.

Weakness: CWE-287, CWE-303

Which versions are affected by CVE-2024-5658?

2 open source packages ship an affected version, including born05/craft-twofactorauthentication. It affects 1 product.

PackageAffectedFixed in
born05/craft-twofactorauthentication PackagistAll versions3.3.4
born05/craft-twofactorauthentication PackagistAll versions3.3.4

Products include Born05 Two-Factor Authentication.

How do I fix CVE-2024-5658?

Upgrade born05/craft-twofactorauthentication to 3.3.4 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2024-5658 being exploited?

There is no known exploitation of CVE-2024-5658 in the wild and no public exploit code.

Sources

Also known as GHSA-96qm-hwhp-2rm8.

Is CVE-2024-5658 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free