GitHub Advisoryadvisory · RubyGems
GHSA-jm35-h8q2-73mp Improper one time password handling in devise-two-factor
MEDIUM
Official page ↗
- Aliases
- CVE-2021-43177
- Ecosystem
- RubyGems
- Packages
- devise-two-factor
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
- Reviewed
- 2022-04-07
Affected packages
• RubyGems devise-two-factor: < 4.0.2 → fixed in 4.0.2
Description
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
Related
Alias · CVE (1)
- CVE-2021-43177 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… vulnerability
References
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp web
- https://nvd.nist.gov/vuln/detail/CVE-2021-43177 advisory
- https://github.com/tinfoil/devise-two-factor/issues/106 web
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise-two-factor/CVE-2021-43177.yml web
- https://github.com/tinfoil/devise-two-factor package