devise-two-factor 1.1.0 and earlier vulnerable to replay attacks


2017-09-21 21:42
CVE-2015-7225 ruby-devise-two-factor
2017-09-06 23:36
2017-04-01 19:11
2017-01-05 20:15


A OTP replay vulnerability in devise-two-factor 1.1.0 and earlier allows local
attackers to shoulder-surf a user's TOTP verification code and use it to
login after the user has authenticated.

By not "burning" a previously used TOTP, devise-two-factor allows a narrow
window of opportunity (aka the timestep period) where an attacker can re-use a
verification code.

Should an attacker possess a given user's authentication
credentials, this flaw effectively defeats two-factor authentication for the
duration of the timestep.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
devise-two-factor >= 2.0.0 None