OpenSSL
Developer(s) | The OpenSSL Project |
---|---|
Initial release | 1998 |
Stable release | 1.1.1a (November 20, 2018 (2018-11-20)[1]) [±] 1.1.0j (November 20, 2018 (2018-11-20)[1]) [±] 1.0.2q (November 20, 2018 (2018-11-20)[1]) [±] |
Preview release | none [±] |
Repository |
|
Written in | C, assembly, Perl |
Type | Cryptography library |
License | Apache License v2.0[2] |
Website | www.openssl.org |
OpenSSL is a software library for applications that secure communications over computer networks against eavesdropping or need to identify the party at the other end. It is widely used in Internet web servers, serving a majority of all web sites.
OpenSSL contains an open-source implementation of the SSL and TLS protocols. The core library, written in the C programming language, implements basic cryptographic functions and provides various utility functions. Wrappers allowing the use of the OpenSSL library in a variety of computer languages are available.
The OpenSSL Software Foundation (OSF) represents the OpenSSL project in most legal capacities including contributor license agreements, managing donations, and so on. OpenSSL Software Services (OSS) also represents the OpenSSL project, for Support Contracts.
Versions are available for most Unix and Unix-like operating systems (including Solaris, Linux, macOS, QNX, and the various open-source BSD operating systems), OpenVMS and Microsoft Windows.
Contents
1 Project history
2 Major version releases
3 Algorithms
4 FIPS 140-2 compliance
5 Licensing
6 Notable vulnerabilities
6.1 Timing attacks on RSA Keys
6.2 Denial of Service ASN.1 parsing
6.3 OCSP stapling vulnerability
6.4 ASN.1 BIO vulnerability
6.5 SSL, TLS and DTLS Plaintext Recovery Attack
6.6 Predictable private keys (Debian-specific)
6.7 Heartbleed
6.8 CCS Injection Vulnerability
6.9 ClientHello sigalgs DoS
6.10 Key Recovery Attack on Diffie Hellman small subgroups
7 Forks
7.1 Agglomerated SSL
7.2 LibreSSL
7.3 BoringSSL
8 See also
9 References
10 External links
Project history
The OpenSSL project was founded in 1998 to provide a free set of encryption tools for the code used on the Internet. It is based on a fork of SSLeay by Eric Andrew Young and Tim Hudson, which unofficially ended development on December 17, 1998, when Young and Hudson both went to work for RSA Security. The initial founding members were Mark Cox, Ralf Engelschall, Stephen Henson, Ben Laurie, and Paul Sutton.[3]
The OpenSSL management committee currently consists of 7 people.[4]
There are 13 developers[5] with commit access (many of whom are also part of the OpenSSL management committee).
There are only two full-time employees (fellows) and the remainder are volunteers.
The project has a budget of less than one million USD per year and relies primarily on donations. Development of TLS 1.3 is sponsored by Akamai.[6]
Major version releases
Version | Original release date | Comment | Last minor version |
---|---|---|---|
Old version, no longer supported: 0.9.1 | December 23, 1998 |
| 0.9.1c (December 23, 1998) |
Old version, no longer supported: 0.9.2 | March 22, 1999 |
| 0.9.2b (April 6, 1999) |
Old version, no longer supported: 0.9.3 | May 25, 1999 |
| 0.9.3a (May 27, 1999) |
Old version, no longer supported: 0.9.4 | August 9, 1999 |
| 0.9.4 (August 9, 1999) |
Old version, no longer supported: 0.9.5 | February 28, 2000 |
| 0.9.5a (April 1, 2000) |
Old version, no longer supported: 0.9.6 | September 24, 2000 |
| 0.9.6m (March 17, 2004) |
Old version, no longer supported: 0.9.7 | December 31, 2002 |
| 0.9.7m (February 23, 2007) |
Old version, no longer supported: 0.9.8 | July 5, 2005 |
| 0.9.8zh (December 3, 2015) |
Old version, no longer supported: 1.0.0 | March 29, 2010 |
| 1.0.0t (December 3, 2015) |
Old version, no longer supported: 1.0.1[9] | March 14, 2012 |
| 1.0.1u (September 22, 2016) |
Older version, yet still supported: 1.0.2[10] | January 22, 2015 |
| 1.0.2q (November 20, 2018) |
Older version, yet still supported: 1.1.0[11] | August 25, 2016 |
| 1.1.0j (November 20, 2018) |
Current stable version: 1.1.1[13] | September 11, 2018 |
| 1.1.1a (November 20, 2018) |
Legend: Old version Older version, still supported Latest version Latest preview version Future release |
Algorithms
OpenSSL supports a number of different cryptographic algorithms:
- Ciphers
AES, Blowfish, Camellia, Chacha20, Poly1305, SEED, CAST-128, DES, IDEA, RC2, RC4, RC5, Triple DES, GOST 28147-89,[16]SM4
- Cryptographic hash functions
MD5, MD4, MD2, SHA-1, SHA-2, SHA-3, RIPEMD-160, MDC-2, GOST R 34.11-94,[16]BLAKE2, Whirlpool,[17]SM3
- Public-key cryptography
RSA, DSA, Diffie–Hellman key exchange, Elliptic curve, X25519, Ed25519, X448, Ed448, GOST R 34.10-2001,[16]SM2
(Perfect forward secrecy is supported using elliptic curve Diffie–Hellman since version 1.0.[18])
FIPS 140-2 compliance
As of December 2012[update], OpenSSL is one of two open source programs involved in validation under the FIPS 140-2 computer security standard by the National Institute of Standards and Technology's (NIST) Cryptographic Module Validation Program (CMVP).[19] (OpenSSL itself is not validated, but a component called the OpenSSL FIPS Object Module, based on OpenSSL, was created to provide many of the same capabilities).[20]
A certificate was first awarded in January 2006 but revoked in July 2006 "when questions were raised about the validated module's interaction with outside software." The certification was reinstated in February 2007.[21]
Licensing
OpenSSL is double licensed under the OpenSSL License and the SSLeay License, which means that the terms of both licenses apply.[22] The OpenSSL License is Apache License 1.0 and SSLeay License bears some similarity to a 4-clause BSD License.
As the OpenSSL License is Apache License 1.0, but not Apache License 2.0, it requires the phrase "this product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit" to appear in advertising material and any redistributions (Sections 3 and 6 of the OpenSSL License). Due to this restriction, the OpenSSL License and the Apache License 1.0 are incompatible with the GPL.[23]
Some GPL developers have added an OpenSSL exception to their licenses that specifically permits using OpenSSL with their system. GNU Wget and climm both use such exceptions.[24][25] Some packages (like Deluge) explicitly modify the GPL license by adding an extra section at the beginning of the license documenting the exception.[26] Other packages use the LGPL-licensed GnuTLS and MPL-licensed NSS, which both perform the same task.
OpenSSL announced in August 2015 that it would require most contributors to sign a Contributor License Agreement (CLA), and that OpenSSL would eventually be relicensed under the terms of Apache License 2.0.[27] This process commenced in March 2017.[28]
Notable vulnerabilities
Timing attacks on RSA Keys
On March 14, 2003, a timing attack on RSA keys was discovered, indicating a vulnerability within OpenSSL versions 0.9.7a and 0.9.6. This vulnerability was assigned the identifier CAN-2003-0147 by the Common Vulnerabilities and Exposures (CVE) project. RSA blinding was not turned on by default by OpenSSL, since it is not easily possible to when providing SSL or TLS using OpenSSL.
Denial of Service ASN.1 parsing
OpenSSL 0.9.6k had a bug where certain ASN.1 sequences triggered a large number of recursions on Windows machines, discovered on November 4, 2003. Windows could not handle large recursions correctly, so OpenSSL would crash as a result. Being able to send arbitrary large numbers of ASN.1 sequences would cause OpenSSL to crash as a result.
OCSP stapling vulnerability
When creating a handshake, the client could send an incorrectly formatted ClientHello message, leading to OpenSSL parsing more than the end of the message. Assigned the identifier CVE-2011-0014 by the CVE project, this affected all OpenSSL versions 0.9.8h to 0.9.8q and OpenSSL 1.0.0 to 1.0.0c. Since the parsing could lead to a read on an incorrect memory address, it was possible for the attacker to cause a DoS. It was also possible that some applications expose the contents of parsed OCSP extensions, leading to an attacker being able to read the contents of memory that came after the ClientHello.[29]
ASN.1 BIO vulnerability
When using Basic Input/Output (BIO)[30] or FILE based functions to read untrusted DER format data, OpenSSL is vulnerable. This vulnerability was discovered on April 19, 2012, and was assigned the CVE identifier CVE-2012-2110. While not directly affecting the SSL/TLS code of OpenSSL, any application that was using ASN.1 functions (particularly d2i_X509 and d2i_PKCS12) were also not affected.[31]
SSL, TLS and DTLS Plaintext Recovery Attack
In handling CBC cipher-suites in SSL, TLS, and DTLS, OpenSSL was found vulnerable to a timing attack during the MAC processing. Nadhem Alfardan and Kenny Paterson discovered the problem, and published their findings[32] on February 5, 2013. The vulnerability was assigned the CVE identifier CVE-2013-0169.
Predictable private keys (Debian-specific)
OpenSSL's pseudo-random number generator acquires entropy using complex programming methods. To keep the Valgrind analysis tool from issuing associated warnings, a maintainer of the Debian distribution applied a patch to the Debian's variant of the OpenSSL suite, which inadvertently broke its random number generator by limiting the overall number of private keys it could generate to 32,768.[33][34] The broken version was included in the Debian release of September 17, 2006 (version 0.9.8c-1), also compromising other Debian-based distributions, for example Ubuntu. Ready-to-use exploits are easily available.[35]
The error was reported by Debian on May 13, 2008. On the Debian 4.0 distribution (etch), these problems were fixed in version 0.9.8c-4etch3, while fixes for the Debian 5.0 distribution (lenny) were provided in version 0.9.8g-9.[36]
Heartbleed
OpenSSL versions 1.0.1 through 1.0.1f had a severe memory handling bug in their implementation of the TLS Heartbeat Extension that could be used to reveal up to 64 KB of the application's memory with every heartbeat[37][38] (CVE-2014-0160). By reading the memory of the web server, attackers could access sensitive data, including the server's private key.[39] This could allow attackers to decode earlier eavesdropped communications if the encryption protocol used does not ensure perfect forward secrecy. Knowledge of the private key could also allow an attacker to mount a man-in-the-middle attack against any future communications.[40] The vulnerability might also reveal unencrypted parts of other users' sensitive requests and responses, including session cookies and passwords, which might allow attackers to hijack the identity of another user of the service.[41]
At its disclosure on April 7, 2014, around 17% or half a million of the Internet's secure web servers certified by trusted authorities were believed to have been vulnerable to the attack.[42] However, Heartbleed can affect both the server and client.
CCS Injection Vulnerability
CCS Injection Vulnerability (CVE-2014-0224) is a security bypass vulnerability that exists in OpenSSL. The vulnerability is due to a weakness in OpenSSL methods used for keying material.[43]
This vulnerability can be exploited through the use of a man-in-the-middle attack,[44] where an attacker may be able to decrypt and modify traffic in transit. A remote unauthenticated attacker could exploit this vulnerability by using a specially crafted handshake to force the use of weak keying material. Successful exploitation could lead to a security bypass condition where an attacker could gain access to potentially sensitive information. The attack can only be performed between a vulnerable client and server.
OpenSSL clients are vulnerable in all versions of OpenSSL before the versions 0.9.8za, 1.0.0m and 1.0.1h. Servers are only known to be vulnerable in OpenSSL 1.0.1 and 1.0.2-beta1. Users of OpenSSL servers earlier than 1.0.1 are advised to upgrade as a precaution.[45]
ClientHello sigalgs DoS
This vulnerability (CVE-2015-0291) allows anyone to take a certificate, read its contents and modify it accurately to abuse the vulnerability causing a certificate to crash a client or server. If a client connects to an OpenSSL 1.0.2 server and renegotiates with an invalid signature algorithms extension, a null-pointer dereference occurs. This can cause a DoS attack against the server.
A Stanford Security researcher, David Ramos, had a private exploit and presented it before the OpenSSL team where they patched the issue.
OpenSSL classified the bug as a high-severity issue, noting version 1.0.2 was found vulnerable.[46]
Key Recovery Attack on Diffie Hellman small subgroups
This vulnerability (CVE-2016-0701) allows, when some particular circumstances are met, to recover the OpenSSL server's private Diffie–Hellman key. An Adobe System Security researcher, Antonio Sanso, privately reported the vulnerability.
OpenSSL classified the bug as a high-severity issue, noting only version 1.0.2 was found vulnerable.[47]
Forks
Agglomerated SSL
In 2009, after frustrations with the original OpenSSL API, Marco Peereboom, an OpenBSD developer at the time, forked the original API by creating Agglomerated SSL (assl), which reuses OpenSSL API under the hood, but provides a much simpler external interface.[48] It has since been deprecated in light of the LibreSSL fork circa 2016.
LibreSSL
In April 2014 in the wake of Heartbleed, members of the OpenBSD project forked OpenSSL starting with the 1.0.1g branch, to create a project named LibreSSL.[49] In the first week of pruning the OpenSSL's codebase, more than 90,000 lines of C code had been removed from the fork.[50]
BoringSSL
In June 2014, Google announced its own fork of OpenSSL dubbed BoringSSL.[51] Google plans to co-operate with OpenSSL and LibreSSL developers.[52][53][54]
See also
- Comparison of TLS implementations
- Comparison of cryptography libraries
- LibreSSL
- POSSE project
- wolfSSL
References
^ abc "OpenSSL: Newslog". Retrieved 2018-11-20..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ "Change license to the Apache License v2.0 · openssl/openssl@1513331". GitHub.
^ Laurie, Ben (1999-01-06). "ANNOUNCE: OpenSSL (Take 2)". ssl-users (Mailing list). Retrieved 2018-10-29.
^ "OpenSSL Management Committee". OpenSSL Software Foundation. Retrieved 2018-07-22.
^ "OpenSSL Committers". OpenSSL Software Foundation. Retrieved 2018-07-22.
^ Marquess, Steve (2017-01-19). "Akamai sponsors TLS 1.3". openssl-announce (Mailing list). Retrieved 2018-11-09.
^ "OpenSSL – Changelog". OpenSSL Software Foundation. Retrieved 2016-09-26.
^ "OpenSSL – Release Strategy". OpenSSL Software Foundation. Retrieved 2016-09-26.
^ "OpenSSL 1.0.1 Series Release Notes". Archived from the original on 2015-01-20. Retrieved 2017-02-20.
^ "OpenSSL 1.0.2 Series Release Notes". Retrieved 2017-02-20.
^ "OpenSSL 1.1.0 Series Release Notes". Retrieved 2017-02-20.
^ ab Caswell, Matt (2018-09-11). "OpenSSL 1.1.1 Is Released - OpenSSL Blog". www.openssl.org. OpenSSL Foundation.
^ Inc., OpenSSL Foundation,. "OpenSSL 1.1.1 Is Released - OpenSSL Blog". www.openssl.org.
^ Caswell, Matt (2018-02-08). "Using TLS1.3 With OpenSSL - OpenSSL Blog". www.openssl.org. OpenSSL Foundation.
^ Caswell, Matt (2018-09-11). "OpenSSL 1.1.1 Is Released". www.openssl.org. OpenSSL Foundation.
^ abc "GOST engine OpenSSL 1.0.0 README". cvs.openssl.org. Archived from the original on 2013-04-15.
^ "OpenSSL source code, directory crypto/whrlpool". Retrieved 2017-08-29.
^ "Protecting data for the long term with forward secrecy". Retrieved 2012-11-05.
^ Validated FIPS 140-1 and FIPS 140-2 Cryptographic Modules. NIST. Retrieved 2012-12-19.
^ "Important Notes about OpenSSL and FIPS 140-2". openssl.org.
^ "NIST recertifies open source encryption module". gcn.com. Archived from the original on 2007-10-10.
^ "OpenSSL: Source, License". openssl.org.
^ "Licenses – Free Software Foundation". fsf.org.
^ "WGET 1.10.2 for Windows (win32)". users.ugent.be. Archived from the original on 2008-01-02.
^ "Releases of source and binaries". climm.org. Archived from the original on 12 February 2011. Retrieved 30 November 2010.
^ "Deluge LICENSE file". deluge-torrent.org. Retrieved 24 January 2013.
^ Salz, Rich (1 August 2015). "License Agreements and Changes Are Coming". openssl.org. Retrieved 23 August 2015.
^ "OpenSSL Re-licensing to Apache License v. 2.0 To Encourage Broader Use with Other FOSS Projects and Products". 2017-03-23. Archived from the original on 2018-07-18. Retrieved 2018-08-06.
^ "OpenSSL Updates Fix Critical Security Vulnerabilities [09 Aug 2014]". Retrieved 25 Aug 2014.
^ "OpenSSL ASN.1 asn1_d2i_read_bio() Heap Overflow Vulnerability". Cisco.
^ "ASN1 BIO vulnerability". OpenSSL.
^ "On the Security of RC4 in TLS". www.isg.rhul.ac.uk.
^ "research!rsc: Lessons from the Debian/OpenSSL Fiasco". research.swtch.com. Retrieved 2015-08-12.
^ "SSLkeys - Debian Wiki". debian.org. Retrieved 2015-06-19.
^ "Debian OpenSSL – Predictable PRNG Bruteforce SSH Exploit Python – Exploits Database". exploit-db.com. Retrieved 2015-08-12.
^ "DSA-1571-1 openssl – predictable random number generator". Debian. May 13, 2008.
^ OpenSSL.org (7 April 2014). "OpenSSL Security Advisory [07 Apr 2014]". Retrieved 9 April 2014.
^ OpenSSL (2014-04-07). "TLS heartbeat read overrun (CVE-2014-0160)". Retrieved 2014-04-08.
^ Codenomicon Ltd (2014-04-08). "Heartbleed Bug". Retrieved 2014-04-08.
^ "Man in Middle Attacks [04 Jun 2014]". Retrieved 25 Aug 2014.
^ "Why Heartbleed is dangerous? Exploiting CVE-2014-0160". IPSec.pl. 2014.
^ Mutton, Paul (8 April 2014). "Half a million widely trusted websites vulnerable to Heartbleed bug". Netcraft Ltd. Retrieved 8 April 2014.
^ "OpenSSL continues to bleed out more flaws – more critical vulnerabilities found". Cyberoam Threat Research Labs. 2014.
^ "CVE-2014-0224". CVE. 2014.
^ "OpenSSL Security Advisory [05 Jun 2014]". OpenSSL. 2014.
^ "OpenSSL Patches Severe Denial-of-Service Vulnerability [20 March 2015]". Brandon Stosh. 2015.
^ "High-severity bug in OpenSSL allows attackers to decrypt HTTPS traffic [28 Jan 2016]". 2016.
^ "security/assl: assl-1.5.0p0v0 – hide awful SSL API in a sane interface". OpenBSD ports. 2014-05-22. Retrieved 2015-02-10.
^ "OpenBSD has started a massive strip-down and cleanup of OpenSSL". OpenBSD journal. 2014-04-15.
^ "OpenBSD forks, prunes, fixes OpenSSL". ZDNet. 21 April 2014. Retrieved 21 April 2014.
^ https://boringssl.googlesource.com/boringssl/ BoringSSL
^ "Google unveils independent 'fork' of OpenSSL called 'BoringSSL'". Ars Technica. 2014-06-21.
^ "BoringSSL". Adam Langley's Weblog. 2014-06-20.
^ "BoringSSL wants to kill the excitement that led to Heartbleed". Sophos. 24 June 2014.
External links
Wikimedia Commons has media related to OpenSSL. |
- Official website
- OpenSSL Manpages
- OpenSSL Programming Guide
The OpenSSL License and the GPL by Mark McLoughlin- OpenSSL programming tutorial
- OpenSSL Community Wiki