aboutsummaryrefslogtreecommitdiff
path: root/dbstore/dbstore_test.go
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-20 12:06:43 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-20 12:06:43 -0500
commit87c0c8d7ed4eb334dbd084d0ab0040589071b111 (patch)
tree269849b568fa5e27847af26c2ddf12e6bc36a815 /dbstore/dbstore_test.go
parent14dc55d984a9791aeb7d242427a3d54f879f678c (diff)
downloadcvez-87c0c8d7ed4eb334dbd084d0ab0040589071b111.tar.bz2
cvez-87c0c8d7ed4eb334dbd084d0ab0040589071b111.zip
dbstore: shrink CVE FTS index (test index from 120M to 86M) by removing all IDs except cve_id, concatenating reference tags, and removing severities
Diffstat (limited to 'dbstore/dbstore_test.go')
-rw-r--r--dbstore/dbstore_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dbstore/dbstore_test.go b/dbstore/dbstore_test.go
index 5ec2103..69327d9 100644
--- a/dbstore/dbstore_test.go
+++ b/dbstore/dbstore_test.go
@@ -1027,20 +1027,20 @@ func TestCveSearch(t *testing.T) {
exp: []CveSearchRow {
CveSearchRow {
Id: 9315,
- CveId: getTestCveId(t, "CVE-2021-1366"),
+ NvdId: getTestCveId(t, "CVE-2021-1366"),
Description: "A vulnerability in the interprocess communication (IPC) channel of Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to perform a DLL hijacking attack on an affected device if the VPN Posture (HostScan) Module is installed on the AnyConnect client. This vulnerability is due to insufficient validation of resources that are loaded by the application at run time. An attacker could exploit this vulnerability by sending a crafted IPC message to the AnyConnect process. A successful exploit could allow the attacker to execute arbitrary code on the affected machine with SYSTEM privileges. To exploit this vulnerability, the attacker needs valid credentials on the Windows system.",
V3BaseScore: nvd_feed.Score(uint8(78)),
V3Severity: nvd_feed.SeverityHigh,
- Rank: -36.487476,
+ Rank: -37.51353,
},
CveSearchRow {
Id: 9495,
- CveId: getTestCveId(t, "CVE-2021-1567"),
+ NvdId: getTestCveId(t, "CVE-2021-1567"),
Description: "A vulnerability in the DLL loading mechanism of Cisco AnyConnect Secure Mobility Client for Windows could allow an authenticated, local attacker to perform a DLL hijacking attack on an affected device if the VPN Posture (HostScan) Module is installed on the AnyConnect client. This vulnerability is due to a race condition in the signature verification process for DLL files that are loaded on an affected device. An attacker could exploit this vulnerability by sending a series of crafted interprocess communication (IPC) messages to the AnyConnect process. A successful exploit could allow the attacker to execute arbitrary code on the affected device with SYSTEM privileges. To exploit this vulnerability, the attacker must have valid credentials on the Windows system.",
V3BaseScore: nvd_feed.Score(uint8(67)),
V3Severity: nvd_feed.SeverityMedium,
- Rank: -34.62201,
+ Rank: -35.5376,
},
},
}}