CVE-2021-43177 Improper one time password handling in devise-two-factor
MediumCVSS 5.3
EPSS 0.88%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- Technology
- UbuntuDebian
Description
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. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)
Upgrade path
8 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/ruby-devise-two-factor(Ubuntu 16.04) | = 1.1.0-1; = 2.0.0-1; All versions | No fix listed | No fix yet |
| debian/ruby-devise-two-factor(Debian 12) | < 4.0.2-1 | 4.0.2-1 | Fixed |
| rubygems devise-two-factor(RubyGems) | < 4.0.2; = 1.0.0; = 1.0.1; = 1.0.2 +13 more | 4.0.2 | Fixed |
| tinfoilsecurity devise-two-factor | < 4.0.2 | 4.0.2 | Fixed |
| ubuntu/ruby-devise-two-factor(Ubuntu 22.04) | < 4.0.0-2ubuntu0.1~esm1 | 4.0.0-2ubuntu0.1~esm1 | Fixed |
| ubuntu/ruby-devise-two-factor(Ubuntu Pro 20.04) | < 3.1.0-2ubuntu0.1~esm1; = 3.0.3-2; = 3.1.0-2 | 3.1.0-2ubuntu0.1~esm1 | Fixed |
| ubuntu/ruby-devise-two-factor(Ubuntu Pro 22.04) | < 4.0.0-2ubuntu0.1~esm1; = 3.1.0-2; = 4.0.0-2 | 4.0.0-2ubuntu0.1~esm1 | Fixed |
| Tinfoil devise-two-factor | = < 4.0.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems devise-two-factor(RubyGems) | < 4.0.2 | 4.0.2 |
| rubygems devise-two-factor(RubyGems) | = 1.0.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 1.0.1 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 1.0.2 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 1.1.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 2.0.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 2.0.1 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 2.1.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 2.2.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 2.2.1 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 3.0.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 3.0.1 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 3.0.2 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 3.0.3 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 3.1.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 4.0.0 | No fix listed |
| rubygems devise-two-factor(RubyGems) | = 4.0.1 | No fix listed |
| debian/ruby-devise-two-factor(Debian:12) | < 4.0.2-1 | 4.0.2-1 |
| ubuntu/ruby-devise-two-factor(Ubuntu:22.04) | < 4.0.0-2ubuntu0.1~esm1 | 4.0.0-2ubuntu0.1~esm1 |
| tinfoilsecurity devise-two-factor | < 4.0.2 | 4.0.2 |
| Tinfoil devise-two-factor | = < 4.0.2 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:16.04) | = 1.1.0-1 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:16.04) | = 2.0.0-1 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:20.04) | < 3.1.0-2ubuntu0.1~esm1 | 3.1.0-2ubuntu0.1~esm1 |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:20.04) | = 3.0.3-2 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:20.04) | = 3.1.0-2 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:22.04) | < 4.0.0-2ubuntu0.1~esm1 | 4.0.0-2ubuntu0.1~esm1 |
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:22.04) | = 3.1.0-2 | No fix listed |
| ubuntu/ruby-devise-two-factor(Ubuntu:Pro:22.04) | = 4.0.0-2 | No fix listed |
References
- github.com issue-tracking third-party-advisory vendor-advisory
- github.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com exploit
- github.com
- github.com product
- Debian Security Tracker CVE-2021-43177 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7050-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com issue-tracking
- github.com issue-tracking