From 76eca42ca0097b74bd2a6231a1713ecf3abfca19 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 1 May 2018 09:40:20 -0400 Subject: [PATCH] Remove extra space in BEAST output testssl.sh was inserting two spaces between the CBC ciphers detected by OpenSSL and those detected to tls_sockets(). This PR fixes the problem. This issue was previously fixed by https://github.com/drwetter/testssl.sh/commit/87fe0c15da90e60ce999f6711c40e9faa0a1a3a2, but that fix was accidentally removed by the next commit: https://github.com/drwetter/testssl.sh/commit/f3dc53f554f02bf8a74f1970e4c035a012fe0be7. --- testssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 63681b2..21598de 100755 --- a/testssl.sh +++ b/testssl.sh @@ -13722,9 +13722,9 @@ run_beast(){ done ciphers_found[i]=true if ( [[ "$DISPLAY_CIPHERNAMES" =~ openssl ]] && [[ "${ciph[i]}" != "-" ]] ) || [[ "${rfc_ciph[i]}" == "-" ]]; then - detected_cbc_ciphers+=" ${ciph[i]}" + detected_cbc_ciphers+="${ciph[i]} " else - detected_cbc_ciphers+=" ${rfc_ciph[i]}" + detected_cbc_ciphers+="${rfc_ciph[i]} " fi vuln_beast=true if "$WIDE" && ( [[ ${kx[i]} == "Kx=ECDH" ]] || [[ ${kx[i]} == "Kx=DH" ]] || [[ ${kx[i]} == "Kx=EDH" ]] ); then