mirror of
https://github.com/freelabz/secator
synced 2026-05-24 10:08:23 +00:00
fix(search_vulns): cvss score not pulled properly (#1082)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed CVSS score retrieval for vulnerability data to extract values from the correct data structure, with automatic fallback to default values when data is missing. This ensures consistent and accurate severity reporting across all vulnerability searches. [](https://app.coderabbit.ai/change-stack/freelabz/secator/pull/1082) <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
029516195f
commit
9d2ccf5546
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ class search_vulns(Vuln):
|
|||
confidence = 'high'
|
||||
tags = search_vulns.extract_tags(vuln_data)
|
||||
exploits = vuln_data.get('exploits', [])
|
||||
cvss_score = float(vuln_data.get('cvss', 0))
|
||||
cvss_score = float(vuln_data.get('severity', {}).get('CVSS', {}).get('score', 0))
|
||||
extra_data = search_vulns.extract_extra_data(vuln_data)
|
||||
extra_data['service_name'] = self.inputs[0] if self.inputs else ''
|
||||
references = search_vulns.extract_references(vuln_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue