1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Vulners.nse: respect mincvss unless cvss is missing or is 0 for exploits

This commit is contained in:
dmiller
2022-07-29 15:21:15 +00:00
parent 9a1ba979b0
commit d66644be63

View File

@@ -99,7 +99,7 @@ function make_links(vulns)
}
-- NOTE[gmedian]: exploits seem to have cvss == 0, so print them anyway
if v.is_exploit or (v.cvss and mincvss <= v.cvss) then
if not v.cvss or (v.cvss == 0 and v.is_exploit) or mincvss <= v.cvss then
setmetatable(v, cve_meta)
output[#output+1] = v
end