dradis-calculator_cvss 3.21.0 → 4.2.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 +42 -59
- data/CHANGELOG.template +12 -0
- data/README.md +1 -1
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee +38 -8
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js +3 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/tylium.js +3 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30_helptext.js +156 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31.js +753 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31_helptext.js +157 -0
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss +47 -0
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss +3 -2
- data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/tylium.scss +2 -0
- data/app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb +1 -1
- data/app/models/dradis/plugins/calculators/cvss/v3.rb +1 -1
- data/app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb +1 -1
- data/app/views/dradis/plugins/calculators/cvss/_version_switch.html.erb +10 -0
- 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 +7 -6
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +3 -1
- 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 +5 -2
- data/dradis-calculator_cvss.gemspec +2 -2
- data/lib/dradis/plugins/calculators/cvss/engine.rb +7 -2
- data/lib/dradis/plugins/calculators/cvss/gem_version.rb +2 -2
- metadata +16 -9
@@ -4,50 +4,50 @@
|
|
4
4
|
|
5
5
|
<div class="col-6">
|
6
6
|
<div class="inner">
|
7
|
-
<h5 class="header-underline mt-0"
|
7
|
+
<h5 class="header-underline mt-0" data-cvss="CR_Heading">Confidentiality Req. (CR)</h5>
|
8
8
|
|
9
9
|
<%= hidden_field_tag :cr, @cvss_vector['CR'] %>
|
10
10
|
|
11
11
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
12
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'X' %>" name="cr" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'L' %>" name="cr" value="L" data-label="Low"
|
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>
|
15
15
|
|
16
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'M' %>" name="cr" value="M" data-label="Medium"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
|
22
22
|
<div class="inner">
|
23
|
-
<h5 class="header-underline mt-0"
|
23
|
+
<h5 class="header-underline mt-0" data-cvss="IR_Heading">Integrity Req. (IR)</h5>
|
24
24
|
|
25
25
|
<%= hidden_field_tag :ir, @cvss_vector['IR'] %>
|
26
26
|
|
27
27
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
28
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'X' %>" name="ir" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'L' %>" name="ir" value="L" data-label="Low"
|
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>
|
31
31
|
|
32
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'M' %>" name="ir" value="M" data-label="Medium"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
35
35
|
</div>
|
36
36
|
</div>
|
37
37
|
|
38
38
|
<div class="inner">
|
39
|
-
<h5 class="header-underline mt-0"
|
39
|
+
<h5 class="header-underline mt-0" data-cvss="AR_Heading">Availability Req. (AR)</h5>
|
40
40
|
|
41
41
|
<%= hidden_field_tag :ar, @cvss_vector['AR'] %>
|
42
42
|
|
43
43
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
44
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'X' %>" name="ar" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'L' %>" name="ar" value="L" data-label="Low"
|
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>
|
47
47
|
|
48
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'M' %>" name="ar" value="M" data-label="Medium"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
51
51
|
</div>
|
52
52
|
</div>
|
53
53
|
</div>
|
@@ -55,126 +55,126 @@
|
|
55
55
|
<div class="col-6">
|
56
56
|
|
57
57
|
<div class="inner">
|
58
|
-
<h5 class="header-underline mt-0"
|
58
|
+
<h5 class="header-underline mt-0" data-cvss="MAV_Heading">Mod. Attack Vector (MAV)</h5>
|
59
59
|
|
60
60
|
<%= hidden_field_tag :mav, @cvss_vector['MAV'] %>
|
61
61
|
|
62
62
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
63
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'X' %>" name="mav" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'N' %>" name="mav" value="N" data-label="Network"
|
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>
|
66
66
|
|
67
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'A' %>" name="mav" value="A" data-label="Adjacent"
|
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-o" 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"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
72
72
|
</div>
|
73
73
|
</div>
|
74
74
|
|
75
75
|
<div class="inner">
|
76
|
-
<h5 class="header-underline mt-0"
|
76
|
+
<h5 class="header-underline mt-0" data-cvss="MAC_Heading">Mod. Attack Complexity (MAC)</h5>
|
77
77
|
|
78
78
|
<%= hidden_field_tag :mac, @cvss_vector['MAC'] %>
|
79
79
|
|
80
80
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
81
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'X' %>" name="mac" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'L' %>" name="mac" value="L" data-label="Low"
|
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>
|
84
84
|
|
85
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'H' %>" name="mac" value="H" data-label="High"
|
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-o" aria-hidden="true"></i></button>
|
86
86
|
</div>
|
87
87
|
</div>
|
88
88
|
|
89
89
|
<div class="inner">
|
90
|
-
<h5 class="header-underline mt-0"
|
90
|
+
<h5 class="header-underline mt-0" data-cvss="MPR_Heading">Mod. Privileges Required (MPR)</h5>
|
91
91
|
|
92
92
|
<%= hidden_field_tag :mpr, @cvss_vector['MPR'] %>
|
93
93
|
|
94
94
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
95
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'X' %>" name="mpr" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'N' %>" name="mpr" value="N" data-label="None"
|
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>
|
98
98
|
|
99
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'L' %>" name="mpr" value="L" data-label="Low"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
102
102
|
</div>
|
103
103
|
</div>
|
104
104
|
|
105
105
|
<div class="inner">
|
106
|
-
<h5 class="header-underline mt-0"
|
106
|
+
<h5 class="header-underline mt-0" data-cvss="MUI_Heading">Mod. User Interaction (MUI)</h5>
|
107
107
|
|
108
108
|
<%= hidden_field_tag :mui, @cvss_vector['MUI'] %>
|
109
109
|
|
110
110
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
111
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'X' %>" name="mui" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'N' %>" name="mui" value="N" data-label="None"
|
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>
|
114
114
|
|
115
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'R' %>" name="mui" value="R" data-label="Required"
|
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-o" aria-hidden="true"></i></button>
|
116
116
|
</div>
|
117
117
|
</div>
|
118
118
|
|
119
119
|
<div class="inner">
|
120
|
-
<h5 class="header-underline mt-0"
|
120
|
+
<h5 class="header-underline mt-0" data-cvss="MS_Heading">Mod. Scope (MS)</h5>
|
121
121
|
|
122
122
|
<%= hidden_field_tag :ms, @cvss_vector['MS'] %>
|
123
123
|
|
124
124
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
125
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'X' %>" name="ms" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'U' %>" name="ms" value="U" data-label="Unchanged"
|
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>
|
128
128
|
|
129
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'C' %>" name="ms" value="C" data-label="Changed"
|
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-o" aria-hidden="true"></i></button>
|
130
130
|
</div>
|
131
131
|
</div>
|
132
132
|
|
133
133
|
<div class="inner">
|
134
|
-
<h5 class="header-underline mt-0"
|
134
|
+
<h5 class="header-underline mt-0" data-cvss="MC_Heading">Mod. Confidentiality (MC)</h5>
|
135
135
|
|
136
136
|
<%= hidden_field_tag :mc, @cvss_vector['MC'] %>
|
137
137
|
|
138
138
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
139
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'X' %>" name="mc" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'N' %>" name="mc" value="N" data-label="None"
|
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>
|
142
142
|
|
143
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'L' %>" name="mc" value="L" data-label="Low"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
146
146
|
</div>
|
147
147
|
</div>
|
148
148
|
|
149
149
|
<div class="inner">
|
150
|
-
<h5 class="header-underline mt-0"
|
150
|
+
<h5 class="header-underline mt-0" data-cvss="MI_Heading">Mod. Integrity (MI)</h5>
|
151
151
|
|
152
152
|
<%= hidden_field_tag :mi, @cvss_vector['MI'] %>
|
153
153
|
|
154
154
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
155
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'X' %>" name="mi" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'N' %>" name="mi" value="N" data-label="None"
|
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>
|
158
158
|
|
159
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'L' %>" name="mi" value="L" data-label="Low"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
162
162
|
</div>
|
163
163
|
</div>
|
164
164
|
|
165
165
|
<div class="inner">
|
166
|
-
<h5 class="header-underline mt-0"
|
166
|
+
<h5 class="header-underline mt-0" data-cvss="MA_Heading">Mod. Availability (MA)</h5>
|
167
167
|
|
168
168
|
<%= hidden_field_tag :ma, @cvss_vector['MA'] %>
|
169
169
|
|
170
170
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
171
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'X' %>" name="ma" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'N' %>" name="ma" value="N" data-label="None"
|
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>
|
174
174
|
|
175
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'L' %>" name="ma" value="L" data-label="Low"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
178
178
|
</div>
|
179
179
|
</div>
|
180
180
|
</div>
|
@@ -1,60 +1,60 @@
|
|
1
1
|
<section data-behavior="cvss-buttons">
|
2
2
|
|
3
3
|
<div class="inner">
|
4
|
-
<h5 class="header-underline mt-0"
|
4
|
+
<h5 class="header-underline mt-0" data-cvss="E_Heading">
|
5
5
|
Exploit Code Maturity (E)
|
6
6
|
</h5>
|
7
7
|
|
8
8
|
<%= hidden_field_tag :e, @cvss_vector['E'] %>
|
9
9
|
|
10
10
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
11
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'X' %>" name="e" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'U' %>" name="e" value="U" data-label="Unproven"
|
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>
|
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"
|
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-o" 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"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<div class="inner">
|
24
|
-
<h5 class="header-underline mt-0"
|
24
|
+
<h5 class="header-underline mt-0" data-cvss="RL_Heading">
|
25
25
|
Remediation Level (RL)
|
26
26
|
</h5>
|
27
27
|
|
28
28
|
<%= hidden_field_tag :rl, @cvss_vector['RL'] %>
|
29
29
|
|
30
30
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
31
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'X' %>" name="rl" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'O' %>" name="rl" value="O" data-label="Official Fix"
|
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>
|
34
34
|
|
35
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'T' %>" name="rl" value="T" data-label="Temporary Fix"
|
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-o" 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"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
40
40
|
</div>
|
41
41
|
</div>
|
42
42
|
|
43
43
|
<div class="inner">
|
44
|
-
<h5 class="header-underline mt-0"
|
44
|
+
<h5 class="header-underline mt-0" data-cvss="RC_Heading">
|
45
45
|
Report Confidence (RC)
|
46
46
|
</h5>
|
47
47
|
|
48
48
|
<%= hidden_field_tag :rc, @cvss_vector['RC'] %>
|
49
49
|
|
50
50
|
<div class="btn-group mb-4" data-toggle="buttons-radio">
|
51
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'X' %>" name="rc" value="X" data-label="Not Defined"
|
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
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'U' %>" name="rc" value="U" data-label="Unknown"
|
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>
|
54
54
|
|
55
|
-
<button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'R' %>" name="rc" value="R" data-label="Reasonable"
|
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-o" 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"
|
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-o" aria-hidden="true"></i></button>
|
58
58
|
</div>
|
59
59
|
|
60
60
|
</div>
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<%= content_tag :div, class: 'page-header' do %>
|
2
|
-
<h1>
|
2
|
+
<h1>CVSS score calculator</h1>
|
3
|
+
<%= render 'dradis/plugins/calculators/cvss/version_switch' %>
|
3
4
|
<% end %>
|
4
5
|
|
5
6
|
<p class="lead">Use this page to calculate the <abbr title="Common Vulnerability Scoring System">CVSS</abbr> score of a given finding.</p>
|
@@ -9,17 +10,17 @@
|
|
9
10
|
<div class="row">
|
10
11
|
<div class="col-8">
|
11
12
|
|
12
|
-
<h2
|
13
|
+
<h2 data-cvss="baseMetricGroup_Legend">
|
13
14
|
Base: <span id="base-score">0</span>
|
14
15
|
</h2>
|
15
|
-
<%= render 'dradis/plugins/calculators/cvss/base/base'
|
16
|
+
<%= render 'dradis/plugins/calculators/cvss/base/base' %>
|
16
17
|
|
17
|
-
<h2
|
18
|
+
<h2 data-cvss="temporalMetricGroup_Legend">
|
18
19
|
Temporal: <span id="temporal-score">0</span>
|
19
20
|
</h2>
|
20
|
-
<%= render 'dradis/plugins/calculators/cvss/base/temporal'
|
21
|
+
<%= render 'dradis/plugins/calculators/cvss/base/temporal' %>
|
21
22
|
|
22
|
-
<h2
|
23
|
+
<h2 data-cvss="environmentalMetricGroup_Legend">
|
23
24
|
Environmental: <span id="environmental-score">0</span>
|
24
25
|
</h2>
|
25
26
|
<%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
|
@@ -1,6 +1,7 @@
|
|
1
|
+
<% if Dradis::Plugins::Calculators::CVSS::Engine.settings.show.to_i == 1 %>
|
1
2
|
<div class="tab-pane" id="cvss-tab">
|
2
3
|
<div class="inner">
|
3
|
-
<h4 class="header-underline">
|
4
|
+
<h4 class="header-underline">CVSS Risk Scoring -
|
4
5
|
<span class="actions">
|
5
6
|
<%= link_to cvss_calculator.cvss_project_issue_path(current_project, @issue) do %>
|
6
7
|
<i class="fa fa-pencil"></i> Edit
|
@@ -18,3 +19,4 @@
|
|
18
19
|
</div>
|
19
20
|
</div>
|
20
21
|
</div>
|
22
|
+
<% end %>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<% if Dradis::Plugins::Calculators::CVSS::Engine.settings.show.to_i == 1 %>
|
1
2
|
<li class="nav-item">
|
2
|
-
<a href="#cvss-tab" data-toggle="tab" class="nav-link"><i class="fa fa-calculator"></i>
|
3
|
+
<a href="#cvss-tab" data-toggle="tab" class="nav-link"><i class="fa fa-calculator"></i> CVSS</a>
|
3
4
|
</li>
|
5
|
+
<% end %>
|
@@ -1,11 +1,14 @@
|
|
1
|
-
<% content_for :title, 'Edit
|
1
|
+
<% content_for :title, 'Edit CVSS score' %>
|
2
2
|
|
3
3
|
<% content_for :sidebar do %>
|
4
4
|
<%= render 'issues/sidebar'%>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<div class="content-container">
|
8
|
-
<h4 class="header-underline
|
8
|
+
<h4 class="header-underline d-flex justify-content-between">
|
9
|
+
<span>Edit CVSS Risk Scoring</span>
|
10
|
+
<%= render 'dradis/plugins/calculators/cvss/version_switch' %>
|
11
|
+
</h4>
|
9
12
|
<div id="issues_editor">
|
10
13
|
<div class="inner note-text-inner">
|
11
14
|
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.platform = Gem::Platform::RUBY
|
8
8
|
spec.name = 'dradis-calculator_cvss'
|
9
9
|
spec.version = Dradis::Plugins::Calculators::CVSS::VERSION::STRING
|
10
|
-
spec.summary = 'This plugin adds a
|
10
|
+
spec.summary = 'This plugin adds a CVSS score calculator to Dradis.'
|
11
11
|
spec.description = 'Display a CVSS score calculator in Dradis Framework.'
|
12
12
|
|
13
13
|
spec.license = 'GPL-2'
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
21
21
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
22
22
|
|
23
|
-
spec.add_dependency 'dradis-plugins', '~>
|
23
|
+
spec.add_dependency 'dradis-plugins', '~> 4.0'
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.6'
|
26
26
|
spec.add_development_dependency 'rake', '~> 10.0'
|
@@ -4,13 +4,18 @@ module Dradis::Plugins::Calculators::CVSS
|
|
4
4
|
|
5
5
|
include Dradis::Plugins::Base
|
6
6
|
provides :addon
|
7
|
-
description 'Risk Calculator:
|
7
|
+
description 'Risk Calculator: CVSS'
|
8
|
+
|
9
|
+
addon_settings :calculator_cvss do
|
10
|
+
settings.default_show = 1
|
11
|
+
end
|
8
12
|
|
9
13
|
initializer 'calculator_cvss.asset_precompile_paths' do |app|
|
10
14
|
app.config.assets.precompile += [
|
11
15
|
'dradis/plugins/calculators/cvss/manifests/application.css',
|
12
16
|
'dradis/plugins/calculators/cvss/manifests/application.js',
|
13
|
-
'dradis/plugins/calculators/cvss/manifests/tylium.js'
|
17
|
+
'dradis/plugins/calculators/cvss/manifests/tylium.js',
|
18
|
+
'dradis/plugins/calculators/cvss/manifests/tylium.css'
|
14
19
|
]
|
15
20
|
end
|
16
21
|
|
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
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- ".github/pull_request_template.md"
|
64
64
|
- ".gitignore"
|
65
65
|
- CHANGELOG.md
|
66
|
+
- CHANGELOG.template
|
66
67
|
- CONTRIBUTING.md
|
67
68
|
- Gemfile
|
68
69
|
- LICENSE
|
@@ -72,11 +73,17 @@ files:
|
|
72
73
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js
|
73
74
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/tylium.js
|
74
75
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30.js
|
76
|
+
- app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30_helptext.js
|
77
|
+
- app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31.js
|
78
|
+
- app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31_helptext.js
|
79
|
+
- app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss
|
75
80
|
- app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss
|
81
|
+
- app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/tylium.scss
|
76
82
|
- app/controllers/dradis/plugins/calculators/cvss/base_controller.rb
|
77
83
|
- app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb
|
78
84
|
- app/models/dradis/plugins/calculators/cvss/v3.rb
|
79
85
|
- app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb
|
86
|
+
- app/views/dradis/plugins/calculators/cvss/_version_switch.html.erb
|
80
87
|
- app/views/dradis/plugins/calculators/cvss/base/_base.html.erb
|
81
88
|
- app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb
|
82
89
|
- app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb
|
@@ -95,7 +102,7 @@ homepage: http://dradisframework.org
|
|
95
102
|
licenses:
|
96
103
|
- GPL-2
|
97
104
|
metadata: {}
|
98
|
-
post_install_message:
|
105
|
+
post_install_message:
|
99
106
|
rdoc_options: []
|
100
107
|
require_paths:
|
101
108
|
- lib
|
@@ -110,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
117
|
- !ruby/object:Gem::Version
|
111
118
|
version: '0'
|
112
119
|
requirements: []
|
113
|
-
rubygems_version: 3.
|
114
|
-
signing_key:
|
120
|
+
rubygems_version: 3.1.4
|
121
|
+
signing_key:
|
115
122
|
specification_version: 4
|
116
|
-
summary: This plugin adds a
|
123
|
+
summary: This plugin adds a CVSS score calculator to Dradis.
|
117
124
|
test_files: []
|