You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
toComponent (name, value) =Text.snoc (name <>":") value
104
-
cvss31Order xs
142
+
toComponent::Metric->Text
143
+
toComponent (Metric (MetricShortName name) (MetricValueChar value)) =Text.snoc (name <>":") value
144
+
cvss31Order metrics
105
145
| ordered = mapMaybe getMetric allMetrics
106
-
|otherwise=xs
146
+
|otherwise=metrics
107
147
where
108
-
getMetric mi = find (\(name, _) -> miShortName mi ==name) xs
148
+
getMetric mi = find (\metric -> miShortName mi ==mName metric) metrics
109
149
110
150
--| Description of a metric group.
111
151
dataMetricGroup=MetricGroup
@@ -116,15 +156,15 @@ data MetricGroup = MetricGroup
116
156
--| Description of a single metric.
117
157
dataMetricInfo=MetricInfo
118
158
{miName::Text
119
-
, miShortName::Text
159
+
, miShortName::MetricShortName
120
160
, miRequired::Bool
121
161
, miValues:: [MetricValue]
122
162
}
123
163
124
164
--| Description of a single metric value
125
165
dataMetricValue=MetricValue
126
166
{mvName::Text
127
-
, mvChar::Char
167
+
, mvChar::MetricValueChar
128
168
, mvNum::Float
129
169
, mvNumChangedScope::MaybeFloat
130
170
, mvDesc::Text
@@ -143,40 +183,40 @@ cvss31 =
143
183
"Attack Vector"
144
184
"AV"
145
185
True
146
-
[ MetricValue"Network"'N'0.85Nothing"The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed below, up to and including the entire Internet."
147
-
, MetricValue"Adjacent"'A'0.62Nothing"The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology."
148
-
, MetricValue"Local"'L'0.55Nothing"The vulnerable component is not bound to the network stack and the attacker’s path is via read/write/execute capabilities."
149
-
, MetricValue"Physical"'P'0.2Nothing"The attack requires the attacker to physically touch or manipulate the vulnerable component."
186
+
[ MetricValue"Network"(C'N')0.85Nothing"The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed below, up to and including the entire Internet."
187
+
, MetricValue"Adjacent"(C'A')0.62Nothing"The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology."
188
+
, MetricValue"Local"(C'L')0.55Nothing"The vulnerable component is not bound to the network stack and the attacker’s path is via read/write/execute capabilities."
189
+
, MetricValue"Physical"(C'P')0.2Nothing"The attack requires the attacker to physically touch or manipulate the vulnerable component."
150
190
]
151
191
, MetricInfo
152
192
"Attack Complexity"
153
193
"AC"
154
194
True
155
-
[ MetricValue"Low"'L'0.77Nothing"Specialized access conditions or extenuating circumstances do not exist."
156
-
, MetricValue"High"'H'0.44Nothing"A successful attack depends on conditions beyond the attacker's control."
195
+
[ MetricValue"Low"(C'L')0.77Nothing"Specialized access conditions or extenuating circumstances do not exist."
196
+
, MetricValue"High"(C'H')0.44Nothing"A successful attack depends on conditions beyond the attacker's control."
157
197
]
158
198
, MetricInfo
159
199
"Privileges Required"
160
200
"PR"
161
201
True
162
-
[ MetricValue"None"'N'0.85Nothing"The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack."
163
-
, MetricValue"Low"'L'0.62 (Just0.68) "The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user."
164
-
, MetricValue"High"'H'0.27 (Just0.5) "The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files."
202
+
[ MetricValue"None"(C'N')0.85Nothing"The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack."
203
+
, MetricValue"Low"(C'L')0.62 (Just0.68) "The attacker requires privileges that provide basic user capabilities that could normally affect only settings and files owned by a user."
204
+
, MetricValue"High"(C'H')0.27 (Just0.5) "The attacker requires privileges that provide significant (e.g., administrative) control over the vulnerable component allowing access to component-wide settings and files."
165
205
]
166
206
, MetricInfo
167
207
"User Interaction"
168
208
"UI"
169
209
True
170
-
[ MetricValue"None"'N'0.85Nothing"The vulnerable system can be exploited without interaction from any user."
171
-
, MetricValue"Required"'R'0.62Nothing"Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited."
210
+
[ MetricValue"None"(C'N')0.85Nothing"The vulnerable system can be exploited without interaction from any user."
211
+
, MetricValue"Required"(C'R')0.62Nothing"Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited."
172
212
]
173
213
, MetricInfo
174
214
"Scope"
175
215
"S"
176
216
True
177
217
[ -- Note: not defined as contants in specification
178
-
MetricValue"Unchanged"'U'UnchangedNothing"An exploited vulnerability can only affect resources managed by the same security authority."
179
-
, MetricValue"Changed"'C'ChangedNothing"An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component."
218
+
MetricValue"Unchanged"(C'U')UnchangedNothing"An exploited vulnerability can only affect resources managed by the same security authority."
219
+
, MetricValue"Changed"(C'C')ChangedNothing"An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component."
180
220
]
181
221
, MetricInfo
182
222
"Confidentiality Impact"
@@ -203,13 +243,16 @@ cvss31 =
203
243
, mkNone "There is no impact to availability within the impacted component."
0 commit comments