Windows Vuln False Positives (#20012)

This commit is contained in:
Tim Lee
2024-06-26 09:43:57 -06:00
committed by GitHub
parent 9a58f77b77
commit 4dce1f6623
3 changed files with 30 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
- fixed issue where some Windows applications were getting matched against Windows OS vulnerabilities
@@ -218,6 +218,28 @@ func GetKnownNVDBugRules() (CPEMatchingRules, error) {
},
IgnoreAll: true,
},
// Windows OS vulnerabilities without version constraints that should be ignored
// TODO(tim): This rule is too specific and should be generalized to ignore all
// Windows OS vulnerabilities in NVD
CPEMatchingRule{
CVEs: map[string]struct{}{
"CVE-2010-3143": {},
"CVE-2011-5049": {},
"CVE-2012-2972": {},
"CVE-2018-0598": {},
"CVE-2010-3888": {},
"CVE-2010-3139": {},
"CVE-2021-36958": {},
"CVE-2008-6194": {},
"CVE-2010-2157": {},
"CVE-2011-3389": {},
"CVE-2012-2971": {},
"CVE-2018-0599": {},
"CVE-2010-3889": {},
"CVE-2011-0638": {},
},
IgnoreAll: true,
},
}
for i, rule := range rules {
+7
View File
@@ -327,6 +327,13 @@ func TestTranslateCPEToCVE(t *testing.T) {
},
continuesToUpdate: true,
},
"cpe:2.3:a:microsoft:365_apps:16.0.17628.20144:*:*:*:*:windows:*:*": {
includedCVEs: []cve{
{ID: "CVE-2024-21402"},
},
excludedCVEs: []string{"CVE-2011-5049"}, // OS vulnerability
continuesToUpdate: true,
},
}
cveOSTests := []struct {