Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display CVSS vectors and allow their search #1239

Open
TG1999 opened this issue Jul 19, 2023 · 1 comment
Open

Display CVSS vectors and allow their search #1239

TG1999 opened this issue Jul 19, 2023 · 1 comment

Comments

@TG1999
Copy link
Contributor

TG1999 commented Jul 19, 2023

We currently do not display CVSS vectors in the vulnerability details view and do not allow the the capability to search by a CVSS vector

@ziadhany
Copy link
Collaborator

I think using this may be a good start

>>> from cvss import CVSS3
>>> v = CVSS3("CVSS:3.0/AV:L/UI:N/AC:L/PR:H/C:N/I:L/A:H/S:C/E:U/RL:W/RC:X")
>>> v.as_json()
{'version': '3.0',
 'vectorString': 'CVSS:3.0/AV:L/UI:N/AC:L/PR:H/C:N/I:L/A:H/S:C/E:U/RL:W/RC:X',
 'attackVector': 'LOCAL',
 'attackComplexity': 'LOW',
 'privilegesRequired': 'HIGH',
 'userInteraction': 'NONE',
 'scope': 'CHANGED',
 'confidentialityImpact': 'NONE',
 'integrityImpact': 'LOW',
 'availabilityImpact': 'HIGH',
 'baseScore': 6.7,
 'baseSeverity': 'MEDIUM',
 'exploitCodeMaturity': 'UNPROVEN',
 'remediationLevel': 'WORKAROUND',
 'reportConfidence': 'NOT_DEFINED',
 'temporalScore': 6.0,
 'temporalSeverity': 'MEDIUM',
 'confidentialityRequirement': 'NOT_DEFINED',
 'integrityRequirement': 'NOT_DEFINED',
 'availabilityRequirement': 'NOT_DEFINED',
 'modifiedAttackVector': 'LOCAL',
 'modifiedAttackComplexity': 'LOW',
 'modifiedPrivilegesRequired': 'HIGH',
 'modifiedUserInteraction': 'NONE',
 'modifiedConfidentialityImpact': 'NONE',
 'modifiedIntegrityImpact': 'LOW',
 'modifiedAvailabilityImpact': 'HIGH',
 'environmentalScore': 6.0,
 'environmentalSeverity': 'MEDIUM'}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants