tinfoil/devise-two-factor · Security

Tinfoil Devise-two-factor does not "burn" a successfully validated one-time password (OTP)

GHSA ID
GHSA-x489-jjwm-52g7
CVE ID
CVE-2015-7225
Severity
medium
Published
Updated
CVSS
5.3 · CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v3
5.3 · CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Description

Tinfoil Devise-two-factor before 2.0.0 does not strictly follow RFC 6238 § 5.2 and does not "burn" a successfully validated one-time password (aka OTP), which allows 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.

References