lib/cvss_suite/cvss3/cvss3_temporal.rb in cvss-suite-3.0.1 vs lib/cvss_suite/cvss3/cvss3_temporal.rb in cvss-suite-3.1.0
- old
+ new
@@ -30,25 +30,25 @@
private
def init_properties
@properties.push(@exploit_code_maturity =
- CvssProperty.new(name: 'Exploit Code Maturity', abbreviation: 'E', position: [8],
+ CvssProperty.new(name: 'Exploit Code Maturity', abbreviation: 'E',
values: [{ name: 'Not Defined', abbreviation: 'X', weight: 1.0 },
{ name: 'Unproven', abbreviation: 'U', weight: 0.91 },
{ name: 'Proof-of-Concept', abbreviation: 'P', weight: 0.94 },
{ name: 'Functional', abbreviation: 'F', weight: 0.97 },
{ name: 'High', abbreviation: 'H', weight: 1.0 }]))
@properties.push(@remediation_level =
- CvssProperty.new(name: 'Remediation Level', abbreviation: 'RL', position: [9],
+ CvssProperty.new(name: 'Remediation Level', abbreviation: 'RL',
values: [{ name: 'Not Defined', abbreviation: 'X', weight: 1.0 },
{ name: 'Official Fix', abbreviation: 'O', weight: 0.95 },
{ name: 'Temporary Fix', abbreviation: 'T', weight: 0.96 },
{ name: 'Workaround', abbreviation: 'W', weight: 0.97 },
{ name: 'Unavailable', abbreviation: 'U', weight: 1.0 }]))
@properties.push(@report_confidence =
- CvssProperty.new(name: 'Report Confidence', abbreviation: 'RC', position: [10],
+ CvssProperty.new(name: 'Report Confidence', abbreviation: 'RC',
values: [{ name: 'Not Defined', abbreviation: 'X', weight: 1.0 },
{ name: 'Unknown', abbreviation: 'U', weight: 0.92 },
{ name: 'Reasonable', abbreviation: 'R', weight: 0.96 },
{ name: 'Confirmed', abbreviation: 'C', weight: 1.0 }]))
end