Timing Attack Affecting totp-rs package, versions <1.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TOTPRS-2812826
  • published10 May 2022
  • disclosed9 May 2022
  • creditUnknown

Introduced: 9 May 2022

CVE-2022-29185  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade totp-rs to version 1.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Timing Attack as it does not compare tokens in constant time, which can make it possible for an attacker to guess the 2fa token of a user.

CVSS Scores

version 3.1