Descrizione
Versions of the package cocoon before 0.4.0 are vulnerable to Reusing a Nonce, Key Pair in Encryption when the encrypt, wrap, and dump functions are sequentially called. An attacker can generate the same ciphertext by creating a new encrypted message with the same cocoon object.
**Note:**
The issue does NOT affect objects created with Cocoon::new which utilizes ThreadRng.
Tipo di vulnerabilità
CWE-323
Reusing a Nonce, Key Pair in Encryption
Nonces should be used for the present occasion and only once.
Impatto sui sistemi
| Ambito | Impatto |
| Controllo degli accessi |
Aggirare i meccanismi di protezione, Ottenere privilegi o assumere un’altra identità |
Come si previene
Sviluppo
Refuse to reuse nonce values.
Sviluppo
Use techniques such as requiring incrementing, time based and/or challenge response to assure uniqueness of nonces.
Tutte le 34 CVE di tipo CWE-323, con andamento e prevenzione