Advisory

GHSA-8vxv-2g8p-2249

Also known as: CVE-2022-29185, RUSTSEC-2022-0018

Summary

Observable Timing Discrepancy in totp-rs

Details

Impact
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.

Patches
Library now used constant-time comparison.

Workarounds
No.

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-24 21:33 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

totp-rs

crates.io · All systems

Affected

  • introduced 0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

  • Fixed version 1.1.0
    cargo update -p totp-rs --precise 1.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences