mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
macOS VirtualBox false negative (#21646)
This commit is contained in:
parent
a4fb3f45a1
commit
8542a823a7
3 changed files with 17 additions and 0 deletions
1
changes/20846-vuln-virtual-box
Normal file
1
changes/20846-vuln-virtual-box
Normal file
|
|
@ -0,0 +1 @@
|
|||
- resolved an issue where virtual box for macOS wasn't matching against the vm_virtualbox NVD product name
|
||||
|
|
@ -588,6 +588,14 @@ func expandCPEAliases(cpeItem *wfn.Attributes) []*wfn.Attributes {
|
|||
}
|
||||
}
|
||||
|
||||
for _, cpeItem := range cpeItems {
|
||||
if cpeItem.Vendor == "oracle" && cpeItem.Product == "virtualbox" {
|
||||
cpeItem2 := *cpeItem
|
||||
cpeItem2.Product = "vm_virtualbox"
|
||||
cpeItems = append(cpeItems, &cpeItem2)
|
||||
}
|
||||
}
|
||||
|
||||
return cpeItems
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -347,6 +347,14 @@ func TestTranslateCPEToCVE(t *testing.T) {
|
|||
},
|
||||
continuesToUpdate: true,
|
||||
},
|
||||
// Tests the expandCPEAliases rule for virtualbox on macOS
|
||||
"cpe:2.3:a:oracle:virtualbox:7.0.6:*:*:*:*:macos:*:*": {
|
||||
includedCVEs: []cve{
|
||||
{ID: "CVE-2023-21989", resolvedInVersion: "7.0.8"},
|
||||
{ID: "CVE-2024-21141", resolvedInVersion: "7.0.20"},
|
||||
},
|
||||
continuesToUpdate: true,
|
||||
},
|
||||
}
|
||||
|
||||
cveOSTests := []struct {
|
||||
|
|
|
|||
Loading…
Reference in a new issue