{"id":"RUSTSEC-2022-0018","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.\n\nThis has been fixed by using using the crate constant_time_eq for comparison.","aliases":["CVE-2022-29185","GHSA-8vxv-2g8p-2249"],"modified":"2023-11-08T04:09:09.176539Z","published":"2022-05-09T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/totp-rs"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2022-0018.html"},{"type":"ADVISORY","url":"https://github.com/constantoine/totp-rs/security/advisories/GHSA-8vxv-2g8p-2249"}],"affected":[{"package":{"name":"totp-rs","ecosystem":"crates.io","purl":"pkg:cargo/totp-rs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"1.1.0"}]}],"ecosystem_specific":{"affects":{"functions":["totp_rs::TOTP::check"],"os":[],"arch":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0018.json","informational":null,"categories":["crypto-failure"],"cvss":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N"}]}