From 770e06654823bf3d8a30cd58f41071c1e4d09fe6 Mon Sep 17 00:00:00 2001 From: Dirk Date: Wed, 20 Jan 2021 08:48:55 +0100 Subject: [PATCH] Fix file output formatting for heartbleed Quotes were wrong for different results, which lead to some confusion for finding, cve and cwe --- testssl.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testssl.sh b/testssl.sh index 995f536..b86ea2d 100755 --- a/testssl.sh +++ b/testssl.sh @@ -15531,16 +15531,16 @@ run_heartbleed(){ out "likely " pr_svrty_critical "VULNERABLE (NOT ok)" [[ $DEBUG -lt 3 ]] && tm_out ", use debug >=3 to confirm" - fileout "$jsonID" "CRITICAL" "VULNERABLE $cve" "$cwe" "$hint" + fileout "$jsonID" "CRITICAL" "VULNERABLE" "$cve" "$cwe" "$hint" fi else pr_svrty_critical "VULNERABLE (NOT ok)" - fileout "$jsonID" "CRITICAL" "VULNERABLE $cve" "$cwe" "$hint" + fileout "$jsonID" "CRITICAL" "VULNERABLE" "$cve" "$cwe" "$hint" set_grade_cap "F" "Vulnerable to Heartbleed" fi else pr_svrty_best "not vulnerable (OK)" - fileout "$jsonID" "OK" "not vulnerable $cve" "$cwe" + fileout "$jsonID" "OK" "not vulnerable" "$cve" "$cwe" fi fi outln