VDB
MEDIUM 5.3

GHSA-jm35-h8q2-73mp

Improper one time password handling in devise-two-factor

Quick fix

GHSA-jm35-h8q2-73mp — devise-two-factor: upgrade to the fixed version with the command below.

bundle update devise-two-factor

Details

### Impact As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. ### Patches This vulnerability has been patched in version 4.0.2 which was released on March 24th, 2022. Individuals using this package are strongly encouraged to upgrade as soon as possible.

### Credit for discovery Benoit Côté-Jodoin Michael Nipper - https://github.com/tinfoil/devise-two-factor/issues/106

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems / devise-two-factor
Introduced in: 0 Fixed in: 4.0.2
Fix bundle update devise-two-factor

References