{"answers":{"affected":"2 open source packages ship an affected version, including born05/craft-twofactorauthentication. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-5658 in the wild and no public exploit code.","fix":"Upgrade born05/craft-twofactorauthentication to 3.3.4 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-5658 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-5658 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- born05/craft-twofactorauthentication (Packagist): affected all versions; fixed in 3.3.4\n- born05/craft-twofactorauthentication (Packagist): affected all versions; fixed in 3.3.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-5658/ (Markdown: https://insights.sbomify.com/CVE-2024-5658/index.md)","id":"CVE-2024-5658","markdown":"https://insights.sbomify.com/CVE-2024-5658/index.md","name":"CVE-2024-5658","record":{"aliases":["GHSA-96qm-hwhp-2rm8"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"CraftCMS 2FA plugin","requires_auth":"low_privilege","summary":"Attackers can reuse TOTP tokens to bypass two-factor authentication and take over accounts in the CraftCMS Two-Factor Authentication plugin.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"sba-research","cpe":[{"product":"two-factor_authentication","vendor":"born05"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-303","name":"Incorrect Implementation of Authentication Algorithm"}],"description":"The CraftCMS plugin Two-Factor Authentication through 3.3.3 allows reuse of TOTP tokens multiple times within the validity period.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","id":"CVE-2024-5658","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"auth_bypass","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Rockwell Automation Multicast Request Causes major nonrecoverable fault on Select Controllers","id":"CVE-2024-5659"},"packages":[{"ecosystem":"Packagist","fixed":["3.3.4"],"introduced":["0"],"last_affected":[],"package":"born05/craft-twofactorauthentication","purl":null,"source":"GHSA-96qm-hwhp-2rm8"},{"ecosystem":"Packagist","fixed":["3.3.4"],"introduced":["0"],"last_affected":[],"package":"born05/craft-twofactorauthentication","purl":"pkg:composer/born05/craft-twofactorauthentication","source":"GHSA-96qm-hwhp-2rm8"}],"prev":{"headline":"CraftCMS Plugin - Two-Factor Authentication - Password Hash Disclosure","id":"CVE-2024-5657"},"products":["CraftCMS Plugin - Two-Factor Authentication"],"published":"2024-06-06","related":[{"cvss_score":3.7,"headline":"CraftCMS Plugin - Two-Factor Authentication - Password Hash Disclosure","id":"CVE-2024-5657","kev_date_added":null,"published":"2024-06-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-03","vendors":["Born05"]},"summary":"Attackers can reuse TOTP tokens to bypass two-factor authentication and take over accounts in the CraftCMS Two-Factor Authentication plugin.","url":"https://insights.sbomify.com/CVE-2024-5658/"}