fix(report): ignore exploits of no-cve-id vulns (#906)

This commit is contained in:
Kota Kanbe
2019-09-13 12:49:57 +09:00
committed by GitHub
parent be659ae094
commit 2b02807ef0
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -624,7 +624,7 @@ func summaryLines(r models.ScanResult) string {
exploits := ""
if 0 < len(vinfo.Exploits) {
exploits = " POC"
exploits = "POC"
}
var cols []string