Logjam (computer security) explained

Logjam is a security vulnerability in systems that use Diffie–Hellman key exchange with the same prime number. It was discovered by a team of computer scientists and publicly reported on May 20, 2015.[1] The discoverers were able to demonstrate their attack on 512-bit (US export-grade) DH systems. They estimated that a state-level attacker could do so for 1024-bit systems, then widely used, thereby allowing decryption of a significant fraction of Internet traffic. They recommended upgrading to at least 2048 bits for shared prime systems.[2] [3] [4]

Details

Diffie–Hellman key exchange depends for its security on the presumed difficulty of solving the discrete logarithm problem. The authors took advantage of the fact that the number field sieve algorithm, which is generally the most effective method for finding discrete logarithms, consists of four large computational steps, of which the first three depend only on the order of the group G, not on the specific number whose finite log is desired. If the results of the first three steps are precomputed and saved, they can be used to solve any discrete log problem for that prime group in relatively short time. This vulnerability was known as early as 1992.[5] It turns out that much Internet traffic only uses one of a handful of groups that are of order 1024 bits or less.

One approach enabled by this vulnerability that the authors demonstrated was using a man-in-the-middle network attacker to downgrade a Transport Layer Security (TLS) connection to use 512-bit DH export-grade cryptography, allowing them to read the exchanged data and inject data into the connection. It affects the HTTPS, SMTPS, and IMAPS protocols, among others. The authors needed several thousand CPU cores for a week to precompute data for a single 512-bit prime. Once that was done, however, individual logarithms could be solved in about a minute using two 18-core Intel Xeon CPUs.[6] Its CVE ID is .[7]

The authors also estimated the feasibility of the attack against 1024-bit Diffie–Hellman primes. By design, many Diffie–Hellman implementations use the same pre-generated prime for their field. This was considered secure, since the discrete logarithm problem is still considered hard for big enough primes even if the group is known and reused. The researchers calculated the cost of creating logjam precomputation for one 1024-bit prime at hundreds of millions of USD, and noted that this was well within range of the FY2012 $10.5 billion U.S. Consolidated Cryptologic Program (which includes NSA). Because of the reuse of primes, generating precomputation for just one prime would break two-thirds of VPNs and a quarter of all SSH servers globally. The researchers noted that this attack fits claims in leaked NSA papers that NSA is able to break much current cryptography. They recommend using primes of 2048 bits or more as a defense or switching to elliptic-curve Diffie–Hellman (ECDH). Claims on the practical implications of the attack were however disputed by security researchers Eyal Ronen and Adi Shamir in their paper "Critical Review of Imperfect Forward Secrecy".[8]

Responses

See also

External links

Notes and References

  1. Web site: The Logjam Attack . weakdh.org . 2015-05-20 . 2015-05-20 . 2021-03-29 . https://web.archive.org/web/20210329172612/https://weakdh.org/ . live .
  2. Web site: HTTPS-crippling attack threatens tens of thousands of Web and mail servers . Dan Goodin . . 2015-05-20 . 2022-04-30 . 2017-05-19 . https://web.archive.org/web/20170519130937/https://arstechnica.com/security/2015/05/https-crippling-attack-threatens-tens-of-thousands-of-web-and-mail-servers/ . live .
  3. News: Logjam security flaw leaves top HTTPS websites, mail servers vulnerable . Charlie Osborne . . 2015-05-20 . 2015-05-23 . 2015-05-23 . https://web.archive.org/web/20150523004129/http://www.zdnet.com/article/logjam-security-flaw-leaves-tens-of-thousands-of-https-websites-vulnerable/ . live .
  4. News: New Computer Bug Exposes Broad Security Flaws. The Wall Street Journal. Jennifer. Valentino-DeVries. 2015-05-19. subscription. 2022-04-30. 2022-02-24. https://web.archive.org/web/20220224011050/https://www.wsj.com/articles/new-computer-bug-exposes-broad-security-flaws-1432076565. live.
  5. Whitfield Diffie, Paul C. Van Oorschot, and Michael J. Wiener "Authentication and Authenticated Key Exchanges", in Designs, Codes and Cryptography, 2, 107–125 (1992), Section 5.2, available as Appendix B to : "If q has been chosen correctly, extracting logarithms modulo q requires a precomputation proportional to

    L(q)=e\sqrt{ln

    } though after that individual logarithms can be calculated fairly quickly."
  6. Web site: Adrian . David . Bhargavan . Karthikeyan . Durumeric . Zakir . Gaudry . Pierrick . Green . Matthew . Halderman . J. Alex . Heninger . Nadia . Nadia Heninger . Springall . Drew . Thomé . Emmanuel . Valenta . Luke . VanderSloot . Benjamin . Wustrow . Eric . Zanella-Béguelin . Santiago . Zimmermann . Paul . Imperfect Forward Secrecy: How Diffie-Hellman Fails in Practice . October 2015 . 2015-05-23 . 2020-02-27 . https://web.archive.org/web/20200227111819/https://weakdh.org/imperfect-forward-secrecy.pdf . live . Originally published in Proc. 22nd Conf. on Computers and Communications Security (CCS). Republished, CACM, Jan. 2019, pp. 106-114, with Technical Perspective, "Attaching Cryptographic Key Exchange with Precomputation", by Dan Boneh, p. 105.
  7. Web site: CVE-2015-4000 . The MITRE Corporation . Common Vulnerabilities and Exposures List . 2015-05-15 . 2015-06-16 . 2015-08-11 . https://web.archive.org/web/20150811065219/http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-4000 . live .
    "The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not properly convey a DHE_EXPORT choice, which allows man-in-the-middle attackers to conduct cipher-downgrade attacks by rewriting a ClientHello with DHE replaced by DHE_EXPORT and then rewriting a ServerHello with DHE_EXPORT replaced by DHE, aka the 'Logjam' issue."
  8. Web site: Critical Review of Imperfect Forward Secrecy . Eyal . Ronen . Adi . Shamir . October 2015 . 2022-04-30 . 2021-12-11 . https://web.archive.org/web/20211211100114/https://www.wisdom.weizmann.ac.il/~eyalro/RonenShamirDhReview.pdf . live .
  9. Web site: Microsoft Security Bulletin MS15-055. Vulnerability in Schannel Could Allow Information Disclosure (3061518) . 2015-05-12 . . This security update resolves a vulnerability in Microsoft Windows that facilitates exploitation of the publicly disclosed Logjam technique, [...] The security update addresses the vulnerability by increasing the minimum allowable DHE key length to 1024 bits. . 2015-07-02 . 2015-07-03 . https://web.archive.org/web/20150703021850/https://technet.microsoft.com/en-us/library/security/ms15-055.aspx . live .
  10. Web site: Tor Browser 4.5.2 is released. Mike. Perry. 2015-06-16. The Tor Project. 2015-06-20. 2015-06-20. https://web.archive.org/web/20150620224433/https://blog.torproject.org/blog/tor-browser-452-released. live.
  11. Web site: About the security content of OS X Yosemite v10.10.4 and Security Update 2015-005 . 23 January 2017 . . This issue, also known as Logjam, [...] was addressed by increasing the default minimum size allowed for DH ephemeral keys to 768 bits..
  12. Web site: About the security content of iOS 8.4 . 18 August 2020 . . This issue, also known as Logjam, [...] was addressed by increasing the default minimum size allowed for DH ephemeral keys to 768 bits..
  13. Web site: Mozilla Foundation Security Advisory 2015-70 - NSS accepts export-length DHE keys with regular DHE cipher suites . . FIXED IN Firefox 39.0 [...] This attack [...] is known as the "Logjam Attack." This issue was fixed in NSS version 3.19.1 by limiting the lower strength of supported DHE keys to use 1023 bit primes. . 2015-07-04 . 2015-07-07 . https://web.archive.org/web/20150707033751/https://www.mozilla.org/en-US/security/advisories/mfsa2015-70/ . live .
  14. Web site: Stable Channel Updates. Chrome Releases. Vivian. Zhi. 2015-09-01. 2015-11-06. 2015-10-16. https://web.archive.org/web/20151016103016/http://googlechromereleases.blogspot.com/2015/09/stable-channel-update.html. live.