dradis-calculator_cvss 4.8.0 → 4.10.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 +7 -0
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss +9 -30
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss +3 -3
- data/app/views/dradis/plugins/calculators/cvss/_version_switch.html.erb +3 -3
- data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +30 -30
- data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +53 -53
- data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +17 -17
- data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +5 -7
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +1 -1
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +3 -3
- data/app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb +7 -7
- data/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb +1 -1
- data/dradis-calculator_cvss.gemspec +2 -3
- data/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb1f2a2b5330bc60be4f63dfd7fbed29a14b9ea0b29dfc16ba03133fb2ca6649
|
4
|
+
data.tar.gz: 5b1fa4076ba2d47cf09bd65f900681408ceddb5f9e8f50df84c0faf9aed179b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dfef75fdc527f62acb902c8d461acea6ef6e439600279024edc01065612e669a364319cce2c7bbb62e02f2134f8d736fe9892e196e65b0def5cd3ae46c0aec0
|
7
|
+
data.tar.gz: 4e5fc5ffa9409ea1e7727445974f3d815d4e82cb44758b7d550c57f783f97f80232727e6305ee9890286c7c21caad5cfdd694a9d4fd23763c858bc1c5ceaa64b
|
data/CHANGELOG.md
CHANGED
@@ -1,46 +1,25 @@
|
|
1
|
-
.
|
2
|
-
align-items: center;
|
1
|
+
.form-switch.cvss {
|
3
2
|
display: inline-flex;
|
3
|
+
font-size: 1rem;
|
4
4
|
white-space: nowrap;
|
5
5
|
|
6
|
-
.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
&::before {
|
13
|
-
background-color: $white;
|
14
|
-
border-color: $primaryColor !important;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
&:focus ~ .custom-control-label::before {
|
19
|
-
box-shadow: 0 0 0 0.2rem unquote(#{$primaryColor}80);
|
20
|
-
}
|
6
|
+
.form-check-input,
|
7
|
+
.form-check-input:focus {
|
8
|
+
background-color: $primaryColor;
|
9
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
|
10
|
+
transform: translateX(1.5rem);
|
21
11
|
}
|
22
12
|
|
23
|
-
.
|
13
|
+
.form-check-label {
|
24
14
|
font-size: 1rem;
|
25
15
|
text-transform: lowercase;
|
26
16
|
|
27
|
-
&::after {
|
28
|
-
background-color: $primaryColor;
|
29
|
-
left: calc(-0.25rem + 2px);
|
30
|
-
}
|
31
|
-
|
32
|
-
&::before {
|
33
|
-
background-color: $white !important;
|
34
|
-
border-color: $primaryColor !important;
|
35
|
-
left: -0.25rem;
|
36
|
-
}
|
37
|
-
|
38
17
|
span {
|
39
18
|
line-height: normal;
|
40
19
|
|
41
20
|
&:first-of-type {
|
42
21
|
display: inline-block;
|
43
|
-
transform: translateX(-2.
|
22
|
+
transform: translateX(-2.5rem);
|
44
23
|
}
|
45
24
|
}
|
46
25
|
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
<div class="
|
1
|
+
<div class="form-check form-switch cvss">
|
2
2
|
<input
|
3
|
-
class="
|
3
|
+
class="form-check-input"
|
4
4
|
data-behavior="cvss-version-toggle"
|
5
5
|
id="cvss-version-toggle"
|
6
6
|
type="checkbox"
|
7
7
|
<%= 'checked' if @issue && @issue.fields['CVSSv3.Vector'] && @issue.fields['CVSSv3.Vector'].include?('CVSS:3.0') %>
|
8
8
|
>
|
9
|
-
<label class="
|
9
|
+
<label class="form-check-label" for="cvss-version-toggle"><span>v3.1</span><span>v3.0</span></label>
|
10
10
|
</div>
|
@@ -7,14 +7,14 @@
|
|
7
7
|
|
8
8
|
<%= hidden_field_tag :av, @cvss_vector['AV'] %>
|
9
9
|
|
10
|
-
<div class="btn-group mb-4 text-nowrap"
|
11
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'N' %>" name="av" value="N" data-label="Network" data-cvss="AV_N_Label">Net. <i class="fa fa-question-circle
|
10
|
+
<div class="btn-group mb-4 text-nowrap">
|
11
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'N' %>" name="av" value="N" data-label="Network" data-cvss="AV_N_Label">Net. <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
12
12
|
|
13
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'A' %>" name="av" value="A" data-label="Adjacent" data-cvss="AV_A_Label">Adjacent <i class="fa fa-question-circle
|
13
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'A' %>" name="av" value="A" data-label="Adjacent" data-cvss="AV_A_Label">Adjacent <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
14
14
|
|
15
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'L' %>" name="av" value="L" data-label="Local" data-cvss="AV_L_Label">Local <i class="fa fa-question-circle
|
15
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'L' %>" name="av" value="L" data-label="Local" data-cvss="AV_L_Label">Local <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
16
16
|
|
17
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'P' %>" name="av" value="P" data-label="Physical" data-cvss="AV_P_Label">Physical <i class="fa fa-question-circle
|
17
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'P' %>" name="av" value="P" data-label="Physical" data-cvss="AV_P_Label">Physical <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
18
18
|
</div>
|
19
19
|
</div>
|
20
20
|
|
@@ -23,10 +23,10 @@
|
|
23
23
|
|
24
24
|
<%= hidden_field_tag :ac, @cvss_vector['AC'] %>
|
25
25
|
|
26
|
-
<div class="btn-group mb-4"
|
27
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'L' %>" name="ac" value="L" data-label="Low" data-cvss="AC_L_Label">Low <i class="fa fa-question-circle
|
26
|
+
<div class="btn-group mb-4">
|
27
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'L' %>" name="ac" value="L" data-label="Low" data-cvss="AC_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
28
28
|
|
29
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'H' %>" name="ac" value="H" data-label="High" data-cvss="AC_H_Label">High <i class="fa fa-question-circle
|
29
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'H' %>" name="ac" value="H" data-label="High" data-cvss="AC_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
30
30
|
</div>
|
31
31
|
</div>
|
32
32
|
|
@@ -35,12 +35,12 @@
|
|
35
35
|
|
36
36
|
<%= hidden_field_tag :pr, @cvss_vector['PR'] %>
|
37
37
|
|
38
|
-
<div class="btn-group mb-4"
|
39
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'N' %>" name="pr" value="N" data-label="None" data-cvss="PR_N_Label">None <i class="fa fa-question-circle
|
38
|
+
<div class="btn-group mb-4">
|
39
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'N' %>" name="pr" value="N" data-label="None" data-cvss="PR_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
40
40
|
|
41
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'L' %>" name="pr" value="L" data-label="Low" data-cvss="PR_L_Label">Low <i class="fa fa-question-circle
|
41
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'L' %>" name="pr" value="L" data-label="Low" data-cvss="PR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
42
42
|
|
43
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'H' %>" name="pr" value="H" data-label="High" data-cvss="PR_H_Label">High <i class="fa fa-question-circle
|
43
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'H' %>" name="pr" value="H" data-label="High" data-cvss="PR_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
44
44
|
</div>
|
45
45
|
</div>
|
46
46
|
|
@@ -49,9 +49,9 @@
|
|
49
49
|
|
50
50
|
<%= hidden_field_tag :ui, @cvss_vector['UI'] %>
|
51
51
|
|
52
|
-
<div class="btn-group mb-4"
|
53
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'N' %>" name="ui" value="N" data-label="None" data-cvss="UI_N_Label">None <i class="fa fa-question-circle
|
54
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'R' %>" name="ui" value="R" data-label="Required" data-cvss="UI_R_Label">Required <i class="fa fa-question-circle
|
52
|
+
<div class="btn-group mb-4">
|
53
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'N' %>" name="ui" value="N" data-label="None" data-cvss="UI_N_Label">None <i class="fa-regular fa-question-circle" 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" data-cvss="UI_R_Label">Required <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
55
55
|
</div>
|
56
56
|
</div>
|
57
57
|
</div>
|
@@ -62,10 +62,10 @@
|
|
62
62
|
|
63
63
|
<%= hidden_field_tag :s, @cvss_vector['S'] %>
|
64
64
|
|
65
|
-
<div class="btn-group mb-4"
|
66
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'U' %>" name="s" value="U" data-label="Unchanged" data-cvss="S_U_Label">Unchanged <i class="fa fa-question-circle
|
65
|
+
<div class="btn-group mb-4">
|
66
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'U' %>" name="s" value="U" data-label="Unchanged" data-cvss="S_U_Label">Unchanged <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
67
67
|
|
68
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'C' %>" name="s" value="C" data-label="Changed" data-cvss="S_C_Label">Changed <i class="fa fa-question-circle
|
68
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'C' %>" name="s" value="C" data-label="Changed" data-cvss="S_C_Label">Changed <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
69
69
|
</div>
|
70
70
|
</div>
|
71
71
|
|
@@ -74,12 +74,12 @@
|
|
74
74
|
|
75
75
|
<%= hidden_field_tag :c, @cvss_vector['C'] %>
|
76
76
|
|
77
|
-
<div class="btn-group mb-4"
|
78
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'N' %>" name="c" value="N" data-label="None" data-cvss="C_N_Label">None <i class="fa fa-question-circle
|
77
|
+
<div class="btn-group mb-4">
|
78
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'N' %>" name="c" value="N" data-label="None" data-cvss="C_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
79
79
|
|
80
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'L' %>" name="c" value="L" data-label="Low" data-cvss="C_L_Label">Low <i class="fa fa-question-circle
|
80
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'L' %>" name="c" value="L" data-label="Low" data-cvss="C_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
81
81
|
|
82
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'H' %>" name="c" value="H" data-label="High" data-cvss="C_H_Label">High <i class="fa fa-question-circle
|
82
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'H' %>" name="c" value="H" data-label="High" data-cvss="C_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
83
83
|
</div>
|
84
84
|
</div>
|
85
85
|
|
@@ -88,12 +88,12 @@
|
|
88
88
|
|
89
89
|
<%= hidden_field_tag :i, @cvss_vector['I'] %>
|
90
90
|
|
91
|
-
<div class="btn-group mb-4"
|
92
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'N' %>" name="i" value="N" data-label="None" data-cvss="I_N_Label">None <i class="fa fa-question-circle
|
91
|
+
<div class="btn-group mb-4">
|
92
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'N' %>" name="i" value="N" data-label="None" data-cvss="I_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
93
93
|
|
94
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'L' %>" name="i" value="L" data-label="Low" data-cvss="I_L_Label">Low <i class="fa fa-question-circle
|
94
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'L' %>" name="i" value="L" data-label="Low" data-cvss="I_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
95
95
|
|
96
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'H' %>" name="i" value="H" data-label="High" data-cvss="I_H_Label">High <i class="fa fa-question-circle
|
96
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'H' %>" name="i" value="H" data-label="High" data-cvss="I_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -102,12 +102,12 @@
|
|
102
102
|
|
103
103
|
<%= hidden_field_tag :a, @cvss_vector['A'] %>
|
104
104
|
|
105
|
-
<div class="btn-group mb-4"
|
106
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'N' %>" name="a" value="N" data-label="None" data-cvss="A_N_Label">None <i class="fa fa-question-circle
|
105
|
+
<div class="btn-group mb-4">
|
106
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'N' %>" name="a" value="N" data-label="None" data-cvss="A_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
107
107
|
|
108
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'L' %>" name="a" value="L" data-label="Low" data-cvss="A_L_Label">Low <i class="fa fa-question-circle
|
108
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'L' %>" name="a" value="L" data-label="Low" data-cvss="A_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
109
109
|
|
110
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'H' %>" name="a" value="H" data-label="High" data-cvss="A_H_Label">High <i class="fa fa-question-circle
|
110
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'H' %>" name="a" value="H" data-label="High" data-cvss="A_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
111
111
|
</div>
|
112
112
|
</div>
|
113
113
|
</div>
|
@@ -8,14 +8,14 @@
|
|
8
8
|
|
9
9
|
<%= hidden_field_tag :cr, @cvss_vector['CR'] %>
|
10
10
|
|
11
|
-
<div class="btn-group mb-4"
|
12
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'X' %>" name="cr" value="X" data-label="Not Defined" data-cvss="CR_X_Label">N/D <i class="fa fa-question-circle
|
11
|
+
<div class="btn-group mb-4">
|
12
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'X' %>" name="cr" value="X" data-label="Not Defined" data-cvss="CR_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
13
13
|
|
14
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'L' %>" name="cr" value="L" data-label="Low" data-cvss="CR_L_Label">Low <i class="fa fa-question-circle
|
14
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'L' %>" name="cr" value="L" data-label="Low" data-cvss="CR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
15
15
|
|
16
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'M' %>" name="cr" value="M" data-label="Medium" data-cvss="CR_M_Label">Med <i class="fa fa-question-circle
|
16
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'M' %>" name="cr" value="M" data-label="Medium" data-cvss="CR_M_Label">Med <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
17
17
|
|
18
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'H' %>" name="cr" value="H" data-label="High" data-cvss="CR_H_Label">High <i class="fa fa-question-circle
|
18
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'H' %>" name="cr" value="H" data-label="High" data-cvss="CR_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
|
@@ -24,14 +24,14 @@
|
|
24
24
|
|
25
25
|
<%= hidden_field_tag :ir, @cvss_vector['IR'] %>
|
26
26
|
|
27
|
-
<div class="btn-group mb-4"
|
28
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'X' %>" name="ir" value="X" data-label="Not Defined" data-cvss="IR_X_Label">N/D <i class="fa fa-question-circle
|
27
|
+
<div class="btn-group mb-4">
|
28
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'X' %>" name="ir" value="X" data-label="Not Defined" data-cvss="IR_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
29
29
|
|
30
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'L' %>" name="ir" value="L" data-label="Low" data-cvss="IR_L_Label">Low <i class="fa fa-question-circle
|
30
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'L' %>" name="ir" value="L" data-label="Low" data-cvss="IR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
31
31
|
|
32
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'M' %>" name="ir" value="M" data-label="Medium" data-cvss="IR_M_Label">Med <i class="fa fa-question-circle
|
32
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'M' %>" name="ir" value="M" data-label="Medium" data-cvss="IR_M_Label">Med <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
33
33
|
|
34
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'H' %>" name="ir" value="H" data-label="High" data-cvss="IR_H_Label">High <i class="fa fa-question-circle
|
34
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'H' %>" name="ir" value="H" data-label="High" data-cvss="IR_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
|
@@ -40,14 +40,14 @@
|
|
40
40
|
|
41
41
|
<%= hidden_field_tag :ar, @cvss_vector['AR'] %>
|
42
42
|
|
43
|
-
<div class="btn-group mb-4"
|
44
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'X' %>" name="ar" value="X" data-label="Not Defined" data-cvss="AR_X_Label">N/D <i class="fa fa-question-circle
|
43
|
+
<div class="btn-group mb-4">
|
44
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'X' %>" name="ar" value="X" data-label="Not Defined" data-cvss="AR_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
45
45
|
|
46
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'L' %>" name="ar" value="L" data-label="Low" data-cvss="AR_L_Label">Low <i class="fa fa-question-circle
|
46
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'L' %>" name="ar" value="L" data-label="Low" data-cvss="AR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
47
47
|
|
48
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'M' %>" name="ar" value="M" data-label="Medium" data-cvss="AR_M_Label">Med <i class="fa fa-question-circle
|
48
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'M' %>" name="ar" value="M" data-label="Medium" data-cvss="AR_M_Label">Med <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
49
49
|
|
50
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'H' %>" name="ar" value="H" data-label="High" data-cvss="AR_H_Label">High <i class="fa fa-question-circle
|
50
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'H' %>" name="ar" value="H" data-label="High" data-cvss="AR_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
</div>
|
@@ -59,16 +59,16 @@
|
|
59
59
|
|
60
60
|
<%= hidden_field_tag :mav, @cvss_vector['MAV'] %>
|
61
61
|
|
62
|
-
<div class="btn-group mb-4"
|
63
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'X' %>" name="mav" value="X" data-label="Not Defined" data-cvss="MAV_X_Label">N/D <i class="fa fa-question-circle
|
62
|
+
<div class="btn-group mb-4">
|
63
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'X' %>" name="mav" value="X" data-label="Not Defined" data-cvss="MAV_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
64
64
|
|
65
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'N' %>" name="mav" value="N" data-label="Network" data-cvss="MAV_N_Label">Net. <i class="fa fa-question-circle
|
65
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'N' %>" name="mav" value="N" data-label="Network" data-cvss="MAV_N_Label">Net. <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
66
66
|
|
67
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'A' %>" name="mav" value="A" data-label="Adjacent" data-cvss="MAV_A_Label">Adjacent <i class="fa fa-question-circle
|
67
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'A' %>" name="mav" value="A" data-label="Adjacent" data-cvss="MAV_A_Label">Adjacent <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
68
68
|
|
69
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'L' %>" name="mav" value="L" data-label="Local" data-cvss="MAV_L_Label">Local <i class="fa fa-question-circle
|
69
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'L' %>" name="mav" value="L" data-label="Local" data-cvss="MAV_L_Label">Local <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
70
70
|
|
71
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'P' %>" name="mav" value="P" data-label="Physical" data-cvss="MAV_P_Label">Physical <i class="fa fa-question-circle
|
71
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'P' %>" name="mav" value="P" data-label="Physical" data-cvss="MAV_P_Label">Physical <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
72
72
|
</div>
|
73
73
|
</div>
|
74
74
|
|
@@ -77,12 +77,12 @@
|
|
77
77
|
|
78
78
|
<%= hidden_field_tag :mac, @cvss_vector['MAC'] %>
|
79
79
|
|
80
|
-
<div class="btn-group mb-4"
|
81
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'X' %>" name="mac" value="X" data-label="Not Defined" data-cvss="MAC_X_Label">N/D <i class="fa fa-question-circle
|
80
|
+
<div class="btn-group mb-4">
|
81
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'X' %>" name="mac" value="X" data-label="Not Defined" data-cvss="MAC_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
82
82
|
|
83
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'L' %>" name="mac" value="L" data-label="Low" data-cvss="MAC_L_Label">Low <i class="fa fa-question-circle
|
83
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'L' %>" name="mac" value="L" data-label="Low" data-cvss="MAC_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
84
84
|
|
85
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'H' %>" name="mac" value="H" data-label="High" data-cvss="MAC_H_Label">High <i class="fa fa-question-circle
|
85
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'H' %>" name="mac" value="H" data-label="High" data-cvss="MAC_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
88
|
|
@@ -91,14 +91,14 @@
|
|
91
91
|
|
92
92
|
<%= hidden_field_tag :mpr, @cvss_vector['MPR'] %>
|
93
93
|
|
94
|
-
<div class="btn-group mb-4"
|
95
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'X' %>" name="mpr" value="X" data-label="Not Defined" data-cvss="MPR_X_Label">N/D <i class="fa fa-question-circle
|
94
|
+
<div class="btn-group mb-4">
|
95
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'X' %>" name="mpr" value="X" data-label="Not Defined" data-cvss="MPR_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
96
96
|
|
97
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'N' %>" name="mpr" value="N" data-label="None" data-cvss="MPR_N_Label">None <i class="fa fa-question-circle
|
97
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'N' %>" name="mpr" value="N" data-label="None" data-cvss="MPR_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
98
98
|
|
99
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'L' %>" name="mpr" value="L" data-label="Low" data-cvss="MPR_L_Label">Low <i class="fa fa-question-circle
|
99
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'L' %>" name="mpr" value="L" data-label="Low" data-cvss="MPR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
100
100
|
|
101
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'H' %>" name="mpr" value="H" data-label="High" data-cvss="MPR_H_Label">High <i class="fa fa-question-circle
|
101
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'H' %>" name="mpr" value="H" data-label="High" data-cvss="MPR_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
@@ -107,12 +107,12 @@
|
|
107
107
|
|
108
108
|
<%= hidden_field_tag :mui, @cvss_vector['MUI'] %>
|
109
109
|
|
110
|
-
<div class="btn-group mb-4"
|
111
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'X' %>" name="mui" value="X" data-label="Not Defined" data-cvss="MUI_X_Label">N/D <i class="fa fa-question-circle
|
110
|
+
<div class="btn-group mb-4">
|
111
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'X' %>" name="mui" value="X" data-label="Not Defined" data-cvss="MUI_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
112
112
|
|
113
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'N' %>" name="mui" value="N" data-label="None" data-cvss="MUI_N_Label">None <i class="fa fa-question-circle
|
113
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'N' %>" name="mui" value="N" data-label="None" data-cvss="MUI_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
114
114
|
|
115
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'R' %>" name="mui" value="R" data-label="Required" data-cvss="MUI_R_Label">Required <i class="fa fa-question-circle
|
115
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'R' %>" name="mui" value="R" data-label="Required" data-cvss="MUI_R_Label">Required <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
|
@@ -121,12 +121,12 @@
|
|
121
121
|
|
122
122
|
<%= hidden_field_tag :ms, @cvss_vector['MS'] %>
|
123
123
|
|
124
|
-
<div class="btn-group mb-4"
|
125
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'X' %>" name="ms" value="X" data-label="Not Defined" data-cvss="MS_X_Label">N/D <i class="fa fa-question-circle
|
124
|
+
<div class="btn-group mb-4">
|
125
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'X' %>" name="ms" value="X" data-label="Not Defined" data-cvss="MS_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
126
126
|
|
127
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'U' %>" name="ms" value="U" data-label="Unchanged" data-cvss="MS_U_Label">Unchanged <i class="fa fa-question-circle
|
127
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'U' %>" name="ms" value="U" data-label="Unchanged" data-cvss="MS_U_Label">Unchanged <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
128
128
|
|
129
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'C' %>" name="ms" value="C" data-label="Changed" data-cvss="MS_C_Label">Changed <i class="fa fa-question-circle
|
129
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'C' %>" name="ms" value="C" data-label="Changed" data-cvss="MS_C_Label">Changed <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
130
130
|
</div>
|
131
131
|
</div>
|
132
132
|
|
@@ -135,14 +135,14 @@
|
|
135
135
|
|
136
136
|
<%= hidden_field_tag :mc, @cvss_vector['MC'] %>
|
137
137
|
|
138
|
-
<div class="btn-group mb-4"
|
139
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'X' %>" name="mc" value="X" data-label="Not Defined" data-cvss="MC_X_Label">N/D <i class="fa fa-question-circle
|
138
|
+
<div class="btn-group mb-4">
|
139
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'X' %>" name="mc" value="X" data-label="Not Defined" data-cvss="MC_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
140
140
|
|
141
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'N' %>" name="mc" value="N" data-label="None" data-cvss="MC_N_Label">None <i class="fa fa-question-circle
|
141
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'N' %>" name="mc" value="N" data-label="None" data-cvss="MC_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
142
142
|
|
143
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'L' %>" name="mc" value="L" data-label="Low" data-cvss="MC_L_Label">Low<i class="fa fa-question-circle
|
143
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'L' %>" name="mc" value="L" data-label="Low" data-cvss="MC_L_Label">Low<i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
144
144
|
|
145
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'H' %>" name="mc" value="H" data-label="High" data-cvss="MC_H_Label">High <i class="fa fa-question-circle
|
145
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'H' %>" name="mc" value="H" data-label="High" data-cvss="MC_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
|
@@ -151,14 +151,14 @@
|
|
151
151
|
|
152
152
|
<%= hidden_field_tag :mi, @cvss_vector['MI'] %>
|
153
153
|
|
154
|
-
<div class="btn-group mb-4"
|
155
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'X' %>" name="mi" value="X" data-label="Not Defined" data-cvss="MI_X_Label">N/D <i class="fa fa-question-circle
|
154
|
+
<div class="btn-group mb-4">
|
155
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'X' %>" name="mi" value="X" data-label="Not Defined" data-cvss="MI_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
156
156
|
|
157
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'N' %>" name="mi" value="N" data-label="None" data-cvss="MI_N_Label">None <i class="fa fa-question-circle
|
157
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'N' %>" name="mi" value="N" data-label="None" data-cvss="MI_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
158
158
|
|
159
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'L' %>" name="mi" value="L" data-label="Low" data-cvss="MI_L_Label">Low <i class="fa fa-question-circle
|
159
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'L' %>" name="mi" value="L" data-label="Low" data-cvss="MI_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
160
160
|
|
161
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'H' %>" name="mi" value="H" data-label="High" data-cvss="MI_H_Label">High <i class="fa fa-question-circle
|
161
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'H' %>" name="mi" value="H" data-label="High" data-cvss="MI_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
162
162
|
</div>
|
163
163
|
</div>
|
164
164
|
|
@@ -167,14 +167,14 @@
|
|
167
167
|
|
168
168
|
<%= hidden_field_tag :ma, @cvss_vector['MA'] %>
|
169
169
|
|
170
|
-
<div class="btn-group mb-4"
|
171
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'X' %>" name="ma" value="X" data-label="Not Defined" data-cvss="MA_X_Label">N/D <i class="fa fa-question-circle
|
170
|
+
<div class="btn-group mb-4">
|
171
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'X' %>" name="ma" value="X" data-label="Not Defined" data-cvss="MA_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
172
172
|
|
173
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'N' %>" name="ma" value="N" data-label="None" data-cvss="MA_N_Label">None <i class="fa fa-question-circle
|
173
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'N' %>" name="ma" value="N" data-label="None" data-cvss="MA_N_Label">None <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
174
174
|
|
175
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'L' %>" name="ma" value="L" data-label="Low" data-cvss="MA_L_Label">Low <i class="fa fa-question-circle
|
175
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'L' %>" name="ma" value="L" data-label="Low" data-cvss="MA_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
176
176
|
|
177
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'H' %>" name="ma" value="H" data-label="High" data-cvss="MA_H_Label">High <i class="fa fa-question-circle
|
177
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'H' %>" name="ma" value="H" data-label="High" data-cvss="MA_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
178
178
|
</div>
|
179
179
|
</div>
|
180
180
|
</div>
|
@@ -7,16 +7,16 @@
|
|
7
7
|
|
8
8
|
<%= hidden_field_tag :e, @cvss_vector['E'] %>
|
9
9
|
|
10
|
-
<div class="btn-group mb-4"
|
11
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'X' %>" name="e" value="X" data-label="Not Defined" data-cvss="E_X_Label">Not Defined <i class="fa fa-question-circle
|
10
|
+
<div class="btn-group mb-4">
|
11
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'X' %>" name="e" value="X" data-label="Not Defined" data-cvss="E_X_Label">Not Defined <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
12
12
|
|
13
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'U' %>" name="e" value="U" data-label="Unproven" data-cvss="E_U_Label">Unproven <i class="fa fa-question-circle
|
13
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'U' %>" name="e" value="U" data-label="Unproven" data-cvss="E_U_Label">Unproven <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
14
14
|
|
15
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'P' %>" name="e" value="P" data-label="Proof-of-Concept" data-cvss="E_P_Label">Proof-of-Concept <i class="fa fa-question-circle
|
15
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'P' %>" name="e" value="P" data-label="Proof-of-Concept" data-cvss="E_P_Label">Proof-of-Concept <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
16
16
|
|
17
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'F' %>" name="e" value="F" data-label="Functional" data-cvss="E_F_Label">Functional <i class="fa fa-question-circle
|
17
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'F' %>" name="e" value="F" data-label="Functional" data-cvss="E_F_Label">Functional <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
18
18
|
|
19
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'H' %>" name="e" value="H" data-label="High" data-cvss="E_H_Label">High <i class="fa fa-question-circle
|
19
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'H' %>" name="e" value="H" data-label="High" data-cvss="E_H_Label">High <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
|
@@ -27,16 +27,16 @@
|
|
27
27
|
|
28
28
|
<%= hidden_field_tag :rl, @cvss_vector['RL'] %>
|
29
29
|
|
30
|
-
<div class="btn-group mb-4"
|
31
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'X' %>" name="rl" value="X" data-label="Not Defined" data-cvss="RL_X_Label">Not Defined <i class="fa fa-question-circle
|
30
|
+
<div class="btn-group mb-4">
|
31
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'X' %>" name="rl" value="X" data-label="Not Defined" data-cvss="RL_X_Label">Not Defined <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
32
32
|
|
33
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'O' %>" name="rl" value="O" data-label="Official Fix" data-cvss="RL_O_Label">Official Fix <i class="fa fa-question-circle
|
33
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'O' %>" name="rl" value="O" data-label="Official Fix" data-cvss="RL_O_Label">Official Fix <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
34
34
|
|
35
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'T' %>" name="rl" value="T" data-label="Temporary Fix" data-cvss="RL_T_Label">Temporary Fix <i class="fa fa-question-circle
|
35
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'T' %>" name="rl" value="T" data-label="Temporary Fix" data-cvss="RL_T_Label">Temporary Fix <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
36
36
|
|
37
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'W' %>" name="rl" value="W" data-label="Workaround" data-cvss="RL_W_Label">Workaround <i class="fa fa-question-circle
|
37
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'W' %>" name="rl" value="W" data-label="Workaround" data-cvss="RL_W_Label">Workaround <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
38
38
|
|
39
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'U' %>" name="rl" value="U" data-label="Unavailable" data-cvss="RL_U_Label">Unavailable <i class="fa fa-question-circle
|
39
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'U' %>" name="rl" value="U" data-label="Unavailable" data-cvss="RL_U_Label">Unavailable <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
40
40
|
</div>
|
41
41
|
</div>
|
42
42
|
|
@@ -47,14 +47,14 @@
|
|
47
47
|
|
48
48
|
<%= hidden_field_tag :rc, @cvss_vector['RC'] %>
|
49
49
|
|
50
|
-
<div class="btn-group mb-4"
|
51
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'X' %>" name="rc" value="X" data-label="Not Defined" data-cvss="RC_X_Label">Not Defined <i class="fa fa-question-circle
|
50
|
+
<div class="btn-group mb-4">
|
51
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'X' %>" name="rc" value="X" data-label="Not Defined" data-cvss="RC_X_Label">Not Defined <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
52
52
|
|
53
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'U' %>" name="rc" value="U" data-label="Unknown" data-cvss="RC_U_Label">Unknown <i class="fa fa-question-circle
|
53
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'U' %>" name="rc" value="U" data-label="Unknown" data-cvss="RC_U_Label">Unknown <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
54
54
|
|
55
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'R' %>" name="rc" value="R" data-label="Reasonable" data-cvss="RC_R_Label">Reasonable <i class="fa fa-question-circle
|
55
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'R' %>" name="rc" value="R" data-label="Reasonable" data-cvss="RC_R_Label">Reasonable <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
56
56
|
|
57
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'C' %>" name="rc" value="C" data-label="Confirmed" data-cvss="RC_C_Label">Confirmed <i class="fa fa-question-circle
|
57
|
+
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'C' %>" name="rc" value="C" data-label="Confirmed" data-cvss="RC_C_Label">Confirmed <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
|
58
58
|
</div>
|
59
59
|
|
60
60
|
</div>
|
@@ -8,26 +8,26 @@
|
|
8
8
|
<p class="alert alert-danger d-none" data-behavior="cvss-error"></p>
|
9
9
|
|
10
10
|
<div class="row">
|
11
|
-
<div class="col-8">
|
11
|
+
<div class="col-lg-8">
|
12
12
|
|
13
13
|
<h2 data-cvss="baseMetricGroup_Legend">
|
14
14
|
Base: <span id="base-score">0</span>
|
15
15
|
</h2>
|
16
16
|
<%= render 'dradis/plugins/calculators/cvss/base/base' %>
|
17
17
|
|
18
|
-
<h2 data-cvss="temporalMetricGroup_Legend">
|
18
|
+
<h2 data-cvss="temporalMetricGroup_Legend" class="mt-5">
|
19
19
|
Temporal: <span id="temporal-score">0</span>
|
20
20
|
</h2>
|
21
21
|
<%= render 'dradis/plugins/calculators/cvss/base/temporal' %>
|
22
22
|
|
23
|
-
<h2 data-cvss="environmentalMetricGroup_Legend">
|
23
|
+
<h2 data-cvss="environmentalMetricGroup_Legend" class="mt-5">
|
24
24
|
Environmental: <span id="environmental-score">0</span>
|
25
25
|
</h2>
|
26
26
|
<%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
|
27
27
|
</div>
|
28
28
|
|
29
|
-
<div class="col-4">
|
30
|
-
<textarea name="cvss_fields" rows="52" class="form-control
|
29
|
+
<div class="col-lg-4">
|
30
|
+
<textarea name="cvss_fields" rows="52" class="form-control mb-4">#[CVSSv3.Vector]#
|
31
31
|
N/A
|
32
32
|
|
33
33
|
#[CVSSv3.BaseScore]#
|
@@ -73,8 +73,6 @@ N/A
|
|
73
73
|
#[CVSSv3.ModifiedConfidentiality]#
|
74
74
|
#[CVSSv3.ModifiedIntegrity]#
|
75
75
|
#[CVSSv3.ModifiedAvailability]#
|
76
|
-
|
77
|
-
|
78
76
|
</textarea>
|
79
77
|
</div>
|
80
78
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% if Dradis::Plugins::Calculators::CVSS::Engine.settings.show.to_i == 1 %>
|
2
|
-
<li class="nav-item">
|
3
|
-
|
4
|
-
</li>
|
2
|
+
<li class="nav-item">
|
3
|
+
<a href="#cvss-tab" data-bs-toggle="tab" class="nav-link"><i class="fa-solid fa-calculator"></i> CVSS</a>
|
4
|
+
</li>
|
5
5
|
<% end %>
|
@@ -14,31 +14,31 @@
|
|
14
14
|
|
15
15
|
<%= simple_form_for [:cvss, current_project, @issue] do |f| %>
|
16
16
|
|
17
|
-
<div class="alert alert-error
|
17
|
+
<div class="alert alert-error" data-behavior="cvss-error">
|
18
18
|
<p><strong>Warning</strong>: all Base metrics are required</p>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<ul class="nav nav-pills w-100" id="cvss-tabs">
|
22
22
|
<li class="nav-item">
|
23
|
-
<a href="#cvss-edit-base" data-toggle="pill" class="nav-link active">Base: <span id="base-score">0</span></a>
|
23
|
+
<a href="#cvss-edit-base" data-bs-toggle="pill" class="nav-link active">Base: <span id="base-score">0</span></a>
|
24
24
|
</li>
|
25
25
|
<li class="nav-item">
|
26
|
-
<a href="#cvss-edit-temporal" data-toggle="pill" class="nav-link">Temporal: <span id="temporal-score">0</span></a>
|
26
|
+
<a href="#cvss-edit-temporal" data-bs-toggle="pill" class="nav-link">Temporal: <span id="temporal-score">0</span></a>
|
27
27
|
</li>
|
28
28
|
<li class="nav-item">
|
29
|
-
<a href="#cvss-edit-environmental" data-toggle="pill" class="nav-link">Environmental: <span id="environmental-score">0</span></a>
|
29
|
+
<a href="#cvss-edit-environmental" data-bs-toggle="pill" class="nav-link">Environmental: <span id="environmental-score">0</span></a>
|
30
30
|
</li>
|
31
31
|
<li class="nav-item pull-right">
|
32
|
-
<a href="#cvss-edit-result" data-toggle="pill" class="nav-link">Result</a>
|
32
|
+
<a href="#cvss-edit-result" data-bs-toggle="pill" class="nav-link">Result</a>
|
33
33
|
</li>
|
34
34
|
</ul>
|
35
35
|
|
36
36
|
<div class="tab-content mt-4">
|
37
37
|
<div class="tab-pane active" id="cvss-edit-base">
|
38
|
-
<%= render 'dradis/plugins/calculators/cvss/base/base'
|
38
|
+
<%= render 'dradis/plugins/calculators/cvss/base/base' %>
|
39
39
|
</div>
|
40
40
|
<div class="tab-pane" id="cvss-edit-temporal">
|
41
|
-
<%= render 'dradis/plugins/calculators/cvss/base/temporal'
|
41
|
+
<%= render 'dradis/plugins/calculators/cvss/base/temporal' %>
|
42
42
|
</div>
|
43
43
|
<div class="tab-pane" id="cvss-edit-environmental">
|
44
44
|
<%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
</head>
|
11
11
|
<body class="authenticated">
|
12
12
|
<div class="container">
|
13
|
-
<nav class="navbar
|
13
|
+
<nav class="navbar">
|
14
14
|
<a href="javascript:void(0)" class="navbar-brand">CVSS score calculator</a>
|
15
15
|
<ul class="navbar-nav pull-right">
|
16
16
|
<li class="nav-item">
|
@@ -13,11 +13,10 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.license = 'GPL-2'
|
14
14
|
|
15
15
|
spec.authors = ['Daniel Martin']
|
16
|
-
spec.
|
17
|
-
spec.homepage = 'http://dradisframework.org'
|
16
|
+
spec.homepage = 'https://dradis.com/support/guides/projects/calculators.html'
|
18
17
|
|
19
18
|
spec.files = `git ls-files`.split($\)
|
20
|
-
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
21
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
21
|
|
23
22
|
spec.add_dependency 'dradis-plugins', '~> 4.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-calculator_cvss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -53,8 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
description: Display a CVSS score calculator in Dradis Framework.
|
56
|
-
email:
|
57
|
-
- etd@nomejortu.com
|
56
|
+
email:
|
58
57
|
executables: []
|
59
58
|
extensions: []
|
60
59
|
extra_rdoc_files: []
|
@@ -98,7 +97,7 @@ files:
|
|
98
97
|
- lib/dradis/plugins/calculators/cvss/engine.rb
|
99
98
|
- lib/dradis/plugins/calculators/cvss/gem_version.rb
|
100
99
|
- lib/dradis/plugins/calculators/cvss/version.rb
|
101
|
-
homepage:
|
100
|
+
homepage: https://dradis.com/support/guides/projects/calculators.html
|
102
101
|
licenses:
|
103
102
|
- GPL-2
|
104
103
|
metadata: {}
|