Live threats

All CVEs / Tinfoilsecurity

CVE-2015-7225Tinfoilsecurity Devise-two-factor

Medium 5.3

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Devise-two-factor.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
tinfoilsecuritydevise-two-factor≤ 1.1.0

Official sources

References

Links published by the sources. Open them with care.