From fd9887c5af2f53c0b863f5b8757a87466b0edbe2 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 3 Jun 2019 18:09:57 +0200 Subject: [PATCH] API: Harden default cipher list According to https://www.acunetix.com/blog/articles/tls-ssl-cipher-hardening/ --- doc/09-object-types.md | 2 +- lib/remote/apilistener.ti | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/09-object-types.md b/doc/09-object-types.md index 660b1e34b..8c1eb59cc 100644 --- a/doc/09-object-types.md +++ b/doc/09-object-types.md @@ -1121,7 +1121,7 @@ Configuration Attributes: accept\_config | Boolean | **Optional.** Accept zone configuration. Defaults to `false`. accept\_commands | Boolean | **Optional.** Accept remote commands. Defaults to `false`. max\_anonymous\_clients | Number | **Optional.** Limit the number of anonymous client connections (not configured endpoints and signing requests). - cipher\_list | String | **Optional.** Cipher list that is allowed. For a list of available ciphers run `openssl ciphers`. Defaults to `ALL:!LOW:!WEAK:!MEDIUM:!EXP:!NULL`. + cipher\_list | String | **Optional.** Cipher list that is allowed. For a list of available ciphers run `openssl ciphers`. Defaults to `ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256`. tls\_protocolmin | String | **Optional.** Minimum TLS protocol version. Since v2.11, only `TLSv1.2` is supported. Defaults to `TLSv1.2`. tls\_handshake\_timeout | Number | **Optional.** TLS Handshake timeout. Defaults to `10s`. access\_control\_allow\_origin | Array | **Optional.** Specifies an array of origin URLs that may access the API. [(MDN docs)](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Access-Control-Allow-Origin) diff --git a/lib/remote/apilistener.ti b/lib/remote/apilistener.ti index 20f59bb12..4217ce0ab 100644 --- a/lib/remote/apilistener.ti +++ b/lib/remote/apilistener.ti @@ -18,7 +18,7 @@ class ApiListener : ConfigObject [config, deprecated] String ca_path; [config] String crl_path; [config] String cipher_list { - default {{{ return "ALL:!LOW:!WEAK:!MEDIUM:!EXP:!NULL"; }}} + default {{{ return "ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256"; }}} }; [config] String tls_protocolmin { default {{{ return "TLSv1.2"; }}} -- 2.40.0