Improper one time password handling in devise-two-factor
Moderate severity
GitHub Reviewed
Published
Apr 7, 2022
in
devise-two-factor/devise-two-factor
•
Updated May 4, 2023
Description
Published to the GitHub Advisory Database
Apr 7, 2022
Reviewed
Apr 7, 2022
Published by the National Vulnerability Database
Apr 11, 2022
Last updated
May 4, 2023
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 - devise-two-factor/devise-two-factor#106
References