dradis-calculator_cvss 3.15.0 → 3.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -2
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee +48 -19
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/{application.js.coffee → application.js} +2 -1
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/{snowcrash.js.coffee → tylium.js} +0 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30.js +21 -25
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss +1 -8
- data/app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb +1 -1
- data/app/models/dradis/plugins/calculators/cvss/v3.rb +12 -0
- data/app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb +1 -1
- data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +41 -41
- data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +67 -67
- data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +23 -23
- data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +20 -5
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +4 -5
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +3 -1
- data/app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb +84 -59
- data/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb +10 -12
- data/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
- metadata +8 -9
- data/app/views/dradis/plugins/calculators/cvss/_addons_menu_bs4.html.erb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6159ad12ee1b7c6f1d8bd6e9ad972661791732c8629317045f551443433271d6
|
4
|
+
data.tar.gz: 22c042582a00664f350a59f95c8989411f410d1c718615929079c33e6c4319d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe247325ca0b67ac26fa8b09380ab584f65da60faf25662e28aaf063223c13bf28af6d894b7746f86c10ec48125e094ec3aff3164c1c15f4f3e59757ebb2297
|
7
|
+
data.tar.gz: f5cf34f7759c0d0589f423c75f1d3d0f45aa7368d6f9d242ab5bd9b2a6591460a3a00c3fd7a04f75a7d0fa698e26328c1d4ae10b759ac6e3c062053d250b736d
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,34 @@
|
|
1
|
-
|
1
|
+
## Dradis Framework 3.20 (December, 2020) ##
|
2
|
+
|
3
|
+
* Use Bootstrap gem vs vendored assets.
|
4
|
+
|
5
|
+
|
6
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Dradis Framework 3.17 (May, 2020) ##
|
17
|
+
|
18
|
+
* Update REGEX reference for compatibility.
|
19
|
+
|
20
|
+
|
21
|
+
## Dradis Framework 3.16 (February, 2020) ##
|
22
|
+
|
23
|
+
* Update for compatibility with Tylium
|
24
|
+
|
25
|
+
|
26
|
+
## Dradis Framework 3.15 (November, 2019) ##
|
2
27
|
|
3
28
|
* No changes.
|
4
29
|
|
5
30
|
|
6
|
-
|
31
|
+
## Dradis Framework 3.14 (August, 2019) ##
|
7
32
|
|
8
33
|
* No changes.
|
9
34
|
|
@@ -38,7 +38,7 @@
|
|
38
38
|
|
39
39
|
if output.success == true
|
40
40
|
$('input[type=submit]').attr('disabled', null)
|
41
|
-
$('[data-behavior~=cvss-error]').
|
41
|
+
$('[data-behavior~=cvss-error]').addClass('d-none').text('')
|
42
42
|
$('#base-score').text("#{output.baseMetricScore} (#{output.baseSeverity})")
|
43
43
|
$('#temporal-score').text("#{output.temporalMetricScore} (#{output.temporalSeverity})")
|
44
44
|
$('#environmental-score').text("#{output.environmentalMetricScore} (#{output.environmentalSeverity})")
|
@@ -57,27 +57,58 @@
|
|
57
57
|
issue_cvss += "#{output.environmentalMetricScore}\n\n"
|
58
58
|
issue_cvss += "#[CVSSv3.EnvironmentalSeverity]#\n"
|
59
59
|
issue_cvss += "#{output.environmentalSeverity}\n\n"
|
60
|
-
|
60
|
+
|
61
|
+
# Base metrics
|
61
62
|
issue_cvss += "#[CVSSv3.BaseAttackVector]#\n"
|
62
|
-
issue_cvss += "#{
|
63
|
+
issue_cvss += "#{$("button[name=av].btn-primary").data('label')}\n\n"
|
63
64
|
issue_cvss += "#[CVSSv3.BaseAttackComplexity]#\n"
|
64
|
-
issue_cvss += "#{
|
65
|
+
issue_cvss += "#{$("button[name=ac].btn-primary").data('label')}\n\n"
|
65
66
|
issue_cvss += "#[CVSSv3.BasePrivilegesRequired]#\n"
|
66
|
-
issue_cvss += "#{
|
67
|
+
issue_cvss += "#{$("button[name=pr].btn-primary").data('label')}\n\n"
|
67
68
|
issue_cvss += "#[CVSSv3.BaseUserInteraction]#\n"
|
68
|
-
issue_cvss += "#{
|
69
|
+
issue_cvss += "#{$("button[name=ui].btn-primary").data('label')}\n\n"
|
69
70
|
issue_cvss += "#[CVSSv3.BaseScope]#\n"
|
70
|
-
issue_cvss += "#{
|
71
|
+
issue_cvss += "#{$("button[name=s].btn-primary").data('label')}\n\n"
|
71
72
|
issue_cvss += "#[CVSSv3.BaseConfidentiality]#\n"
|
72
|
-
issue_cvss += "#{
|
73
|
+
issue_cvss += "#{$("button[name=c].btn-primary").data('label')}\n\n"
|
73
74
|
issue_cvss += "#[CVSSv3.BaseIntegrity]#\n"
|
74
|
-
issue_cvss += "#{
|
75
|
+
issue_cvss += "#{$("button[name=i].btn-primary").data('label')}\n\n"
|
75
76
|
issue_cvss += "#[CVSSv3.BaseAvailability]#\n"
|
76
|
-
issue_cvss += "#{
|
77
|
+
issue_cvss += "#{$("button[name=a].btn-primary").data('label')}\n\n"
|
78
|
+
|
79
|
+
# Temporal metrics
|
80
|
+
issue_cvss += "#[CVSSv3.TemporalExploitCodeMaturity]#\n"
|
81
|
+
issue_cvss += "#{$("button[name=e].btn-primary").data('label')}\n\n"
|
82
|
+
issue_cvss += "#[CVSSv3.TemporalRemediationLevel]#\n"
|
83
|
+
issue_cvss += "#{$("button[name=rl].btn-primary").data('label')}\n\n"
|
84
|
+
issue_cvss += "#[CVSSv3.TemporalReportConfidence]#\n"
|
85
|
+
issue_cvss += "#{$("button[name=rc].btn-primary").data('label')}\n\n"
|
86
|
+
|
87
|
+
# Environmental metrics
|
77
88
|
issue_cvss += "#[CVSSv3.EnvironmentalConfidentialityRequirement]#\n"
|
78
|
-
issue_cvss += "#{
|
89
|
+
issue_cvss += "#{$("button[name=cr].btn-primary").data('label')}\n\n"
|
79
90
|
issue_cvss += "#[CVSSv3.EnvironmentalIntegrityRequirement]#\n"
|
80
|
-
issue_cvss += "#{
|
91
|
+
issue_cvss += "#{$("button[name=ir].btn-primary").data('label')}\n\n"
|
92
|
+
issue_cvss += "#[CVSSv3.EnvironmentalAvailabilityRequirement]#\n"
|
93
|
+
issue_cvss += "#{$("button[name=ar].btn-primary").data('label')}\n\n"
|
94
|
+
|
95
|
+
issue_cvss += "#[CVSSv3.ModifiedAttackVector]#\n"
|
96
|
+
issue_cvss += "#{$("button[name=mav].btn-primary").data('label')}\n\n"
|
97
|
+
issue_cvss += "#[CVSSv3.ModifiedAttackComplexity]#\n"
|
98
|
+
issue_cvss += "#{$("button[name=mac].btn-primary").data('label')}\n\n"
|
99
|
+
issue_cvss += "#[CVSSv3.ModifiedPrivilegesRequired]#\n"
|
100
|
+
issue_cvss += "#{$("button[name=mpr].btn-primary").data('label')}\n\n"
|
101
|
+
issue_cvss += "#[CVSSv3.ModifiedUserInteraction]#\n"
|
102
|
+
issue_cvss += "#{$("button[name=mui].btn-primary").data('label')}\n\n"
|
103
|
+
issue_cvss += "#[CVSSv3.ModifiedScope]#\n"
|
104
|
+
issue_cvss += "#{$("button[name=ms].btn-primary").data('label')}\n\n"
|
105
|
+
issue_cvss += "#[CVSSv3.ModifiedConfidentiality]#\n"
|
106
|
+
issue_cvss += "#{$("button[name=mc].btn-primary").data('label')}\n\n"
|
107
|
+
issue_cvss += "#[CVSSv3.ModifiedIntegrity]#\n"
|
108
|
+
issue_cvss += "#{$("button[name=mi].btn-primary").data('label')}\n\n"
|
109
|
+
issue_cvss += "#[CVSSv3.ModifiedAvailability]#\n"
|
110
|
+
issue_cvss += "#{$("button[name=ma].btn-primary").data('label')}\n\n"
|
111
|
+
|
81
112
|
$('textarea[name=cvss_fields]').val(issue_cvss)
|
82
113
|
else
|
83
114
|
errorMessage = ''
|
@@ -88,19 +119,17 @@
|
|
88
119
|
errorMessage = "All Base metrics are required"
|
89
120
|
|
90
121
|
$('input[type=submit]').attr('disabled', 'disabled')
|
91
|
-
$('[data-behavior~=cvss-error]')
|
92
|
-
.show()
|
93
|
-
.text(errorMessage)
|
94
|
-
|
122
|
+
$('[data-behavior~=cvss-error]').removeClass('d-none').text(errorMessage)
|
95
123
|
|
96
124
|
document.addEventListener "turbolinks:load", ->
|
97
125
|
if $('[data-behavior~=cvss-buttons]').length
|
98
126
|
CVSSCalculator.calculate()
|
99
|
-
$('[data-behavior~=cvss-error]').
|
127
|
+
$('[data-behavior~=cvss-error]').addClass('d-none')
|
100
128
|
|
101
129
|
$('[data-behavior~=cvss-buttons] button').on 'click', ->
|
130
|
+
|
102
131
|
$this = $(this)
|
103
|
-
$this.parent().find('button').removeClass('btn-primary');
|
104
|
-
$this.addClass('btn-primary');
|
132
|
+
$this.parent().find('button').removeClass('active btn-primary');
|
133
|
+
$this.addClass('active btn-primary');
|
105
134
|
$("input[name=#{$this.attr('name')}]").val($this.val())
|
106
135
|
CVSSCalculator.calculate()
|
File without changes
|
@@ -27,6 +27,11 @@
|
|
27
27
|
*
|
28
28
|
* Changelog
|
29
29
|
*
|
30
|
+
* 2018-02-15 Darius Wiles Added a missing pair of parantheses in the Environmental score, specifically
|
31
|
+
* in the code setting envScore in the main clause (not the else clause). It was changed
|
32
|
+
* from "min (...), 10" to "min ((...), 10)". This correction does not alter any final
|
33
|
+
* Environmental scores.
|
34
|
+
*
|
30
35
|
* 2015-08-04 Darius Wiles Added CVSS.generateXMLFromMetrics and CVSS.generateXMLFromVector functions to return
|
31
36
|
* XML string representations of: a set of metric values; or a Vector String respectively.
|
32
37
|
* Moved all constants and functions to an object named "CVSS" to
|
@@ -69,7 +74,7 @@ CVSS.Weight = {
|
|
69
74
|
AV: { N: 0.85, A: 0.62, L: 0.55, P: 0.2},
|
70
75
|
AC: { H: 0.44, L: 0.77},
|
71
76
|
PR: { U: {N: 0.85, L: 0.62, H: 0.27}, // These values are used if Scope is Unchanged
|
72
|
-
|
77
|
+
C: {N: 0.85, L: 0.68, H: 0.5}}, // These values are used if Scope is Changed
|
73
78
|
UI: { N: 0.85, R: 0.62},
|
74
79
|
S: { U: 6.42, C: 7.52}, // Note: not defined as constants in specification
|
75
80
|
CIA: { N: 0, L: 0.22, H: 0.56}, // C, I and A have the same weights
|
@@ -303,7 +308,7 @@ CVSS.calculateCVSSFromMetrics = function (
|
|
303
308
|
if (MS === "U" ||
|
304
309
|
(MS === "X" && S === "U")) {
|
305
310
|
envModifiedImpactSubScore = metricWeightMS * envImpactSubScoreMultiplier;
|
306
|
-
envScore = CVSS.roundUp1(CVSS.roundUp1(Math.min(envModifiedImpactSubScore + envModifiedExploitabalitySubScore), 10) *
|
311
|
+
envScore = CVSS.roundUp1(CVSS.roundUp1(Math.min((envModifiedImpactSubScore + envModifiedExploitabalitySubScore), 10)) *
|
307
312
|
metricWeightE * metricWeightRL * metricWeightRC);
|
308
313
|
} else {
|
309
314
|
envModifiedImpactSubScore = metricWeightMS * (envImpactSubScoreMultiplier - 0.029) - 3.25 * Math.pow(envImpactSubScoreMultiplier - 0.02, 15);
|
@@ -352,22 +357,13 @@ CVSS.calculateCVSSFromMetrics = function (
|
|
352
357
|
success: true,
|
353
358
|
baseMetricScore: baseScore.toFixed(1),
|
354
359
|
baseSeverity: CVSS.severityRating( baseScore.toFixed(1) ),
|
360
|
+
|
355
361
|
temporalMetricScore: temporalScore.toFixed(1),
|
356
362
|
temporalSeverity: CVSS.severityRating( temporalScore.toFixed(1) ),
|
363
|
+
|
357
364
|
environmentalMetricScore: envScore.toFixed(1),
|
358
365
|
environmentalSeverity: CVSS.severityRating( envScore.toFixed(1) ),
|
359
366
|
|
360
|
-
baseAttackVector: CVSS.XML_MetricNames["MAV"][AttackVector],
|
361
|
-
baseAttackComplexity: CVSS.XML_MetricNames["MAC"][AttackComplexity],
|
362
|
-
basePrivilegesRequired: CVSS.XML_MetricNames["MPR"][PrivilegesRequired],
|
363
|
-
baseUserInteraction: CVSS.XML_MetricNames["MUI"][UserInteraction],
|
364
|
-
baseScope: CVSS.XML_MetricNames["MS"][Scope],
|
365
|
-
baseConfidentiality: CVSS.XML_MetricNames["MCIA"][Confidentiality],
|
366
|
-
baseIntegrity: CVSS.XML_MetricNames["MCIA"][Integrity],
|
367
|
-
baseAvailability: CVSS.XML_MetricNames["MCIA"][Availability],
|
368
|
-
environmentalConfidentialityRequirement: CVSS.XML_MetricNames["CIAR"][ConfidentialityRequirement || "X"],
|
369
|
-
environmentalIntegrityRequirement: CVSS.XML_MetricNames["CIAR"][IntegrityRequirement || "X"],
|
370
|
-
|
371
367
|
vectorString: vectorString
|
372
368
|
};
|
373
369
|
};
|
@@ -492,17 +488,17 @@ CVSS.severityRating = function (score) {
|
|
492
488
|
// because the latter is the same as the former, except it also includes a "NOT_DEFINED" value.
|
493
489
|
|
494
490
|
CVSS.XML_MetricNames = {
|
495
|
-
E: { X: "
|
496
|
-
RL: { X: "
|
497
|
-
RC: { X: "
|
498
|
-
|
499
|
-
CIAR: { X: "
|
500
|
-
MAV: { N: "
|
501
|
-
MAC: { H: "
|
502
|
-
MPR: { N: "
|
503
|
-
MUI: { N: "
|
504
|
-
MS: { U: "
|
505
|
-
MCIA: { N: "
|
491
|
+
E: { X: "NOT_DEFINED", U: "UNPROVEN", P: "PROOF_OF_CONCEPT", F: "FUNCTIONAL", H: "HIGH"},
|
492
|
+
RL: { X: "NOT_DEFINED", O: "OFFICIAL_FIX", T: "TEMPORARY_FIX", W: "WORKAROUND", U: "UNAVAILABLE"},
|
493
|
+
RC: { X: "NOT_DEFINED", U: "UNKNOWN", R: "REASONABLE", C: "CONFIRMED"},
|
494
|
+
|
495
|
+
CIAR: { X: "NOT_DEFINED", L: "LOW", M: "MEDIUM", H: "HIGH"}, // CR, IR and AR use the same metric names
|
496
|
+
MAV: { N: "NETWORK", A: "ADJACENT_NETWORK", L: "LOCAL", P: "PHYSICAL", X: "NOT_DEFINED" },
|
497
|
+
MAC: { H: "HIGH", L: "LOW", X: "NOT_DEFINED" },
|
498
|
+
MPR: { N: "NONE", L: "LOW", H: "HIGH", X: "NOT_DEFINED" },
|
499
|
+
MUI: { N: "NONE", R: "REQUIRED", X: "NOT_DEFINED" },
|
500
|
+
MS: { U: "UNCHANGED", C: "CHANGED", X: "NOT_DEFINED" },
|
501
|
+
MCIA: { N: "NONE", L: "LOW", H: "HIGH", X: "NOT_DEFINED" } // C, I and A use the same metric names
|
506
502
|
};
|
507
503
|
|
508
504
|
|
@@ -598,7 +594,7 @@ CVSS.generateXMLFromMetrics = function (
|
|
598
594
|
}
|
599
595
|
|
600
596
|
var xmlOutput = xmlTemplate;
|
601
|
-
xmlOutput = xmlOutput.replace ("__AttackVector__", CVSS.XML_MetricNames["
|
597
|
+
xmlOutput = xmlOutput.replace ("__AttackVector__", CVSS.XML_MetricNames["MAV"][AttackVector]);
|
602
598
|
xmlOutput = xmlOutput.replace ("__AttackComplexity__", CVSS.XML_MetricNames["MAC"][AttackComplexity]);
|
603
599
|
xmlOutput = xmlOutput.replace ("__PrivilegesRequired__", CVSS.XML_MetricNames["MPR"][PrivilegesRequired]);
|
604
600
|
xmlOutput = xmlOutput.replace ("__UserInteraction__", CVSS.XML_MetricNames["MUI"][UserInteraction]);
|
@@ -7,7 +7,7 @@ module Dradis::Plugins::Calculators::CVSS
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def update
|
10
|
-
cvss_fields = Hash[ *params[:cvss_fields].scan(
|
10
|
+
cvss_fields = Hash[ *params[:cvss_fields].scan(FieldParser::FIELDS_REGEX).flatten.map(&:strip) ]
|
11
11
|
cvss_fields.each do |name, value|
|
12
12
|
@issue.set_field(name, value)
|
13
13
|
end
|
@@ -11,10 +11,22 @@ module Dradis::Plugins::Calculators::CVSS
|
|
11
11
|
BaseScore
|
12
12
|
BaseSeverity
|
13
13
|
BaseUserInteraction
|
14
|
+
TemporalExploitCodeMaturity
|
15
|
+
TemporalRemediationLevel
|
16
|
+
TemporalReportConfidence
|
14
17
|
EnvironmentalConfidentialityRequirement
|
15
18
|
EnvironmentalIntegrityRequirement
|
19
|
+
EnvironmentalAvailabilityRequirement
|
16
20
|
EnvironmentalScore
|
17
21
|
EnvironmentalSeverity
|
22
|
+
ModifiedAttackVector
|
23
|
+
ModifiedAttackComplexity
|
24
|
+
ModifiedPrivilegesRequired
|
25
|
+
ModifiedUserInteraction
|
26
|
+
ModifiedScope
|
27
|
+
ModifiedConfidentiality
|
28
|
+
ModifiedIntegrity
|
29
|
+
ModifiedAvailability
|
18
30
|
TemporalScore
|
19
31
|
TemporalSeverity
|
20
32
|
Vector
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
<%= link_to 'Risk Calculators - CVSSv3', cvss_calculator.calculators_cvss_path, class: 'dropdown-item', data: { turbolinks: false } %>
|
@@ -1,113 +1,113 @@
|
|
1
1
|
<section data-behavior="cvss-buttons">
|
2
|
-
<div class="row
|
2
|
+
<div class="row">
|
3
3
|
|
4
|
-
<div class="
|
4
|
+
<div class="col-6">
|
5
5
|
<div class="inner">
|
6
|
-
<
|
6
|
+
<h5 class="header-underline mt-0" title="This metric reflects the context by which vulnerability exploitation is possible. The Base Score increases the more remote (logically, and physically) an attacker can be in order to exploit the vulnerable component.">Attack Vector (AV)</h5>
|
7
7
|
|
8
8
|
<%= hidden_field_tag :av, @cvss_vector['AV'] %>
|
9
9
|
|
10
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
11
|
-
<button type="button" class="btn
|
10
|
+
<div class="btn-group mb-4 text-nowrap" data-toggle="buttons-radio">
|
11
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'N' %>" name="av" value="N" data-label="Network" title="(N) A vulnerability exploitable with network access means the vulnerable component is bound to the network stack and the attacker's path is through OSI layer 3 (the network layer). Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable one or more network hops away.">Net. <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
12
12
|
|
13
|
-
<button type="button" class="btn
|
13
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'A' %>" name="av" value="A" data-label="Adjacent" title="(A) A vulnerability exploitable with adjacent network access means the vulnerable component is bound to the network stack, however the attack is limited to the same shared physical (e.g. Bluetooth, IEEE 802.11), or logical (e.g. local IP subnet) network, and cannot be performed across an OSI layer 3 boundary (e.g. a router).">Adjacent <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
14
14
|
|
15
|
-
<button type="button" class="btn
|
15
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'L' %>" name="av" value="L" data-label="Local" title="(L) A vulnerability exploitable with local access means that the vulnerable component is not bound to the network stack, and the attacker’s path is via read/write/execute capabilities. In some cases, the attacker may be logged in locally in order to exploit the vulnerability, otherwise, she may rely on User Interaction to execute a malicious file.">Local <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
16
16
|
|
17
|
-
<button type="button" class="btn
|
17
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'P' %>" name="av" value="P" data-label="Physical" title="(P) A vulnerability exploitable with physical access requires the attacker to physically touch or manipulate the vulnerable component. Physical interaction may be brief or persistent.">Physical <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<div class="inner">
|
22
|
-
<
|
22
|
+
<h5 class="header-underline mt-0" title="This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. Such conditions may require the collection of more information about the target, the presence of certain system configuration settings, or computational exceptions.">Attack Complexity (AC)</h5>
|
23
23
|
|
24
24
|
<%= hidden_field_tag :ac, @cvss_vector['AC'] %>
|
25
25
|
|
26
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
27
|
-
<button type="button" class="btn
|
26
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
27
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'L' %>" name="ac" value="L" data-label="Low" title="(L) Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
28
28
|
|
29
|
-
<button type="button" class="btn
|
29
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'H' %>" name="ac" value="H" data-label="High" title="(H) A successful attack depends on conditions beyond the attacker's control. That is, a successful attack cannot be accomplished at will, but requires the attacker to invest in some measurable amount of effort in preparation or execution against the vulnerable component before a successful attack can be expected. For example, a successful attack may require the attacker: to perform target-specific reconnaissance; to prepare the target environment to improve exploit reliability; or to inject herself into the logical network path between the target and the resource requested by the victim in order to read and/or modify network communications (e.g. a man in the middle attack).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
|
33
33
|
<div class="inner">
|
34
|
-
<
|
34
|
+
<h5 class="header-underline mt-0" title="This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. This Base Score increases as fewer privileges are required.">Privileges Required (PR)</h5>
|
35
35
|
|
36
36
|
<%= hidden_field_tag :pr, @cvss_vector['PR'] %>
|
37
37
|
|
38
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
39
|
-
<button type="button" class="btn
|
38
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
39
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'N' %>" name="pr" value="N" data-label="None" title="(N) The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
40
40
|
|
41
|
-
<button type="button" class="btn
|
41
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'L' %>" name="pr" value="L" data-label="Low" title="(L) The attacker is authorized with (i.e. 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 may have the ability to cause an impact only to non-sensitive resources.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
42
42
|
|
43
|
-
<button type="button" class="btn
|
43
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'H' %>" name="pr" value="H" data-label="High" title="(H) The attacker is authorized with (i.e. requires) privileges that provide significant (e.g. administrative) control over the vulnerable component that could affect component-wide settings and files.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
44
44
|
</div>
|
45
45
|
</div>
|
46
46
|
|
47
47
|
<div class="inner">
|
48
|
-
<
|
48
|
+
<h5 class="header-underline mt-0" title="This metric captures the requirement for a user, other than the attacker, to participate in the successful compromise the vulnerable component. This metric determines whether the vulnerability can be exploited solely at the will of the attacker, or whether a separate user (or user-initiated process) must participate in some manner. The Base Score is highest when no user interaction is required.">User Interaction (UI)</h5>
|
49
49
|
|
50
50
|
<%= hidden_field_tag :ui, @cvss_vector['UI'] %>
|
51
51
|
|
52
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
53
|
-
<button type="button" class="btn
|
54
|
-
<button type="button" class="btn
|
52
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
53
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'N' %>" name="ui" value="N" data-label="None" title="(N) The vulnerable system can be exploited without any interaction from any user.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
54
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'R' %>" name="ui" value="R" data-label="Required" title="(R) Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.">Required <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
55
55
|
</div>
|
56
56
|
</div>
|
57
57
|
</div>
|
58
58
|
|
59
|
-
<div class="
|
59
|
+
<div class="col-6">
|
60
60
|
<div class="inner">
|
61
|
-
<
|
61
|
+
<h5 class="header-underline mt-0" title="Does a successful attack impact a component other than the vulnerable component? If so, the Base Score increases and the Confidentiality, Integrity and Authentication metrics should be scored relative to the impacted component.">Scope (S)</h5>
|
62
62
|
|
63
63
|
<%= hidden_field_tag :s, @cvss_vector['S'] %>
|
64
64
|
|
65
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
66
|
-
<button type="button" class="btn
|
65
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
66
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'U' %>" name="s" value="U" data-label="Unchanged" title="(U) An exploited vulnerability can only affect resources managed by the same authority. In this case the vulnerable component and the impacted component are the same.">Unchanged <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
67
67
|
|
68
|
-
<button type="button" class="btn
|
68
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'C' %>" name="s" value="C" data-label="Changed" title="(C) An exploited vulnerability can affect resources beyond the authorization privileges intended by the vulnerable component. In this case the vulnerable component and the impacted component are different.">Changed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
69
69
|
</div>
|
70
70
|
</div>
|
71
71
|
|
72
72
|
<div class="inner">
|
73
|
-
<
|
73
|
+
<h5 class="header-underline mt-0" title="This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability. Confidentiality refers to limiting information access and disclosure to only authorized users, as well as preventing access by, or disclosure to, unauthorized ones.">Confidentiality (C)</h5>
|
74
74
|
|
75
75
|
<%= hidden_field_tag :c, @cvss_vector['C'] %>
|
76
76
|
|
77
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
78
|
-
<button type="button" class="btn
|
77
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
78
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'N' %>" name="c" value="N" data-label="None" title="(N) There is no loss of confidentiality within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
79
79
|
|
80
|
-
<button type="button" class="btn
|
80
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'L' %>" name="c" value="L" data-label="Low" title="(L) There is some loss of confidentiality. Access to some restricted information is obtained, but the attacker does not have control over what information is obtained, or the amount or kind of loss is constrained. The information disclosure does not cause a direct, serious loss to the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
81
81
|
|
82
|
-
<button type="button" class="btn
|
82
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'H' %>" name="c" value="H" data-label="High" title="(H) There is total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
83
83
|
</div>
|
84
84
|
</div>
|
85
85
|
|
86
86
|
<div class="inner">
|
87
|
-
<
|
87
|
+
<h5 class="header-underline mt-0" title="This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.">Integrity (I)</h5>
|
88
88
|
|
89
89
|
<%= hidden_field_tag :i, @cvss_vector['I'] %>
|
90
90
|
|
91
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
92
|
-
<button type="button" class="btn
|
91
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
92
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'N' %>" name="i" value="N" data-label="None" title="(N) There is no loss of integrity within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
93
93
|
|
94
|
-
<button type="button" class="btn
|
94
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'L' %>" name="i" value="L" data-label="Low" title="(L) Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is constrained. The data modification does not have a direct, serious impact on the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
95
95
|
|
96
|
-
<button type="button" class="btn
|
96
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'H' %>" name="i" value="H" data-label="High" title="(H) There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any/all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
100
100
|
<div class="inner">
|
101
|
-
<
|
101
|
+
<h5 class="header-underline mt-0" title="This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability. It refers to the loss of availability of the impacted component itself, such as a networked service (e.g., web, database, email). Since availability refers to the accessibility of information resources, attacks that consume network bandwidth, processor cycles, or disk space all impact the availability of an impacted component.">Availability (A)</h5>
|
102
102
|
|
103
103
|
<%= hidden_field_tag :a, @cvss_vector['A'] %>
|
104
104
|
|
105
|
-
<div class="btn-group" data-toggle="buttons-radio">
|
106
|
-
<button type="button" class="btn
|
105
|
+
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
106
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'N' %>" name="a" value="N" data-label="None" title="(N) There is no impact to availability within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
107
107
|
|
108
|
-
<button type="button" class="btn
|
108
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'L' %>" name="a" value="L" data-label="Low" title="(L) There is reduced performance or interruptions in resource availability. Even if repeated exploitation of the vulnerability is possible, the attacker does not have the ability to completely deny service to legitimate users. The resources in the impacted component are either partially available all of the time, or fully available only some of the time, but overall there is no direct, serious consequence to the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
109
109
|
|
110
|
-
<button type="button" class="btn
|
110
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'H' %>" name="a" value="H" data-label="High" title="(H) There is total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
|
111
111
|
</div>
|
112
112
|
</div>
|
113
113
|
</div>
|