CVE-2015-7225Tinfoilsecurity Devise-two-factor
Medium 5.3
Follow: this CVE · Tinfoilsecurity · Tinfoilsecurity Devise-two-factor We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.0
- 5.3
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- Yes
- Published
- Sep 6, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-254
- Vector
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
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
- Apply the vendor's security update for Devise-two-factor.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | devise-two-factor |
< 2.0.0 |
2.0.0 |
gem "devise-two-factor", ">= 2.0.0" |
Per OSV / GitHub Advisories (GHSA-x489-jjwm-52g7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tinfoilsecurity | devise-two-factor | ≤ 1.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List VDB Entry
- www.openwall.com Mailing List VDB Entry
- www.securityfocus.com Third Party Advisory VDB Entry
- bugs.debian.org Mailing List Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory