Descrizione
wc_Blake2bHmacFinal and wc_Blake2sHmacFinal discard the message when the key length exceeds the block size, producing a MAC that is independent of the input. When the supplied key is longer than the BLAKE2 block size the key-hashing branch reinitialized the running hash state, discarding the accumulated message data, so the resulting MAC depended only on the key and not on the message being authenticated. This bug is specific to the HMAC-BLAKE2 APIs that were added in wolfSSL version 5.9.0.
Tipo di vulnerabilità
CWE-354
Improper Validation of Integrity Check Value
The product does not validate or incorrectly validates the integrity check values or checksums of a message.
Impatto sui sistemi
| Ambito | Impatto |
| Integrità, Altro |
Modificare i dati dell’applicazione, Altro |
| Integrità, Altro |
Altro |
| Non ripudio, Altro |
Nascondere le proprie attività, Altro |
Come si previene
Sviluppo
The protocol specification describes the algorithm used for calculating the checksum. It is then a matter of implementing the calculation and verifying that the calculated checksum and the received checksum match.
Tutte le 203 CVE di tipo CWE-354, con andamento e prevenzione