Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-q7pg-9pr4-mrp2

Опубликовано: 12 сент. 2025
Источник: github
Github: Прошло ревью
CVSS3: 5.9

Описание

httpsig-rs: HMAC verification is vulnerable to timing attack

Summary

HMAC signature comparison is not timing-safe and is vulnerable to timing attacks.

Details

SharedKey::sign() returns a Vec<u8> which has a non-constant-time equality implementation.

Hmac::finalize() returns a constant-time wrapper (CtOutput) which was discarded. Alternatively, Hmac has a constant-time verify() method.

The problem reported here is due to the following lines in SharedKey::sign() of the previous code:

let mut mac = HmacSha256::new_from_slice(key).unwrap(); mac.update(data); Ok(mac.finalize().into_bytes().to_vec())

and the merged update changes the third line to directly verify with verify_slice.

Impact

Anyone who uses HS256 signature verification is vulnerably to Timing Attack that allows the attacker to forge a signature.

Пакеты

Наименование

httpsig

rust
Затронутые версииВерсия исправления

< 0.0.19

0.0.19

EPSS

Процентиль: 17%
0.00053
Низкий

5.9 Medium

CVSS3

Дефекты

CWE-208

Связанные уязвимости

CVSS3: 5.9
nvd
5 месяцев назад

httpsig-rs is a Rust implementation of IETF RFC 9421 http message signatures. Prior to version 0.0.19, the HMAC signature comparison is not timing-safe. This makes anyone who uses HS256 signature verification vulnerable to a timing attack that allows the attacker to forge a signature. Version 0.0.19 fixes the issue.

EPSS

Процентиль: 17%
0.00053
Низкий

5.9 Medium

CVSS3

Дефекты

CWE-208