Advisory

GHSA-jm35-h8q2-73mp

Also known as: CVE-2021-43177

Summary

Improper one time password handling in 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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-04-07 22:09 UTC
Modified
2026-08-27 03:56 UTC

Affected packages and fixes

devise-two-factor

RubyGems · All systems

Affected

  • introduced 0, fixed 4.0.2 (ecosystem)

Fixed versions

4.0.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences