CVE-2024-5657: CraftCMS Two-Factor Authentication Plugin Password Hash Exposure

Summary

06/06/2024
Yes i
Low
3.7

CVE-2024-5657: Password hash exposed in CraftCMS two factor authentication plugin. Affects born05/craft-twofactorauthentication versions >= 3.3.1, < 3.3.4. Fixed in 3.3.4. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

CraftCMS is a popular content management system that allows users to create and manage websites. The Two-Factor Authentication plugin provides an additional layer of security by requiring users to enter a Time-based One-Time Password (TOTP) in addition to their password. This plugin is widely used to enhance the security of CraftCMS installations.

Vulnerability Detail

The CraftCMS Two-Factor Authentication plugin versions 3.3.1, 3.3.2, and 3.3.3 suffer from a vulnerability that exposes the password hash of the currently authenticated user. This occurs when a valid TOTP is submitted. The password hash is a crucial piece of information that should remain confidential, as its exposure can potentially lead to unauthorized access to user accounts and other security breaches.

How To Fix

Minimum fixed version

3.3.4

This is the first release that contains the fix.

composer require born05/craft-twofactorauthentication:3.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading the Two-Factor Authentication plugin to the latest secure version.

Conclusion

The CraftCMS Two-Factor Authentication plugin versions 3.3.1, 3.3.2, and 3.3.3 suffer from a vulnerability that exposes the password hash of the currently authenticated user. It is crucial to upgrade to version 3.3.4 or later to mitigate this vulnerability. For further support and assistance with vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for born05/craft-twofactorauthentication →

Share this vulnerability

FAQ

CraftCMS is a content management system that allows users to create and manage websites.

The Two-Factor Authentication plugin is an add-on for CraftCMS that provides an extra layer of security by requiring users to enter a Time-based One-Time Password (TOTP) in addition to their password.

Versions 3.3.1, 3.3.2, and 3.3.3 of the Two-Factor Authentication plugin are affected by this vulnerability.

This vulnerability exposes the password hash of the currently authenticated user, which can potentially lead to unauthorized access to user accounts and other security breaches.

To fix this vulnerability, it is recommended to upgrade the Two-Factor Authentication plugin to version 3.3.4 or later.

Related vulnerabilities

Recent vulnerabilities recorded for born05/craft-twofactorauthentication.

How To Fix

Minimum fixed version

3.3.4

This is the first release that contains the fix.

composer require born05/craft-twofactorauthentication:3.3.4

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback