CVE-2014-1491: Weak Encryption
1. Create a TLS server supporting only the DHE key exchange. 2. During any handshake, send the parameters <p, g, g^q> where p=2q+1 is a prime such that q is also prime and g is not a quadratic residue mod p 3. NSS accepts this value and proceeds with the handshake. The PMS computed by NSS is g^(qKc)
Actual results:
NSS accepts to proceed with the exchange. If g is not a quadratic residue mod p, then g^q = p-1 which is not rejected by NSS as it accepts any public value in [2, p-1] (this is allowed by rfc2631). Then, the computed PMS g^(qKc) is 1 if Kc is even (because g^(2q)=g^(p-1)=1 [mod p]) and p-1 if Kc is odd (because g^q=p-1 [mod p]). If the server chose a Ks with the same parity, the PMS will be the same on the client and server but the communication is not safe because an attacker can derive it from the parameters sent over the network.
Acknowledgements:
Red Hat would like to thank the Mozilla project for reporting this issue. Upstream acknowledges Antoine Delignat-Lavaud and Karthikeyan Bhargavan as the original reporters.
Other sources
Mozilla Network Security Services (NSS) before 3.15.4, as used in Mozilla Firefox before 27.0, Firefox ESR 24.x before 24.3, Thunderbird before 24.3, SeaMonkey before 2.24, and other products, does not properly restrict public values in Diffie-Hellman key exchanges, which makes it easier for remote attackers to bypass cryptographic protection mechanisms in ticket handling by leveraging use of a certain value.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/nssto a version that resolves this vulnerability.Fixed in 3.15.4 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.15.4
Event History
Frequently Asked Questions
What is the severity of CVE-2014-1491?
CVE-2014-1491 is considered to have a medium severity due to potential security risks in the Diffie-Hellman key exchange.
How do I fix CVE-2014-1491?
To fix CVE-2014-1491, update affected software to versions 3.15.4 or later for NSS and similar version updates for other vulnerable applications.
What software is affected by CVE-2014-1491?
CVE-2014-1491 affects Mozilla Firefox, Firefox ESR, Thunderbird, SeaMonkey, and other products using vulnerable versions of NSS.
What type of vulnerability is CVE-2014-1491?
CVE-2014-1491 is a cryptographic vulnerability related to improper restriction of public values in Diffie-Hellman key exchanges.
When was CVE-2014-1491 disclosed?
CVE-2014-1491 was disclosed in early 2014, impacting several Mozilla products and Oracle software.