RustSec Advisory Database
RUSTSEC-2022-0018
Timing attack
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| crates.io | totp-rs | From 0.0.0-0 before 1.1.0 (fixed in 1.1.0) |