OSV 1.4.0 · github-reviewed · 修改于 2024-03-20 23:34
发布时间
2024-01-12 23:13
GitHub 审查时间
2024-01-12 23:13
NVD 发布时间
2024-01-12 04:15
源文件
advisories/github-reviewed/2024/01/GHSA-chcr-x7hc-8fp8/GHSA-chcr-x7hc-8fp8.json
该公告已于 2024-03-20 06:33 撤回
内容仅用于保留外部引用,请不要将其当作仍然有效的安全结论。
The backing CVE has been rejected
Devise-Two-Factor does not throttle or otherwise restrict login attempts at the server by default. When combined with the Time-based One Time Password algorithm's (TOTP) inherent entropy limitations, it's possible for an attacker to bypass the 2FA mechanism through brute-force attacks.
If a user's username and password have already been compromised an attacker would be able to try possible TOTP codes and see if they can hit a lucky collision to log in as that user. The user under attack would not necessarily know that their account has been compromised.
Devise-Two-Factor has not released any fixes for this vulnerability. This library is open-ended by design and cannot solve this for all applications natively. It's recommended that any application leveraging Devise-Two-Factor implement controls at the application level to mitigate this threat. A non-exhaustive list of possible mitigations can be found below.
lockable strategy from Devise to lock a user after a certain number of failed login attempts. See https://www.rubydoc.info/github/heartcombo/devise/main/Devise/Models/Lockable for more information.Christian Reitter (Radically Open Security) and Chris MacNaughton (Centauri Solutions)