Advisory

RUSTSEC-2022-0018

Also known as: CVE-2022-29185, GHSA-8vxv-2g8p-2249

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 constant_time_eq for comparison.

Severity

Medium Basis: CVSS v3 score 4.2, vector CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:N/A:N

Dates

Published
2022-05-09 12:00 UTC
Modified
2026-10-12 18:00 UTC

Affected packages and fixes

totp-rs

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.1.0 (semver)

Fixed versions

1.1.0

Fix

  • Fixed version 1.1.0
    cargo update -p totp-rs --precise 1.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences