Vulnerability in Devise-Two-Factor
CVE-2024-8796
Under the default configuration, Devise-Two-Factor versions >= 2.2.0 & < 6.0.0 generate TOTP shared secrets that are 120 bits instead of the 128-bit minimum defined by RFC 4226. Using a shared secret shorter than the minimum to generate a multi-factor authentication code could make it easier for an attacker to guess the shared secret and generate valid TOTP codes.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.006, 51.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Devise-Two-Factor — versions 4.0.0, 1.0.0
- Tinfoilsecurity Devise-Two-Factor — versions 1.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/devise-two-factor/devise-two-factor/security/advisories/GHSA-qjxf-mc… (vendor-advisory, Mitigation, Vendor Advisory)