Skip to content

Commit

Permalink
Avoid RC4 by default. Closes nmap#972
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Oct 9, 2017
1 parent b536ba9 commit 9f494f6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#s wa Nmap Changelog ($Id$); -*-text-*-

o [Ncat][Nsock][GH#972] Remove RC4 from the list of TLS ciphers used by
default, in accordance with RFC 7465. [Codarren Velvindron]

o [NSE][GH#1022] Fix a false positive condition in ipmi-cipher-zero caused by
not checking the error code in responses. Implementations which return an
error are not vulnerable. [Juho Jokelainen]
Expand Down
2 changes: 1 addition & 1 deletion ncat/docs/ncat.xml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@
when connecting to servers or when accepting SSL connections from
clients. The syntax is described in the OpenSSL ciphers(1) man
page, and defaults to
<literal>ALL:!aNULL:!eNULL:!LOW:!EXP:!MD5:@STRENGTH</literal></para>
<literal>ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!MD5:@STRENGTH</literal></para>
</listitem>
</varlistentry>

Expand Down
2 changes: 1 addition & 1 deletion ncat/docs/ncatguide.xml
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ Content-Type: text/html; charset=UTF-8
client) or accept (as a server) is a matter of choice between the greatest
compatibility and the greatest security. The default set, expressed as an
OpenSSL cipherlist, is
<literal>ALL:!aNULL:!eNULL:!LOW:!EXP:!MD5:@STRENGTH</literal>, a reasonable balance
<literal>ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!MD5:@STRENGTH</literal>, a reasonable balance
between the two ends of the spectrum. To set a different priority or
initial choice, use the <option>--ssl-ciphers</option> option.
<indexterm><primary><option>--ssl-ciphers</option> (Ncat option)</primary></indexterm>
Expand Down
2 changes: 1 addition & 1 deletion ncat/ncat_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static void set_ssl_ctx_options(SSL_CTX *ctx)
bye("The --ssl-key and --ssl-cert options must be used together.");
}
if (o.sslciphers == NULL) {
if (!SSL_CTX_set_cipher_list(ctx, "ALL:!aNULL:!eNULL:!LOW:!EXP:!MD5:@STRENGTH"))
if (!SSL_CTX_set_cipher_list(ctx, "ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!MD5:@STRENGTH"))
bye("Unable to set OpenSSL cipher list: %s", ERR_error_string(ERR_get_error(), NULL));
}
else {
Expand Down
2 changes: 1 addition & 1 deletion ncat/ncat_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ SSL_CTX *setup_ssl_listen(void)

/* Secure ciphers list taken from Nsock. */
if (o.sslciphers == NULL) {
if (!SSL_CTX_set_cipher_list(sslctx, "ALL:!aNULL:!eNULL:!LOW:!EXP:!MD5:@STRENGTH"))
if (!SSL_CTX_set_cipher_list(sslctx, "ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!MD5:@STRENGTH"))
bye("Unable to set OpenSSL cipher list: %s", ERR_error_string(ERR_get_error(), NULL));
}
else {
Expand Down
2 changes: 1 addition & 1 deletion nsock/src/nsock_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* OpenSSL. To see exactly what ciphers are enabled, use the command
* openssl ciphers -v '...'
* where ... is the string below. */
#define CIPHERS_SECURE "ALL:!aNULL:!eNULL:!LOW:!EXP:!MD5:@STRENGTH"
#define CIPHERS_SECURE "ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!MD5:@STRENGTH"

/* This list of ciphers is for speed and compatibility, not security. Any cipher
* is accepted, and the list is sorted by speed based on Brian Hatch's
Expand Down

0 comments on commit 9f494f6

Please sign in to comment.