HistoryEdit

RUSTSEC-2022-0018

Timing attack

Reported
Issued
Package
totp-rs (crates.io)
Type
Vulnerability
Categories
Keywords
#side-channel #timing-attack
Aliases
Details
https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249
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
  • >=1.1.0
Affected Functions
Version
totp_rs::TOTP::check
  • <1.1.0

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.