Descrizione
`HmacShaCryptor.Hash` never hashed its input. For any input it returned `HMAC_K("")` — the MAC of the empty message under the key. Every AES-CBC-HMAC JWE produced or verified by gose therefore carried an authentication tag that is constant per key and independent of the message, removing ciphertext integrity entirely.
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