dradis-calculator_cvss 4.7.0 → 4.9.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 +6 -0
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss +9 -30
- data/app/views/dradis/plugins/calculators/cvss/_version_switch.html.erb +3 -3
- data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +8 -8
- data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +11 -11
- data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +3 -3
- data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +5 -7
- 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/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6db94136fad48779b42b1de7e2eed91f2ee31f6ec967ee4980a989230ee50bb
|
4
|
+
data.tar.gz: c31893841640333942f54d4d91d603a2028ee63820c2236acf07636e2f869a94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4686cb1912a6bac3c8ea876d2f61300270baa8ade472d207122e9d33c1cde9535701ca5b11e8fd8433a5e931b3bf841e5a55c0bf06eb88d620d1a4eed82fe5
|
7
|
+
data.tar.gz: eca5710c781b1c2897308c75408cbfffbafef0a833ac8bb0b7e0b41da65ea098fb3447035478bf0d23c684f850050ee4c63cf80279a4a351867d278b3ef16abd
|
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,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<%= hidden_field_tag :av, @cvss_vector['AV'] %>
|
9
9
|
|
10
|
-
<div class="btn-group mb-4 text-nowrap"
|
10
|
+
<div class="btn-group mb-4 text-nowrap">
|
11
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-o" aria-hidden="true"></i></button>
|
12
12
|
|
13
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-o" aria-hidden="true"></i></button>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
<%= hidden_field_tag :ac, @cvss_vector['AC'] %>
|
25
25
|
|
26
|
-
<div class="btn-group mb-4"
|
26
|
+
<div class="btn-group mb-4">
|
27
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-o" aria-hidden="true"></i></button>
|
28
28
|
|
29
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-o" aria-hidden="true"></i></button>
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
<%= hidden_field_tag :pr, @cvss_vector['PR'] %>
|
37
37
|
|
38
|
-
<div class="btn-group mb-4"
|
38
|
+
<div class="btn-group mb-4">
|
39
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-o" aria-hidden="true"></i></button>
|
40
40
|
|
41
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-o" aria-hidden="true"></i></button>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
|
50
50
|
<%= hidden_field_tag :ui, @cvss_vector['UI'] %>
|
51
51
|
|
52
|
-
<div class="btn-group mb-4"
|
52
|
+
<div class="btn-group mb-4">
|
53
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-o" aria-hidden="true"></i></button>
|
54
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-o" aria-hidden="true"></i></button>
|
55
55
|
</div>
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
<%= hidden_field_tag :s, @cvss_vector['S'] %>
|
64
64
|
|
65
|
-
<div class="btn-group mb-4"
|
65
|
+
<div class="btn-group mb-4">
|
66
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-o" aria-hidden="true"></i></button>
|
67
67
|
|
68
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-o" aria-hidden="true"></i></button>
|
@@ -74,7 +74,7 @@
|
|
74
74
|
|
75
75
|
<%= hidden_field_tag :c, @cvss_vector['C'] %>
|
76
76
|
|
77
|
-
<div class="btn-group mb-4"
|
77
|
+
<div class="btn-group mb-4">
|
78
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-o" aria-hidden="true"></i></button>
|
79
79
|
|
80
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-o" aria-hidden="true"></i></button>
|
@@ -88,7 +88,7 @@
|
|
88
88
|
|
89
89
|
<%= hidden_field_tag :i, @cvss_vector['I'] %>
|
90
90
|
|
91
|
-
<div class="btn-group mb-4"
|
91
|
+
<div class="btn-group mb-4">
|
92
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-o" aria-hidden="true"></i></button>
|
93
93
|
|
94
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-o" aria-hidden="true"></i></button>
|
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
<%= hidden_field_tag :a, @cvss_vector['A'] %>
|
104
104
|
|
105
|
-
<div class="btn-group mb-4"
|
105
|
+
<div class="btn-group mb-4">
|
106
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-o" aria-hidden="true"></i></button>
|
107
107
|
|
108
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-o" aria-hidden="true"></i></button>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<%= hidden_field_tag :cr, @cvss_vector['CR'] %>
|
10
10
|
|
11
|
-
<div class="btn-group mb-4"
|
11
|
+
<div class="btn-group mb-4">
|
12
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-o" aria-hidden="true"></i></button>
|
13
13
|
|
14
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-o" aria-hidden="true"></i></button>
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
<%= hidden_field_tag :ir, @cvss_vector['IR'] %>
|
26
26
|
|
27
|
-
<div class="btn-group mb-4"
|
27
|
+
<div class="btn-group mb-4">
|
28
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-o" aria-hidden="true"></i></button>
|
29
29
|
|
30
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-o" aria-hidden="true"></i></button>
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
<%= hidden_field_tag :ar, @cvss_vector['AR'] %>
|
42
42
|
|
43
|
-
<div class="btn-group mb-4"
|
43
|
+
<div class="btn-group mb-4">
|
44
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-o" aria-hidden="true"></i></button>
|
45
45
|
|
46
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-o" aria-hidden="true"></i></button>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
|
60
60
|
<%= hidden_field_tag :mav, @cvss_vector['MAV'] %>
|
61
61
|
|
62
|
-
<div class="btn-group mb-4"
|
62
|
+
<div class="btn-group mb-4">
|
63
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-o" aria-hidden="true"></i></button>
|
64
64
|
|
65
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-o" aria-hidden="true"></i></button>
|
@@ -77,7 +77,7 @@
|
|
77
77
|
|
78
78
|
<%= hidden_field_tag :mac, @cvss_vector['MAC'] %>
|
79
79
|
|
80
|
-
<div class="btn-group mb-4"
|
80
|
+
<div class="btn-group mb-4">
|
81
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-o" aria-hidden="true"></i></button>
|
82
82
|
|
83
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-o" aria-hidden="true"></i></button>
|
@@ -91,7 +91,7 @@
|
|
91
91
|
|
92
92
|
<%= hidden_field_tag :mpr, @cvss_vector['MPR'] %>
|
93
93
|
|
94
|
-
<div class="btn-group mb-4"
|
94
|
+
<div class="btn-group mb-4">
|
95
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-o" aria-hidden="true"></i></button>
|
96
96
|
|
97
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-o" aria-hidden="true"></i></button>
|
@@ -107,7 +107,7 @@
|
|
107
107
|
|
108
108
|
<%= hidden_field_tag :mui, @cvss_vector['MUI'] %>
|
109
109
|
|
110
|
-
<div class="btn-group mb-4"
|
110
|
+
<div class="btn-group mb-4">
|
111
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-o" aria-hidden="true"></i></button>
|
112
112
|
|
113
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-o" aria-hidden="true"></i></button>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
|
122
122
|
<%= hidden_field_tag :ms, @cvss_vector['MS'] %>
|
123
123
|
|
124
|
-
<div class="btn-group mb-4"
|
124
|
+
<div class="btn-group mb-4">
|
125
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-o" aria-hidden="true"></i></button>
|
126
126
|
|
127
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-o" aria-hidden="true"></i></button>
|
@@ -135,7 +135,7 @@
|
|
135
135
|
|
136
136
|
<%= hidden_field_tag :mc, @cvss_vector['MC'] %>
|
137
137
|
|
138
|
-
<div class="btn-group mb-4"
|
138
|
+
<div class="btn-group mb-4">
|
139
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-o" aria-hidden="true"></i></button>
|
140
140
|
|
141
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-o" aria-hidden="true"></i></button>
|
@@ -151,7 +151,7 @@
|
|
151
151
|
|
152
152
|
<%= hidden_field_tag :mi, @cvss_vector['MI'] %>
|
153
153
|
|
154
|
-
<div class="btn-group mb-4"
|
154
|
+
<div class="btn-group mb-4">
|
155
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-o" aria-hidden="true"></i></button>
|
156
156
|
|
157
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-o" aria-hidden="true"></i></button>
|
@@ -167,7 +167,7 @@
|
|
167
167
|
|
168
168
|
<%= hidden_field_tag :ma, @cvss_vector['MA'] %>
|
169
169
|
|
170
|
-
<div class="btn-group mb-4"
|
170
|
+
<div class="btn-group mb-4">
|
171
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-o" aria-hidden="true"></i></button>
|
172
172
|
|
173
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-o" aria-hidden="true"></i></button>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<%= hidden_field_tag :e, @cvss_vector['E'] %>
|
9
9
|
|
10
|
-
<div class="btn-group mb-4"
|
10
|
+
<div class="btn-group mb-4">
|
11
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-o" aria-hidden="true"></i></button>
|
12
12
|
|
13
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-o" aria-hidden="true"></i></button>
|
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
<%= hidden_field_tag :rl, @cvss_vector['RL'] %>
|
29
29
|
|
30
|
-
<div class="btn-group mb-4"
|
30
|
+
<div class="btn-group mb-4">
|
31
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-o" aria-hidden="true"></i></button>
|
32
32
|
|
33
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-o" aria-hidden="true"></i></button>
|
@@ -47,7 +47,7 @@
|
|
47
47
|
|
48
48
|
<%= hidden_field_tag :rc, @cvss_vector['RC'] %>
|
49
49
|
|
50
|
-
<div class="btn-group mb-4"
|
50
|
+
<div class="btn-group mb-4">
|
51
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-o" aria-hidden="true"></i></button>
|
52
52
|
|
53
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-o" aria-hidden="true"></i></button>
|
@@ -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 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">
|
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.9.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-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|