RUSTSEC-2022-0018

Source
https://rustsec.org/advisories/RUSTSEC-2022-0018
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0018.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0018
Aliases
Published
2022-05-09T12:00:00Z
Modified
2023-11-08T04:09:09.176539Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Timing attack
Details

Affecting versions did not compare tokens in constant time, which could make it possible for an attacker to guess the 2fa token of a user.

This has been fixed by using using the crate constanttimeeq for comparison.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / totp-rs

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
1.1.0

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "totp_rs::TOTP::check"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N",
    "informational": null,
    "categories": [
        "crypto-failure"
    ]
}