Skip to content

TOTP can be brute forced

Moderate
ChrisMacNaughton published GHSA-qrqh-v2j6-3g7w Jan 11, 2024

Package

bundler EyeDP (RubyGems)

Affected versions

<= 1.0.16, < 1.1

Patched versions

1.0.17, 1.1.0-rc4

Description

Impact

If a user's username and password is known to an attacker, it is possible to brute force their TOTP.

The following log line will be triggered and can be used to detect this kind of attack:

Rails.logger.warn("Failed Login: user=#{user.username} ip=#{request.remote_ip} method=OTP")

Patches

A fix is in progress

Workarounds

It is possible to limit the availability of this attack by configuring a rate-limit on the login endpoints via Nginx or similar

References

GHSA-chcr-x7hc-8fp8

Severity

Moderate
5.0
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

CVE ID

CVE-2024-0227

Weaknesses