RUSTSEC-2022-0018
Timing attack
- Reported
-
- Issued
-
- Package
-
totp-rs
(crates.io)
- Type
-
Vulnerability
- Categories
-
- Keywords
-
#side-channel
#timing-attack
- Aliases
-
- References
-
- CVSS Score
- 4.2
MEDIUM
- CVSS Details
-
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- High
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
- CVSS Vector
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
- Patched
-
- Affected Functions
- Version
totp_rs::TOTP::check
-
Description
Affecting versions did not compare tokens in constant time, which could make it possible for an attacker to guess the 2fa token of a user.
This has been fixed by using using the crate constant_time_eq for comparison.
Advisory available under CC0-1.0
license.