Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Cvss2ScoringEngine

Implements a service offering CVSS v2 vulnerability scoring.

remarks

Consumers should ensure that they make sure of the validation features built in to this class in the form of the validate and isValid functions. Attempting to call computeScore on an instance with an invalid configuration will raise an exception.

Hierarchy

  • Cvss2ScoringEngine

Implements

  • CvssScoringEngine

Index

Constructors

constructor

Properties

Private _accessComplexity

_accessComplexity: AccessComplexity

Private _accessVector

_accessVector: AccessVector

Private _authentication

_authentication: Authentication

Private _availabilityImpact

_availabilityImpact: Impact

Private _availabilityRequirement

_availabilityRequirement: ImpactSubscore

Private _collateralDamagePotential

_collateralDamagePotential: CollateralDamagePotential

Private _confidentialityImpact

_confidentialityImpact: Impact

Private _confidentialityRequirement

_confidentialityRequirement: ImpactSubscore

Private _exploitability

_exploitability: Exploitability

Private _integrityImpact

_integrityImpact: Impact

Private _integrityRequirement

_integrityRequirement: ImpactSubscore

Private _remediationLevel

_remediationLevel: RemediationLevel

Private _reportConfidence

_reportConfidence: ReportConfidence

Private _targetDistribution

_targetDistribution: TargetDistribution

Accessors

accessComplexity

accessVector

authentication

availabilityImpact

  • get availabilityImpact(): Impact
  • set availabilityImpact(availabilityImpact: Impact): void

availabilityRequirement

collateralDamagePotential

confidentialityImpact

  • get confidentialityImpact(): Impact
  • set confidentialityImpact(confidentialityImpact: Impact): void

confidentialityRequirement

exploitability

integrityImpact

  • get integrityImpact(): Impact
  • set integrityImpact(integrityImpact: Impact): void

integrityRequirement

remediationLevel

reportConfidence

targetDistribution

Methods

Private computeAdjustedBaseScore

  • computeAdjustedBaseScore(): number

Private computeAdjustedImpactScore

  • computeAdjustedImpactScore(): number

Private computeAdjustedTemporalScore

  • computeAdjustedTemporalScore(): number

Private computeBaseScore

  • computeBaseScore(): number

Private computeEnvironmentalScore

  • computeEnvironmentalScore(): number

Private computeExploitabilityScore

  • computeExploitabilityScore(): number

Private computeImpactScore

  • computeImpactScore(): number

Private computeOverallScore

  • computeOverallScore(): number

computeScore

Private computeTemporalScore

  • computeTemporalScore(): number

isEnvironmentalScoreDefined

  • isEnvironmentalScoreDefined(): boolean
  • Gets whether or not an environmental score is defined.

    Returns boolean

    true if an environmental score is defined, otherwise false

isTemporalScoreDefined

  • isTemporalScoreDefined(): boolean
  • Gets whether or not a temporal score is defined.

    Returns boolean

    true if a temporal score is defined, otherwise false

isValid

  • isValid(): boolean

validate

  • validate(): ScoreValidationError[]

Static Private impactFactor

  • impactFactor(impact: number): number
  • Converts an impact score to an impact factor.

    Parameters

    • impact: number

      the impact score to convert

    Returns number

    the converted impact factor

Static Private renderAccessComplexity

Static Private renderAccessVector

Static Private renderAuthentication

Static Private renderCollateralDamagePotential

Static Private renderExploitability

Static Private renderImpact

  • renderImpact(impact: Impact): number

Static Private renderImpactSubscore

Static Private renderRemediationLevel

Static Private renderReportConfidence

Static Private renderTargetDistribution

Generated using TypeDoc