1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
//! Scope (S)
use crate::;
use ToOwned;
use ;
/// Scope (S) - CVSS v3.1 Base Metric Group
///
/// Described in CVSS v3.1 Specification: Section 2.2:
/// <https://www.first.org/cvss/specification-document#t8>
///
/// > The Scope metric captures whether a vulnerability in one vulnerable
/// > component impacts resources in components beyond its security scope.
/// >
/// > Formally, a security authority is a mechanism (e.g., an application,
/// > an operating system, firmware, a sandbox environment) that defines and
/// > enforces access control in terms of how certain subjects/actors
/// > (e.g., human users, processes) can access certain restricted
/// > objects/resources (e.g., files, CPU, memory) in a controlled manner.
/// > All the subjects and objects under the jurisdiction of a single security
/// > authority are considered to be under one security scope. If a
/// > vulnerability in a vulnerable component can affect a component which is
/// > in a different security scope than the vulnerable component, a Scope
/// > change occurs. Intuitively, whenever the impact of a vulnerability
/// > breaches a security/trust boundary and impacts components outside the
/// > security scope in which vulnerable component resides, a Scope change occurs.
/// >
/// > The security scope of a component encompasses other components that
/// > provide functionality solely to that component, even if these other
/// > components have their own security authority. For example, a database
/// > used solely by one application is considered part of that application’s
/// > security scope even if the database has its own security authority,
/// > e.g., a mechanism controlling access to database records based on
/// > database users and associated database privileges.
/// >
/// > The Base Score is greatest when a scope change occurs.