CVE-2021-43177
Improper one time password handling in devise-two-factor
Auswirkung
### 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
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rubygems | devise-two-factor | < 4.0.2 | 4.0.2 |
Betroffene Produkte · Tinfoilsecurity
| Produkt | Betroffene Versionen |
|---|---|
| Devise-two-factor | vor 4.0.2 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp
- https://github.com/advisories/GHSA-jm35-h8q2-73mp
- https://github.com/tinfoil/devise-two-factor/issues/106
- https://nvd.nist.gov/vuln/detail/CVE-2021-43177
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/devise-two-factor/CVE-2021-43177.yml