vulnerabilities.cgi: Regard mitigations that only mitigate something still as vulnerable

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-05-22 11:08:43 +01:00
committed by Arne Fitzenreiter
parent a96bcf413a
commit 413f84e988

View File

@@ -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 = <FILE>;
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): (.*)$/) {