Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04dnh2LTJnOHAtMjI0Oc4AAqwh
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:
- Open an issue in totp-rs
- Email us at [email protected]
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04dnh2LTJnOHAtMjI0Oc4AAqwh
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: almost 2 years ago
Updated: 11 months ago
CVSS Score: 4.2
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N
Identifiers: GHSA-8vxv-2g8p-2249, CVE-2022-29185
References:
- https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249
- https://nvd.nist.gov/vuln/detail/CVE-2022-29185
- https://github.com/constantoine/totp-rs/issues/13
- https://github.com/constantoine/totp-rs/releases/tag/v1.1.0
- https://rustsec.org/advisories/RUSTSEC-2022-0018.html
- https://github.com/constantoine/totp-rs/commit/1f1e1a6fe722deb1656f483b1367ea4be978db5b
- https://github.com/constantoine/totp-rs/compare/v1.0...v1.1.0
- https://github.com/advisories/GHSA-8vxv-2g8p-2249
Blast Radius: 6.4
Affected Packages
cargo:totp-rs
Dependent packages: 24Dependent repositories: 34
Downloads: 290,463 total
Affected Version Ranges: < 1.1.0
Fixed in: 1.1.0
All affected versions: 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 1.0.0
All unaffected versions: 1.1.0, 1.2.0, 1.2.1, 1.3.0, 1.4.0, 2.0.0, 2.0.1, 3.0.0, 3.0.1, 3.1.0, 4.0.0, 4.1.0, 4.2.0, 5.0.0, 5.0.1, 5.0.2, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.5.0, 5.5.1