RUSTSEC-2022-0018
Dashboard / Vulnerabilities / RUSTSEC-2022-0018
RUSTSEC-2022-0018
Published: 9 May 2022Last Modified: 8 Nov 2023
Aliases:
Summary: 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.
References: https://crates.io/crates/totp-rs, https://rustsec.org/advisories/RUSTSEC-2022-0018.html, https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249
Affected packages
Package
Name: totp-rs
Purl: pkg:cargo/totp-rs
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -1.1.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
