-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from n3rada/main
Solving issue #33, refreshing the README and adapt to FIRST commits
- Loading branch information
Showing
3 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# CVSS v4.0 calculator | ||
The CVSS v4.0 Calculator is built based on the Common Vulnerability Scoring System (CVSS) version 4.0 [Specification Document](https://www.first.org/cvss/v4.0/specification-document). This document serves as the authoritative reference for understanding how to calculate the severity of vulnerabilities. | ||
|
||
Deployed: https://redhatproductsecurity.github.io/cvss-v4-calculator/ | ||
This project is a web-based application that calculates the CVSS score for a given vulnerability. The core logic is implemented using JavaScript classes that encapsulate the CVSS metrics, scoring calculations, and vector string manipulations: | ||
|
||
- The `Vector` class handles the CVSS vector string and the associated metrics. It is the backbone of the application's logic, providing methods to update and validate the vector string, compute equivalent classes, and derive metrics values. | ||
- The `CVSS40` class is responsible for calculating the CVSS v4.0 score. It interacts with an instance of the `Vector` class to derive the score and determine the severity level. | ||
|
||
The application is live and can be accessed at [CVSS v4.0 Calculator](https://redhatproductsecurity.github.io/cvss-v4-calculator/). | ||
|
||
## License | ||
This project is licensed under the BSD-2-Clause License. See the [LICENSE](./LICENSE) file for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no"> | ||
<title>CVSS v4.0 calculator</title> | ||
<title>Common Vulnerability Scoring System Version 4.0 Calculator</title> | ||
<!-- External Libraries --> | ||
<script src="https://unpkg.com/[email protected]/dist/vue.global.prod.js"></script> | ||
<!-- Stylesheets --> | ||
|
@@ -41,7 +41,8 @@ | |
<div id="app" class="container"> | ||
<!-- Header Section --> | ||
<header id="header"> | ||
<h4 class="page-title">CVSS v4.0 calculator</h4> | ||
<img alt="CVSS logo" src="https://first.org/cvss/identity/cvssv4_web.png" width="125"> | ||
<h3 class="page-title">Common Vulnerability Scoring System Version 4.0 Calculator</h3> | ||
<mark | ||
class="tooltip c-hand" | ||
aria-label="Click to copy vector to clipboard" | ||
|
@@ -78,11 +79,32 @@ <h5 class="score-line"> | |
|
||
<!-- Metrics Section --> | ||
<main class="columns" :style="{'margin-top': header_height + 10 + 'px'}"> | ||
<h6 id="cvssReference" style="width: 100%; max-width: 1065px; margin: 10px;"> | ||
Hover over metric names and metric values for a summary of the information in the official | ||
<a href="https://www.first.org/cvss/v4.0/specification-document" target="_blank"> | ||
CVSS v4.0 Specification Document | ||
</a>. | ||
The Specification is available along with a | ||
<a href="https://www.first.org/cvss/v4.0/user-guide" target="_blank"> | ||
User Guide | ||
</a> | ||
providing additional scoring guidance, an | ||
<a href="https://www.first.org/cvss/v4.0/examples" target="_blank"> | ||
Examples document | ||
</a> | ||
of scored vulnerabilities, a set of | ||
<a href="https://www.first.org/cvss/v4.0/faq" target="_blank"> | ||
Frequently Asked Questions (FAQ) | ||
</a>, and both JSON and XML Data Representations for all versions of CVSS, including the | ||
<a href="https://www.first.org/cvss/cvss-v4.0.json" target="_blank"> | ||
JSON format | ||
</a>. | ||
</h6> | ||
<div class="column col-10 col-xl-12"> | ||
<div class="metric-type" v-for="(metricTypeData, metricType) in cvssConfigData"> | ||
<h4 class="text-center"> | ||
{{ metricType }} | ||
<span class="tooltip tooltip-left c-hand text-small" :data-tooltip="'This category is usually filled \n by the ' + metricTypeData.fill"> | ||
<span class="tooltip tooltip-left c-hand text-small" :data-tooltip="'This category should be filled \n by the ' + metricTypeData.fill"> | ||
<sup>?</sup> | ||
</span> | ||
</h4> | ||
|