diff options
author | Paul Duncan <pabs@pablotron.org> | 2022-02-16 03:08:44 -0500 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2022-02-16 03:08:44 -0500 |
commit | 47d25cba0fa216342ce3cc5f1cb3a8bd8d17c824 (patch) | |
tree | a08684e71f6ca980cab1ebfcb3bc547bfe52010b /cvss/v3metric.go | |
parent | 093cc60affd28717f762da672fc6ee8b48d67372 (diff) | |
download | cvez-47d25cba0fa216342ce3cc5f1cb3a8bd8d17c824.tar.bz2 cvez-47d25cba0fa216342ce3cc5f1cb3a8bd8d17c824.zip |
cvss: 100% v31vector test coverage
Diffstat (limited to 'cvss/v3metric.go')
-rw-r--r-- | cvss/v3metric.go | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/cvss/v3metric.go b/cvss/v3metric.go index df408fd..c0f00be 100644 --- a/cvss/v3metric.go +++ b/cvss/v3metric.go @@ -79,6 +79,7 @@ const ( v3MACHigh // MAC:H v3MPRNotDefined // MPR:X + v3MPRNone // MPR:N v3MPRLow // MPR:L v3MPRHigh // MPR:H @@ -86,9 +87,9 @@ const ( v3MUINone // MUI:N v3MUIRequired // MUI:R - v3MSNotDefined // MMS:X - v3MSUnchanged // MMS:U - v3MSChanged // MMS:C + v3MSNotDefined // MS:X + v3MSUnchanged // MS:U + v3MSChanged // MS:C v3MCNotDefined // MC:X v3MCHigh // MC:H @@ -183,6 +184,7 @@ var v3KeyLut = map[v3Metric]v3Key { v3MACHigh: v3ModifiedAttackComplexity, // MAC:H v3MPRNotDefined: v3ModifiedPrivilegesRequired, // MPR:X + v3MPRNone: v3ModifiedPrivilegesRequired, // MPR:N v3MPRLow: v3ModifiedPrivilegesRequired, // MPR:L v3MPRHigh: v3ModifiedPrivilegesRequired, // MPR:H @@ -190,9 +192,9 @@ var v3KeyLut = map[v3Metric]v3Key { v3MUINone: v3ModifiedUserInteraction, // MUI:N v3MUIRequired: v3ModifiedUserInteraction, // MUI:R - v3MSNotDefined: v3ModifiedScope, // MMS:X - v3MSUnchanged: v3ModifiedConfidentiality, // MMS:U - v3MSChanged: v3ModifiedIntegrity, // MMS:C + v3MSNotDefined: v3ModifiedScope, // MS:X + v3MSUnchanged: v3ModifiedScope, // MS:U + v3MSChanged: v3ModifiedScope, // MS:C v3MCNotDefined: v3ModifiedConfidentiality, // MC:X v3MCHigh: v3ModifiedConfidentiality, // MC:H @@ -285,6 +287,7 @@ var v3MetricStrLut = map[string]v3Metric { "MAC:H": v3MACHigh, "MPR:X": v3MPRNotDefined, + "MPR:N": v3MPRNone, "MPR:L": v3MPRLow, "MPR:H": v3MPRHigh, @@ -292,9 +295,9 @@ var v3MetricStrLut = map[string]v3Metric { "MUI:N": v3MUINone, "MUI:R": v3MUIRequired, - "MMS:X": v3MSNotDefined, - "MMS:U": v3MSUnchanged, - "MMS:C": v3MSChanged, + "MS:X": v3MSNotDefined, + "MS:U": v3MSUnchanged, + "MS:C": v3MSChanged, "MC:X": v3MCNotDefined, "MC:H": v3MCHigh, |