{"answers":{"affected":"2 open source packages ship an affected version, including devise-two-factor. It affects 1 product.","exploited":"There is no known exploitation of CVE-2015-7225 in the wild and no public exploit code.","fix":"Upgrade devise-two-factor to 2.0.0 or later.","what":"CVE-2015-7225 is a medium-severity vulnerability in n/a, published on 6 Sep 2017. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2015-7225 and fix it if it is affected.\n\nWhat it is: CVE-2015-7225 is a medium-severity vulnerability in n/a, published on 6 Sep 2017. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2015-7225 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- devise-two-factor (RubyGems): affected all versions; fixed in 2.0.0\n- devise-two-factor (RubyGems): affected all versions; fixed in 2.0.0\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-2015-7225/ (Markdown: https://insights.sbomify.com/CVE-2015-7225/index.md)","id":"CVE-2015-7225","markdown":"https://insights.sbomify.com/CVE-2015-7225/index.md","name":"CVE-2015-7225","record":{"aliases":["DEBIAN-CVE-2015-7225","GHSA-x489-jjwm-52g7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby two-factor auth library","requires_auth":"low_privilege","summary":"Attackers can bypass two-factor authentication by replaying one-time passwords, allowing unauthorized account access if credentials are compromised.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"devise-two-factor","vendor":"tinfoilsecurity"}],"cvss":{"score":5.3,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-254","name":null}],"description":"Tinfoil Devise-two-factor before 2.0.0 does not strictly follow section 5.2 of RFC 6238 and does not \"burn\" a successfully validated one-time password (aka OTP), which allows remote or physically proximate attackers with a target user's login credentials to log in as said user by obtaining the OTP through performing a man-in-the-middle attack between the provider and verifier, or shoulder surfing, and replaying the OTP in the current time-step.","ecosystems":["RubyGems"],"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":"Tinfoil Devise-two-factor does not \"burn\" a successfully validated one-time password (OTP)","id":"CVE-2015-7225","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"security_feature_bypass","year":"2015"},"n_packages":2,"n_references":6,"next":{"headline":"Missing authorization in n/a","id":"CVE-2015-7226"},"packages":[{"ecosystem":"RubyGems","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"devise-two-factor","purl":null,"source":"GHSA-x489-jjwm-52g7"},{"ecosystem":"RubyGems","fixed":["2.0.0"],"introduced":["0"],"last_affected":[],"package":"devise-two-factor","purl":"pkg:gem/devise-two-factor","source":"GHSA-x489-jjwm-52g7"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2015-7224"},"products":["n/a"],"published":"2017-09-06","related":[{"cvss_score":6,"headline":"Insufficient Default OTP Shared Secret Length","id":"CVE-2024-8796","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":5.3,"headline":"Improper one time password handling in devise-two-factor","id":"CVE-2021-43177","kev_date_added":null,"published":"2022-04-11"}],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"Attackers can bypass two-factor authentication by replaying one-time passwords, allowing unauthorized account access if credentials are compromised.","url":"https://insights.sbomify.com/CVE-2015-7225/"}