From 1ee4db4e41c23e74ad4723ad69e48a3efc3f48a6 Mon Sep 17 00:00:00 2001 From: David Cooper Date: Tue, 25 Jul 2017 13:24:29 -0400 Subject: [PATCH] std_cipherlists() and has_server_protocol() `std_cipherlists()` uses `has_server_protocol()` to determine whether to test for ciphers using SSLv2. However, this was resulting in false negatives due to #759. This PR removes the `has_server_protocol()` check so that SSLv2 is checked whenever the connection attempt with the TLSv1.2 ClientHello failed. --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index 24a2796..23f5343 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2276,7 +2276,7 @@ std_cipherlists() { sclient_success=$? [[ $sclient_success -eq 2 ]] && sclient_success=0 fi - if [[ $sclient_success -ne 0 ]] && has_server_protocol "ssl2"; then + if [[ $sclient_success -ne 0 ]]; then if ( [[ -z "$6" ]] || "$FAST" ) && "$HAS_SSL2" && listciphers "$1" -ssl2; then $OPENSSL s_client -cipher "$1" $BUGS $STARTTLS -connect $NODEIP:$PORT $PROXY -ssl2 2>$ERRFILE >$TMPFILE