[][src]Enum cvss::v3::base::pr::PrivilegesRequired

pub enum PrivilegesRequired {
    High,
    Low,
    None,
}

Privileges Required (PR) - CVSS v3.1 Base Metric Group

Described in CVSS v3.1 Specification: Section 2.1.3: https://www.first.org/cvss/specification-document#t6

This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. The Base Score is greatest if no privileges are required.

Variants

High

High (H)

The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files.

Low

Low (L)

The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges has the ability to access only non-sensitive resources.

None

None (N)

The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the the vulnerable system to carry out an attack.

Methods

impl PrivilegesRequired[src]

pub fn scoped_score(self, scope_change: bool) -> f64[src]

Score when accounting for scope change

Trait Implementations

impl Metric for PrivilegesRequired[src]

impl Eq for PrivilegesRequired[src]

impl Clone for PrivilegesRequired[src]

impl PartialOrd<PrivilegesRequired> for PrivilegesRequired[src]

impl Ord for PrivilegesRequired[src]

impl PartialEq<PrivilegesRequired> for PrivilegesRequired[src]

impl Copy for PrivilegesRequired[src]

impl Display for PrivilegesRequired[src]

impl Debug for PrivilegesRequired[src]

impl FromStr for PrivilegesRequired[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]