Disable SSLv2 default build, default negotiation and weak ciphers.
SSLv2 is by default disabled at build-time. Builds that are not configured with "enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used, users who want to negotiate SSLv2 via the version-flexible SSLv23_method() will need to explicitly call either of: SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2); or SSL_clear_options(ssl, SSL_OP_NO_SSLv2); as appropriate. Even if either of those is used, or the application explicitly uses the version-specific SSLv2_method() or its client or server variants, SSLv2 ciphers vulnerable to exhaustive search key recovery have been removed. Specifically, the SSLv2 40-bit EXPORT ciphers, and SSLv2 56-bit DES are no longer available. Mitigation for CVE-2016-0800 Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
parent
8f651326a5
commit
56f1acf5ef
17
CHANGES
17
CHANGES
@ -4,6 +4,23 @@
|
|||||||
|
|
||||||
Changes between 1.0.1r and 1.0.1s [xx XXX xxxx]
|
Changes between 1.0.1r and 1.0.1s [xx XXX xxxx]
|
||||||
|
|
||||||
|
* Disable SSLv2 default build, default negotiation and weak ciphers. SSLv2
|
||||||
|
is by default disabled at build-time. Builds that are not configured with
|
||||||
|
"enable-ssl2" will not support SSLv2. Even if "enable-ssl2" is used,
|
||||||
|
users who want to negotiate SSLv2 via the version-flexible SSLv23_method()
|
||||||
|
will need to explicitly call either of:
|
||||||
|
|
||||||
|
SSL_CTX_clear_options(ctx, SSL_OP_NO_SSLv2);
|
||||||
|
or
|
||||||
|
SSL_clear_options(ssl, SSL_OP_NO_SSLv2);
|
||||||
|
|
||||||
|
as appropriate. Even if either of those is used, or the application
|
||||||
|
explicitly uses the version-specific SSLv2_method() or its client and
|
||||||
|
server variants, SSLv2 ciphers vulnerable to exhaustive search key
|
||||||
|
recovery have been removed. Specifically, the SSLv2 40-bit EXPORT
|
||||||
|
ciphers, and SSLv2 56-bit DES are no longer available.
|
||||||
|
[Viktor Dukhovni]
|
||||||
|
|
||||||
*) Disable SRP fake user seed to address a server memory leak.
|
*) Disable SRP fake user seed to address a server memory leak.
|
||||||
|
|
||||||
Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
|
Add a new method SRP_VBASE_get1_by_user that handles the seed properly.
|
||||||
|
@ -726,6 +726,7 @@ my %disabled = ( # "what" => "comment" [or special keyword "experimental
|
|||||||
"rfc3779" => "default",
|
"rfc3779" => "default",
|
||||||
"sctp" => "default",
|
"sctp" => "default",
|
||||||
"shared" => "default",
|
"shared" => "default",
|
||||||
|
"ssl2" => "default",
|
||||||
"store" => "experimental",
|
"store" => "experimental",
|
||||||
"unit-test" => "default",
|
"unit-test" => "default",
|
||||||
"zlib" => "default",
|
"zlib" => "default",
|
||||||
|
2
NEWS
2
NEWS
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
Major changes between OpenSSL 1.0.1r and OpenSSL 1.0.1s [under development]
|
Major changes between OpenSSL 1.0.1r and OpenSSL 1.0.1s [under development]
|
||||||
|
|
||||||
o
|
o Disable SSLv2 default build, default negotiation and weak ciphers.
|
||||||
|
|
||||||
Major changes between OpenSSL 1.0.1q and OpenSSL 1.0.1r [28 Jan 2016]
|
Major changes between OpenSSL 1.0.1q and OpenSSL 1.0.1r [28 Jan 2016]
|
||||||
|
|
||||||
|
@ -156,6 +156,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
128,
|
128,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# if 0
|
||||||
/* RC4_128_EXPORT40_WITH_MD5 */
|
/* RC4_128_EXPORT40_WITH_MD5 */
|
||||||
{
|
{
|
||||||
1,
|
1,
|
||||||
@ -171,6 +172,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
40,
|
40,
|
||||||
128,
|
128,
|
||||||
},
|
},
|
||||||
|
# endif
|
||||||
|
|
||||||
/* RC2_128_CBC_WITH_MD5 */
|
/* RC2_128_CBC_WITH_MD5 */
|
||||||
{
|
{
|
||||||
@ -188,6 +190,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
128,
|
128,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
# if 0
|
||||||
/* RC2_128_CBC_EXPORT40_WITH_MD5 */
|
/* RC2_128_CBC_EXPORT40_WITH_MD5 */
|
||||||
{
|
{
|
||||||
1,
|
1,
|
||||||
@ -203,6 +206,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
40,
|
40,
|
||||||
128,
|
128,
|
||||||
},
|
},
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifndef OPENSSL_NO_IDEA
|
# ifndef OPENSSL_NO_IDEA
|
||||||
/* IDEA_128_CBC_WITH_MD5 */
|
/* IDEA_128_CBC_WITH_MD5 */
|
||||||
@ -222,6 +226,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
},
|
},
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# if 0
|
||||||
/* DES_64_CBC_WITH_MD5 */
|
/* DES_64_CBC_WITH_MD5 */
|
||||||
{
|
{
|
||||||
1,
|
1,
|
||||||
@ -237,6 +242,7 @@ OPENSSL_GLOBAL const SSL_CIPHER ssl2_ciphers[] = {
|
|||||||
56,
|
56,
|
||||||
56,
|
56,
|
||||||
},
|
},
|
||||||
|
# endif
|
||||||
|
|
||||||
/* DES_192_EDE3_CBC_WITH_MD5 */
|
/* DES_192_EDE3_CBC_WITH_MD5 */
|
||||||
{
|
{
|
||||||
|
@ -1896,6 +1896,13 @@ SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth)
|
|||||||
*/
|
*/
|
||||||
ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
|
ret->options |= SSL_OP_LEGACY_SERVER_CONNECT;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Disable SSLv2 by default, callers that want to enable SSLv2 will have to
|
||||||
|
* explicitly clear this option via either of SSL_CTX_clear_options() or
|
||||||
|
* SSL_clear_options().
|
||||||
|
*/
|
||||||
|
ret->options |= SSL_OP_NO_SSLv2;
|
||||||
|
|
||||||
return (ret);
|
return (ret);
|
||||||
err:
|
err:
|
||||||
SSLerr(SSL_F_SSL_CTX_NEW, ERR_R_MALLOC_FAILURE);
|
SSLerr(SSL_F_SSL_CTX_NEW, ERR_R_MALLOC_FAILURE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user