mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix missing CVE scores (#7901)
This commit is contained in:
parent
525463c55e
commit
c9d7c5fb0e
2 changed files with 11 additions and 1 deletions
|
|
@ -71,7 +71,13 @@ function cve_utils.getCVE(cve_id)
|
|||
rsp.exploitabilityScore = v1.exploitabilityScore
|
||||
break
|
||||
end
|
||||
elseif(c.metrics.cvssMetricV2 ~= nil) then
|
||||
for _,v1 in pairs(c.metrics.cvssMetricV2) do
|
||||
rsp.baseScore = v1.cvssData.baseScore
|
||||
rsp.exploitabilityScore = v1.exploitabilityScore
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
for _,d in pairs(c.descriptions) do
|
||||
rsp.description = d.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue