CWE•Base•Incomplete•9 recent CVEs
CWE-323Reusing a Nonce, Key Pair in Encryption
Description
Nonces should be used for the present occasion and only once.
Common consequences
- Access Control→Bypass Protection Mechanism,Gain Privileges or Assume IdentityPotentially a replay attack, in which an attacker could send the same data twice, could be crafted if nonces are allowed to be reused. This could allow a user to send a message which masquerades as a valid message from a valid user.
Potential mitigations
- ImplementationRefuse to reuse nonce values.
- ImplementationUse techniques such as requiring incrementing, time based and/or challenge response to assure uniqueness of nonces.