From 61498b76b6f2b85b2a6674687c0edd19ed105be6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 22 May 2019 11:08:43 +0100 Subject: [PATCH] vulnerabilities.cgi: Regard mitigations that only mitigate something still as vulnerable Signed-off-by: Michael Tremer --- html/cgi-bin/vulnerabilities.cgi | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/html/cgi-bin/vulnerabilities.cgi b/html/cgi-bin/vulnerabilities.cgi index b7e11c7100..74d2220170 100644 --- a/html/cgi-bin/vulnerabilities.cgi +++ b/html/cgi-bin/vulnerabilities.cgi @@ -125,12 +125,6 @@ for my $vuln (sort keys %VULNERABILITIES) { $colour = "white"; $bgcolour = ${Header::colourred}; - # Mitigated but smt is enabled - } elsif ($status eq "Mitigation-SMT") { - $status_message = $Lang::tr{'mitigated'}; - $colour = "white"; - $bgcolour = ${Header::colourred}; - # Mitigated } elsif ($status eq "Mitigation") { $status_message = $Lang::tr{'mitigated'}; @@ -233,8 +227,9 @@ sub check_status($) { my $status = ; close(FILE); + # Fix status when something has been mitigated, but not fully, yet if ($status =~ /^(Mitigation): (.*vulnerable.*)$/) { - return ("Mitigation-SMT", $2); + return ("Vulnerable", $2); } if ($status =~ /^(Vulnerable|Mitigation): (.*)$/) { -- 2.39.2