totp-rs
Affected
- introduced
0, fixed1.1.0(semver)
Fixed versions
1.1.0
Fix
- Fixed version
1.1.0cargo update -p totp-rs --precise 1.1.0
Advisory
Also known as: CVE-2022-29185, RUSTSEC-2022-0018
Observable Timing Discrepancy in totp-rs
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:
Medium Basis: The source's own band: MODERATE
0, fixed 1.1.0 (semver)1.1.0
1.1.0cargo update -p totp-rs --precise 1.1.0Fix 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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0