0llirocks / cvss-suite

CvssSuite - This Ruby gem helps you to process the vector of the Common Vulnerability Scoring System.
https://cvss-suite.0lli.rocks
Other
23 stars 15 forks source link

Add static parameters for CVSS attributes and their options #8

Open fridan opened 5 years ago

fridan commented 5 years ago

When creating input forms for CVSS vectors, it is tedious and badly maintainable to create all the necessary form items and their valid options by hand.

Instead it would be much easier to have a static method with which to retrieve all CVSS metrics (i.e. attack vector, attack complexity, scope, etc.) and their corresponding options. One could then iterate over them in order to generate the input fields as desired.

However there is no static methods to do so, forcing one to create a "dummy" CVSS vector, in order to iterate over all the various metrics.