Skip to main content
← All vulnerabilities
CVE-2022-29185RUSTSEC-2022-0018GHSA-8VXV-2G8P-2249

Observable Timing Discrepancy in totp-rs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

totp-rs is a Rust library that permits the creation of 2FA authentification tokens per time-based one-time password (TOTP). Prior to version 1.1.0, token comparison was not constant time, and could theorically be used to guess value of an TOTP token, and thus reuse it in the same time window. The attacker would have to know the password beforehand nonetheless. Starting with patched version 1.1.0, the library uses constant-time comparison. There are currently no known workarounds.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • constantoine totp-rs

    fixed in 1.1.0

  • totp-rscrates.io

    From 0.0.0-0 · fixed in 1.1.0

  • totp-rscrates.io

    fixed in 1.1.0

References 3

GitHub · constantoine/totp-rs