{"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-5657 in the wild and no public exploit code.","fix":"Upgrade born05/craft-twofactorauthentication to 3.3.4 or later.","what":"CVE-2024-5657 is a low-severity vulnerability in Born05 CraftCMS Plugin - Two-Factor Authentication, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-5657 and fix it if it is affected.\n\nWhat it is: CVE-2024-5657 is a low-severity vulnerability in Born05 CraftCMS Plugin - Two-Factor Authentication, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-5657 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- born05/craft-twofactorauthentication (Packagist): affected from 3.3.1; fixed in 3.3.4\n- born05/craft-twofactorauthentication (Packagist): affected from 3.3.1; 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-5657/ (Markdown: https://insights.sbomify.com/CVE-2024-5657/index.md)","id":"CVE-2024-5657","markdown":"https://insights.sbomify.com/CVE-2024-5657/index.md","name":"CVE-2024-5657","record":{"aliases":["GHSA-3p4x-grpm-xw58"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"CraftCMS 2FA plugin","requires_auth":"none","summary":"An attacker can obtain the authenticated user's password hash by submitting a valid TOTP code in the CraftCMS Two-Factor Authentication plugin.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"sba-research","cpe":[{"product":"two-factor_authentication","vendor":"born05"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-499","name":"Serializable Class Containing Sensitive Data"}],"description":"The CraftCMS plugin Two-Factor Authentication in versions 3.3.1, 3.3.2 and 3.3.3 discloses the password hash of the currently authenticated user after submitting a valid TOTP.","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 - Password Hash Disclosure","id":"CVE-2024-5657","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","id":"CVE-2024-5658"},"packages":[{"ecosystem":"Packagist","fixed":["3.3.4"],"introduced":["3.3.1"],"last_affected":[],"package":"born05/craft-twofactorauthentication","purl":null,"source":"GHSA-3p4x-grpm-xw58"},{"ecosystem":"Packagist","fixed":["3.3.4"],"introduced":["3.3.1"],"last_affected":[],"package":"born05/craft-twofactorauthentication","purl":"pkg:composer/born05/craft-twofactorauthentication","source":"GHSA-3p4x-grpm-xw58"}],"prev":{"headline":"** REJECT ** Accidental duplicate assignment of CVE-2024-4755.","id":"CVE-2024-5656"},"products":["CraftCMS Plugin - Two-Factor Authentication"],"published":"2024-06-06","related":[{"cvss_score":4.8,"headline":"CraftCMS Plugin - Two-Factor Authentication - TOTP Token Stays Valid After Use","id":"CVE-2024-5658","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":"An attacker can obtain the authenticated user's password hash by submitting a valid TOTP code in the CraftCMS Two-Factor Authentication plugin.","url":"https://insights.sbomify.com/CVE-2024-5657/"}