Skip to content

Invalid Curve in ECDH

Consequences

Compromise of session key and/or private Diffie-Hellman key

Access required for attack

Ability to modify public key parameters for a ECDH exchange

Explanation

An attacker may attempt to break Elliptic Curve Diffie-Hellman by sending weak or invalid public keys (for example, invalid public keys that contain points not on the curve, curves that have been deliberately chosen so that discrete logs are easy to compute as well as orders or cofactors that are wrong). A robust implementation should validate all the inputs of a key agreement and ensure that in no case information about the private key is leaked.

References