CVE-2024-5658: Born05/craft twofactorauthentication Improper Authentication Vulnerability
MODERATECVE-2024-5658 is a MODERATE (CVSS 4.8) improper authentication vulnerability (CWE-287: Improper Authentication) affecting Born05/craft twofactorauthentication libraries in the Packagist ecosystem. The issue involves improper authentication in craftcms two factor authentication plugin. Remediation is available by upgrading affected packages to version 3.3.4.
CVE-2024-5658 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2024-5658
To remediate this vulnerability, upgrade all affected Born05/craft twofactorauthentication dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade born05/craft-twofactorauthentication to 3.3.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for born05/craft-twofactorauthentication
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-5658, inspect your project dependencies for Born05/craft twofactorauthentication:
inspect dependencies for born05/craft-twofactorauthentication
Analyze the terminal output to locate any version of Born05/craft twofactorauthentication in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Born05/craft twofactorauthentication, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-5658 Affected Born05/craft twofactorauthentication Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
born05/craft-twofactorauthentication
|
Packagist |
< 3.3.4
|
3.3.4
|
References
Frequently Asked Questions
What is CVE-2024-5658?
Which Born05/craft twofactorauthentication versions are affected?
What version fixes CVE-2024-5658?
Is born05/craft-twofactorauthentication affected?
What is the CVSS score of CVE-2024-5658?
What CWE is associated with CVE-2024-5658?
How can I check Packagist dependencies for CVE-2024-5658?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-96qm-hwhp-2rm8",
"modified" : "2024-06-10T20:21:44Z",
"published" : "2024-06-06T12:30:36Z",
"aliases" : [ "CVE-2024-5658" ],
"summary" : "Improper Authentication in CraftCMS two factor authentication plugin",
"details" : "The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "born05/craft-twofactorauthentication"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5658"
}, {
"type" : "WEB",
"url" : "https://github.com/born05/craft-twofactorauthentication/commit/89d2339463c0f3ee690e707d4bc8501360885289"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/born05/craft-twofactorauthentication"
}, {
"type" : "WEB",
"url" : "https://github.com/born05/craft-twofactorauthentication/releases/tag/3.3.4"
}, {
"type" : "WEB",
"url" : "https://github.com/sbaresearch/advisories/tree/public/2024/SBA-ADV-20240202-02_CraftCMS_Plugin_Two-Factor_Authentication_TOTP_Valid_After_Use"
}, {
"type" : "WEB",
"url" : "https://plugins.craftcms.com/two-factor-authentication?craft4"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/06/06/2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-06-06T19:12:06Z",
"nvd_published_at" : "2024-06-06T11:15:49Z"
}
}