{"id":"CVE-2015-7225","published":"2017-09-06T21:00:00Z","modified":"2024-08-06T07:43:45Z","title":"Tinfoil Devise-two-factor before 2.0.0 does not strictly follow section 5.2 of RFC 6238 and does not \"burn\" a…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02058,"percentile":0.81773,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/tinfoil/devise-two-factor/blob/master/UPGRADING.md","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2015/09/17/2","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2015/06/20/4","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.securityfocus.com/bid/76789","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798466","tags":["x_refsource_MISC"]},{"url":"https://github.com/tinfoil/devise-two-factor/issues/45#issuecomment-139335608","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.35}]},"affected":[{"ecosystem":"RubyGems","package":"devise-two-factor","vulnerableRanges":["<2.0.0"],"patched":["2.0.0"],"from":["GHSA-x489-jjwm-52g7"],"provenance":"source"}],"summary":{"text":"The Devise-two-factor gem (Tinfoil, versions before 2.0.0) does not invalidate a one-time password after it has been successfully validated, contrary to section 5.2 of RFC 6238. An attacker who already holds a target user's login credentials and can obtain the current OTP, either through a man-in-the-middle position between the provider and verifier or by shoulder surfing, can replay that OTP within the same time-step to log in as the user.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:05Z"},"euvd":{"id":"EUVD-2018-0428","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tinfoil-devise-two-factor-cve-2015-7225","children":[{"from":"CVE-2015-7225","to":"CVE-2021-43177","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval.","from":"CVE.org","in":"CVE-2021-43177"},{"kind":"similar","provenance":"machine","score":0.35,"basis":"same package + description similarity"}]}]}}