fix(report): ignore exploits of no-cve-id vulns (#906)
This commit is contained in:
@@ -44,6 +44,9 @@ func FillWithExploit(driver db.DB, r *models.ScanResult) (nExploitCve int, err e
|
||||
return 0, nil
|
||||
}
|
||||
for cveID, vuln := range r.ScannedCves {
|
||||
if cveID == "" {
|
||||
continue
|
||||
}
|
||||
es := driver.GetExploitByCveID(cveID)
|
||||
if len(es) == 0 {
|
||||
continue
|
||||
|
||||
@@ -624,7 +624,7 @@ func summaryLines(r models.ScanResult) string {
|
||||
|
||||
exploits := ""
|
||||
if 0 < len(vinfo.Exploits) {
|
||||
exploits = " POC"
|
||||
exploits = "POC"
|
||||
}
|
||||
|
||||
var cols []string
|
||||
|
||||
Reference in New Issue
Block a user