constantoine/totp-rs · Security

Observable Timing Discrepancy in totp-rs

GHSA ID
GHSA-8vxv-2g8p-2249
CVE ID
CVE-2022-29185
Severity
medium
Published
Updated
CVSS
4.2 · CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
CVSS v3
4.2 · CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N

Description

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:

CWEs

References