2017 © Pedro Peláez
 

library cvss

Common Vulnerability Scoring System Version

image

picoss/cvss

Common Vulnerability Scoring System Version

  • Thursday, April 6, 2017
  • by picoss
  • Repository
  • 1 Watchers
  • 0 Stars
  • 456 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 10 Versions
  • 2 % Grown

The README.md

CVSS

Build Status, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Common Vulnerability Scoring System (CVSS) provides a robust and useful scoring system for IT vulnerabilities., (*3)

See https://www.first.org/cvss for more informations., (*4)

Documentation

1 - Installation

Dowload the CVSS library using composer:, (*5)

composer require picoss/cvss

2 - Usage

2.1 Vector parser

First, you need to give the CVSSv3 calculator a valid CVSS vector:, (*6)

use Picoss\Cvss;

$cvss = new Cvss3();
$cvss->setVector('CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N');

Base metrics (AV,AC,PR,UI,S,C,I and A) must be defined., (*7)

An undefined metric will throw the following error:, (*8)

Symfony\Component\OptionsResolver\Exception\UndefinedOptionsException

A missing metric will throw the following error:, (*9)

Symfony\Component\OptionsResolver\Exception\MissingOptionsException

A wrong metric value will throw the following error:, (*10)

Symfony\Component\OptionsResolver\Exception\InvalidOptionsException

Once the vector is valid, you will able to get several informations about the vector., (*11)

2.1 Scores

Score is float number from 0 to 10. CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N vector has a 2.7 base score., (*12)

2.1.1 Base score

use Picoss\Cvss;

$cvss = new Cvss3();
$cvss->setVector('CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N');

echo 'Base score: ' $cvss->getBaseScore();
// Base score: 0

2.1.2 Temporal score

use Picoss\Cvss;

$cvss = new Cvss3();
$cvss->setVector('CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N/E:U/RL:T/RC:C');

echo 'Base score: ' $cvss->getBaseScore();
// Base score: 2.7
echo 'Temporal score: ' $cvss->getTemporalScore();
// Temporal score: 2.4

2.1.2 Environmental score

use Picoss\Cvss;

$cvss = new Cvss3();
$cvss->setVector('CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:T/RC:U/CR:H/IR:M/AR:H/MAV:A/MAC:H/MPR:L/MUI:R/MS:U/MC:H/MI:N/MA:L');

echo 'Base score: ' $cvss->getBaseScore();
// Base score: 9.1
echo 'Temporal score: ' $cvss->getTemporalScore();
// Temporal score: 7.4
echo 'Environmental score: ' $cvss->getEnvironmentalScore();
// Environmental score: 7.4

2.2 Qualitative Severity Rating Scale

All score can be mapped to a qualitative rating, defined in the table bellow:, (*13)

Value Textual representation CVSS Score
N None 0.0
L Low 0.1 - 3.9
M Medium 4.0 - 6.9
H High 7.0 - 8.9
C Critical 9.0 - 10.0

The Versions

06/04 2017

dev-develop

dev-develop

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

06/04 2017

dev-master

9999999-dev

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

06/04 2017

1.3.4

1.3.4.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

25/01 2017

1.3.3

1.3.3.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

24/01 2017

1.3.2

1.3.2.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

24/01 2017

1.3.1

1.3.1.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

24/01 2017

1.3

1.3.0.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

23/01 2017

1.2

1.2.0.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

23/01 2017

1.1

1.1.0.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3

23/01 2017

1.0

1.0.0.0

Common Vulnerability Scoring System Version

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

security cvss cvss3