Lucene search

K
githubGitHub Advisory DatabaseGHSA-8VXV-2G8P-2249
HistoryMay 24, 2022 - 9:33 p.m.

Observable Timing Discrepancy in totp-rs

2022-05-2421:33:15
CWE-203
CWE-208
GitHub Advisory Database
github.com
11
security
totp
constant-time
patch
advisory
github
email

CVSS2

3.5

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:S/C:P/I:N/A:N

CVSS3

4.4

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N

EPSS

0.001

Percentile

42.5%

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:

Affected configurations

Vulners
Node
totp-rs_projecttotp-rsRange<1.1.0rust
VendorProductVersionCPE
totp-rs_projecttotp-rs*cpe:2.3:a:totp-rs_project:totp-rs:*:*:*:*:*:rust:*:*

CVSS2

3.5

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

SINGLE

Confidentiality Impact

PARTIAL

Integrity Impact

NONE

Availability Impact

NONE

AV:N/AC:M/Au:S/C:P/I:N/A:N

CVSS3

4.4

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

HIGH

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

NONE

Availability Impact

NONE

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N

EPSS

0.001

Percentile

42.5%

Related for GHSA-8VXV-2G8P-2249