dradis-calculator_cvss 3.15.0 → 3.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (21) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +27 -2
  3. data/app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee +48 -19
  4. data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/{application.js.coffee → application.js} +2 -1
  5. data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/{snowcrash.js.coffee → tylium.js} +0 -0
  6. data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30.js +21 -25
  7. data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss +1 -8
  8. data/app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb +1 -1
  9. data/app/models/dradis/plugins/calculators/cvss/v3.rb +12 -0
  10. data/app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb +1 -1
  11. data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +41 -41
  12. data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +67 -67
  13. data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +23 -23
  14. data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +20 -5
  15. data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +4 -5
  16. data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +3 -1
  17. data/app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb +84 -59
  18. data/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb +10 -12
  19. data/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
  20. metadata +8 -9
  21. data/app/views/dradis/plugins/calculators/cvss/_addons_menu_bs4.html.erb +0 -1
@@ -1,180 +1,180 @@
1
1
  <section data-behavior="cvss-buttons">
2
2
 
3
- <div class="row-fluid">
3
+ <div class="row">
4
4
 
5
- <div class="span5">
5
+ <div class="col-6">
6
6
  <div class="inner">
7
- <h3 title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Confidentiality of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Confidentiality impact metric versus the other modified impacts.">Confidentiality Req. (CR)</h3>
7
+ <h5 class="header-underline mt-0" title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Confidentiality of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Confidentiality impact metric versus the other modified impacts.">Confidentiality Req. (CR)</h5>
8
8
 
9
9
  <%= hidden_field_tag :cr, @cvss_vector['CR'] %>
10
10
 
11
- <div class="btn-group" data-toggle="buttons-radio">
12
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['CR'] == 'X' %>" name="cr" value="X" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
13
13
 
14
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['CR'] == 'L' %>" name="cr" value="L" title="(L) Loss of Confidentiality is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
14
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'L' %>" name="cr" value="L" data-label="Low" title="(L) Loss of Confidentiality is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
15
15
 
16
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['CR'] == 'M' %>" name="cr" value="M" title="(M) Loss of Confidentiality is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
16
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'M' %>" name="cr" value="M" data-label="Medium" title="(M) Loss of Confidentiality is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
17
17
 
18
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['CR'] == 'H' %>" name="cr" value="H" title="(H) Loss of Confidentiality is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
18
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['CR'] == 'H' %>" name="cr" value="H" data-label="High" title="(H) Loss of Confidentiality is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">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
- <h3 title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Integrity of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Integrity impact metric versus the other modified impacts.">Integrity Req. (IR)</h3>
23
+ <h5 class="header-underline mt-0" title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Integrity of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Integrity impact metric versus the other modified impacts.">Integrity Req. (IR)</h5>
24
24
 
25
25
  <%= hidden_field_tag :ir, @cvss_vector['IR'] %>
26
26
 
27
- <div class="btn-group" data-toggle="buttons-radio">
28
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['IR'] == 'X' %>" name="ir" value="X" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
29
29
 
30
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['IR'] == 'L' %>" name="ir" value="L" title="(L) Loss of Integrity is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
30
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'L' %>" name="ir" value="L" data-label="Low" title="(L) Loss of Integrity is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
31
31
 
32
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['IR'] == 'M' %>" name="ir" value="M" title="(M) Loss of Integrity is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
32
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'M' %>" name="ir" value="M" data-label="Medium" title="(M) Loss of Integrity is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
33
33
 
34
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['IR'] == 'H' %>" name="ir" value="H" title="(H) Loss of Integrity is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
34
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['IR'] == 'H' %>" name="ir" value="H" data-label="High" title="(H) Loss of Integrity is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">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
- <h3 title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Availability of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Availability impact metric versus the other modified impacts.">Availability Req. (AR)</h3>
39
+ <h5 class="header-underline mt-0" title="These metrics enable the analyst to customize the CVSS score depending on the importance of the Availability of the affected IT asset to a user’s organization, relative to other impacts. This metric modifies the environmental score by reweighting the Modified Availability impact metric versus the other modified impacts.">Availability Req. (AR)</h5>
40
40
 
41
41
  <%= hidden_field_tag :ar, @cvss_vector['AR'] %>
42
42
 
43
- <div class="btn-group" data-toggle="buttons-radio">
44
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['AR'] == 'X' %>" name="ar" value="X" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
45
45
 
46
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['AR'] == 'L' %>" name="ar" value="L" title="(L) Loss of Availability is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
46
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'L' %>" name="ar" value="L" data-label="Low" title="(L) Loss of Availability is likely to have only a limited adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
47
47
 
48
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['AR'] == 'M' %>" name="ar" value="M" title="(M) Loss of availability is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
48
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'M' %>" name="ar" value="M" data-label="Medium" title="(M) Loss of availability is likely to have a serious adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">Med <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
49
49
 
50
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['AR'] == 'H' %>" name="ar" value="H" title="(H) Loss of Availability is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
50
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AR'] == 'H' %>" name="ar" value="H" data-label="High" title="(H) Loss of Availability is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
51
51
  </div>
52
52
  </div>
53
53
  </div>
54
54
 
55
- <div class="span7">
55
+ <div class="col-6">
56
56
 
57
57
  <div class="inner">
58
- <h3 title="This metric reflects the context by which vulnerability exploitation is possible. The Base Score increases the more remote (logically, and physically) an attacker can be in order to exploit the vulnerable component.">Mod. Attack Vector (MAV)</h3>
58
+ <h5 class="header-underline mt-0" title="This metric reflects the context by which vulnerability exploitation is possible. The Base Score increases the more remote (logically, and physically) an attacker can be in order to exploit the vulnerable component.">Mod. Attack Vector (MAV)</h5>
59
59
 
60
60
  <%= hidden_field_tag :mav, @cvss_vector['MAV'] %>
61
61
 
62
- <div class="btn-group" data-toggle="buttons-radio">
63
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAV'] == 'X' %>" name="mav" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
64
64
 
65
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAV'] == 'N' %>" name="mav" value="N" title="(N) A vulnerability exploitable with network access means the vulnerable component is bound to the network stack and the attacker's path is through OSI layer 3 (the network layer). Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable one or more network hops away.">Net. <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
65
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'N' %>" name="mav" value="N" data-label="Network" title="(N) A vulnerability exploitable with network access means the vulnerable component is bound to the network stack and the attacker's path is through OSI layer 3 (the network layer). Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable one or more network hops away.">Net. <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
66
66
 
67
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAV'] == 'A' %>" name="mav" value="A" title="(A) A vulnerability exploitable with adjacent network access means the vulnerable component is bound to the network stack, however the attack is limited to the same shared physical (e.g. Bluetooth, IEEE 802.11), or logical (e.g. local IP subnet) network, and cannot be performed across an OSI layer 3 boundary (e.g. a router).">Adjacent <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
67
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'A' %>" name="mav" value="A" data-label="Adjacent" title="(A) A vulnerability exploitable with adjacent network access means the vulnerable component is bound to the network stack, however the attack is limited to the same shared physical (e.g. Bluetooth, IEEE 802.11), or logical (e.g. local IP subnet) network, and cannot be performed across an OSI layer 3 boundary (e.g. a router).">Adjacent <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
68
68
 
69
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAV'] == 'L' %>" name="mav" value="L" title="(L) A vulnerability exploitable with local access means that the vulnerable component is not bound to the network stack, and the attacker’s path is via read/write/execute capabilities. In some cases, the attacker may be logged in locally in order to exploit the vulnerability, otherwise, she may rely on User Interaction to execute a malicious file.">Local <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
69
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'L' %>" name="mav" value="L" data-label="Local" title="(L) A vulnerability exploitable with local access means that the vulnerable component is not bound to the network stack, and the attacker’s path is via read/write/execute capabilities. In some cases, the attacker may be logged in locally in order to exploit the vulnerability, otherwise, she may rely on User Interaction to execute a malicious file.">Local <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
70
70
 
71
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAV'] == 'P' %>" name="mav" value="P" title="(P) A vulnerability exploitable with physical access requires the attacker to physically touch or manipulate the vulnerable component. Physical interaction may be brief or persistent.">Physical <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
71
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAV'] == 'P' %>" name="mav" value="P" data-label="Physical" title="(P) A vulnerability exploitable with physical access requires the attacker to physically touch or manipulate the vulnerable component. Physical interaction may be brief or persistent.">Physical <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
72
72
  </div>
73
73
  </div>
74
74
 
75
75
  <div class="inner">
76
- <h3 title="This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. Such conditions may require the collection of more information about the target, the presence of certain system configuration settings, or computational exceptions.">Mod. Attack Complexity (MAC)</h3>
76
+ <h5 class="header-underline mt-0" title="This metric describes the conditions beyond the attacker’s control that must exist in order to exploit the vulnerability. Such conditions may require the collection of more information about the target, the presence of certain system configuration settings, or computational exceptions.">Mod. Attack Complexity (MAC)</h5>
77
77
 
78
78
  <%= hidden_field_tag :mac, @cvss_vector['MAC'] %>
79
79
 
80
- <div class="btn-group" data-toggle="buttons-radio">
81
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAC'] == 'X' %>" name="mac" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
82
82
 
83
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAC'] == 'L' %>" name="mac" value="L" title="(L) Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
83
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'L' %>" name="mac" value="L" data-label="Low" title="(L) Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
84
84
 
85
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MAC'] == 'H' %>" name="mac" value="H" title="(H) A successful attack depends on conditions beyond the attacker's control. That is, a successful attack cannot be accomplished at will, but requires the attacker to invest in some measurable amount of effort in preparation or execution against the vulnerable component before a successful attack can be expected. For example, a successful attack may require the attacker: to perform target-specific reconnaissance; to prepare the target environment to improve exploit reliability; or to inject herself into the logical network path between the target and the resource requested by the victim in order to read and/or modify network communications (e.g. a man in the middle attack).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
85
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MAC'] == 'H' %>" name="mac" value="H" data-label="High" title="(H) A successful attack depends on conditions beyond the attacker's control. That is, a successful attack cannot be accomplished at will, but requires the attacker to invest in some measurable amount of effort in preparation or execution against the vulnerable component before a successful attack can be expected. For example, a successful attack may require the attacker: to perform target-specific reconnaissance; to prepare the target environment to improve exploit reliability; or to inject herself into the logical network path between the target and the resource requested by the victim in order to read and/or modify network communications (e.g. a man in the middle attack).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
86
86
  </div>
87
87
  </div>
88
88
 
89
89
  <div class="inner">
90
- <h3 title="This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. This Base Score increases as fewer privileges are required.">Mod. Privileges Required (MPR)</h3>
90
+ <h5 class="header-underline mt-0" title="This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability. This Base Score increases as fewer privileges are required.">Mod. Privileges Required (MPR)</h5>
91
91
 
92
92
  <%= hidden_field_tag :mpr, @cvss_vector['MPR'] %>
93
93
 
94
- <div class="btn-group" data-toggle="buttons-radio">
95
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MPR'] == 'X' %>" name="mpr" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
96
96
 
97
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MPR'] == 'N' %>" name="mpr" value="N" title="(N) The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
97
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'N' %>" name="mpr" value="N" data-label="None" title="(N) The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
98
98
 
99
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MPR'] == 'L' %>" name="mpr" value="L" title="(L) The attacker is authorized with (i.e. requires) privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges may have the ability to cause an impact only to non-sensitive resources.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
99
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'L' %>" name="mpr" value="L" data-label="Low" title="(L) The attacker is authorized with (i.e. requires) privileges that provide basic user capabilities that could normally affect only settings and files owned by a user. Alternatively, an attacker with Low privileges may have the ability to cause an impact only to non-sensitive resources.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
100
100
 
101
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MPR'] == 'H' %>" name="mpr" value="H" title="(H) The attacker is authorized with (i.e. requires) privileges that provide significant (e.g. administrative) control over the vulnerable component that could affect component-wide settings and files.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
101
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MPR'] == 'H' %>" name="mpr" value="H" data-label="High" title="(H) The attacker is authorized with (i.e. requires) privileges that provide significant (e.g. administrative) control over the vulnerable component that could affect component-wide settings and files.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
102
102
  </div>
103
103
  </div>
104
104
 
105
105
  <div class="inner">
106
- <h3 title="This metric captures the requirement for a user, other than the attacker, to participate in the successful compromise the vulnerable component. This metric determines whether the vulnerability can be exploited solely at the will of the attacker, or whether a separate user (or user-initiated process) must participate in some manner. The Base Score is highest when no user interaction is required.">Mod. User Interaction (MUI)</h3>
106
+ <h5 class="header-underline mt-0" title="This metric captures the requirement for a user, other than the attacker, to participate in the successful compromise the vulnerable component. This metric determines whether the vulnerability can be exploited solely at the will of the attacker, or whether a separate user (or user-initiated process) must participate in some manner. The Base Score is highest when no user interaction is required.">Mod. User Interaction (MUI)</h5>
107
107
 
108
108
  <%= hidden_field_tag :mui, @cvss_vector['MUI'] %>
109
109
 
110
- <div class="btn-group" data-toggle="buttons-radio">
111
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MUI'] == 'X' %>" name="mui" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
112
112
 
113
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MUI'] == 'N' %>" name="mui" value="N" title="(N) The vulnerable system can be exploited without any interaction from any user.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
113
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'N' %>" name="mui" value="N" data-label="None" title="(N) The vulnerable system can be exploited without any interaction from any user.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
114
114
 
115
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MUI'] == 'R' %>" name="mui" value="R" title="(R) Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.">Required <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
115
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MUI'] == 'R' %>" name="mui" value="R" data-label="Required" title="(R) Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.">Required <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
116
116
  </div>
117
117
  </div>
118
118
 
119
119
  <div class="inner">
120
- <h3 title="Does a successful attack impact a component other than the vulnerable component? If so, the Base Score increases and the Confidentiality, Integrity and Authentication metrics should be scored relative to the impacted component.">Mod. Scope (MS)</h3>
120
+ <h5 class="header-underline mt-0" title="Does a successful attack impact a component other than the vulnerable component? If so, the Base Score increases and the Confidentiality, Integrity and Authentication metrics should be scored relative to the impacted component.">Mod. Scope (MS)</h5>
121
121
 
122
122
  <%= hidden_field_tag :ms, @cvss_vector['MS'] %>
123
123
 
124
- <div class="btn-group" data-toggle="buttons-radio">
125
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MS'] == 'X' %>" name="ms" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
126
126
 
127
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MS'] == 'U' %>" name="ms" value="U" title="(U) An exploited vulnerability can only affect resources managed by the same authority. In this case the vulnerable component and the impacted component are the same.">Unchanged <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
127
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'U' %>" name="ms" value="U" data-label="Unchanged" title="(U) An exploited vulnerability can only affect resources managed by the same authority. In this case the vulnerable component and the impacted component are the same.">Unchanged <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
128
128
 
129
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MS'] == 'C' %>" name="ms" value="C" title="(C) An exploited vulnerability can affect resources beyond the authorization privileges intended by the vulnerable component. In this case the vulnerable component and the impacted component are different.">Changed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
129
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MS'] == 'C' %>" name="ms" value="C" data-label="Changed" title="(C) An exploited vulnerability can affect resources beyond the authorization privileges intended by the vulnerable component. In this case the vulnerable component and the impacted component are different.">Changed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
130
130
  </div>
131
131
  </div>
132
132
 
133
133
  <div class="inner">
134
- <h3 title="This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability. Confidentiality refers to limiting information access and disclosure to only authorized users, as well as preventing access by, or disclosure to, unauthorized ones.">Mod. Confidentiality (MC)</h3>
134
+ <h5 class="header-underline mt-0" title="This metric measures the impact to the confidentiality of the information resources managed by a software component due to a successfully exploited vulnerability. Confidentiality refers to limiting information access and disclosure to only authorized users, as well as preventing access by, or disclosure to, unauthorized ones.">Mod. Confidentiality (MC)</h5>
135
135
 
136
136
  <%= hidden_field_tag :mc, @cvss_vector['MC'] %>
137
137
 
138
- <div class="btn-group" data-toggle="buttons-radio">
139
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MC'] == 'X' %>" name="mc" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
140
140
 
141
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MC'] == 'N' %>" name="mc" value="N" title="(N) There is no loss of confidentiality within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
141
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'N' %>" name="mc" value="N" data-label="None" title="(N) There is no loss of confidentiality within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
142
142
 
143
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MC'] == 'L' %>" name="mc" value="L" title="(L) There is some loss of confidentiality. Access to some restricted information is obtained, but the attacker does not have control over what information is obtained, or the amount or kind of loss is constrained. The information disclosure does not cause a direct, serious loss to the impacted component.">Low<i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
143
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'L' %>" name="mc" value="L" data-label="Low" title="(L) There is some loss of confidentiality. Access to some restricted information is obtained, but the attacker does not have control over what information is obtained, or the amount or kind of loss is constrained. The information disclosure does not cause a direct, serious loss to the impacted component.">Low<i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
144
144
 
145
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MC'] == 'H' %>" name="mc" value="H" title="(H) There is total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
145
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MC'] == 'H' %>" name="mc" value="H" data-label="High" title="(H) There is total loss of confidentiality, resulting in all resources within the impacted component being divulged to the attacker. Alternatively, access to only some restricted information is obtained, but the disclosed information presents a direct, serious impact.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
146
146
  </div>
147
147
  </div>
148
148
 
149
149
  <div class="inner">
150
- <h3 title="This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.">Mod. Integrity (MI)</h3>
150
+ <h5 class="header-underline mt-0" title="This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.">Mod. Integrity (MI)</h5>
151
151
 
152
152
  <%= hidden_field_tag :mi, @cvss_vector['MI'] %>
153
153
 
154
- <div class="btn-group" data-toggle="buttons-radio">
155
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MI'] == 'X' %>" name="mi" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
156
156
 
157
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MI'] == 'N' %>" name="mi" value="N" title="(N) There is no loss of integrity within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
157
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'N' %>" name="mi" value="N" data-label="None" title="(N) There is no loss of integrity within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
158
158
 
159
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MI'] == 'L' %>" name="mi" value="L" title="(L) Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is constrained. The data modification does not have a direct, serious impact on the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
159
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'L' %>" name="mi" value="L" data-label="Low" title="(L) Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is constrained. The data modification does not have a direct, serious impact on the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
160
160
 
161
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MI'] == 'H' %>" name="mi" value="H" title="(H) There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any/all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
161
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MI'] == 'H' %>" name="mi" value="H" data-label="High" title="(H) There is a total loss of integrity, or a complete loss of protection. For example, the attacker is able to modify any/all files protected by the impacted component. Alternatively, only some files can be modified, but malicious modification would present a direct, serious consequence to the impacted component.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
162
162
  </div>
163
163
  </div>
164
164
 
165
165
  <div class="inner">
166
- <h3 title="This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability. It refers to the loss of availability of the impacted component itself, such as a networked service (e.g., web, database, email). Since availability refers to the accessibility of information resources, attacks that consume network bandwidth, processor cycles, or disk space all impact the availability of an impacted component.">Mod. Availability (MA)</h3>
166
+ <h5 class="header-underline mt-0" title="This metric measures the impact to the availability of the impacted component resulting from a successfully exploited vulnerability. It refers to the loss of availability of the impacted component itself, such as a networked service (e.g., web, database, email). Since availability refers to the accessibility of information resources, attacks that consume network bandwidth, processor cycles, or disk space all impact the availability of an impacted component.">Mod. Availability (MA)</h5>
167
167
 
168
168
  <%= hidden_field_tag :ma, @cvss_vector['MA'] %>
169
169
 
170
- <div class="btn-group" data-toggle="buttons-radio">
171
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MA'] == 'X' %>" name="ma" value="X" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Use the value assigned to the corresponding Base Score metric.">N/D <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
172
172
 
173
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MA'] == 'N' %>" name="ma" value="N" title="(N) There is no impact to availability within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
173
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'N' %>" name="ma" value="N" data-label="None" title="(N) There is no impact to availability within the impacted component.">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
174
174
 
175
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MA'] == 'L' %>" name="ma" value="L" title="(L) There is reduced performance or interruptions in resource availability. Even if repeated exploitation of the vulnerability is possible, the attacker does not have the ability to completely deny service to legitimate users. The resources in the impacted component are either partially available all of the time, or fully available only some of the time, but overall there is no direct, serious consequence to the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
175
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'L' %>" name="ma" value="L" data-label="Low" title="(L) There is reduced performance or interruptions in resource availability. Even if repeated exploitation of the vulnerability is possible, the attacker does not have the ability to completely deny service to legitimate users. The resources in the impacted component are either partially available all of the time, or fully available only some of the time, but overall there is no direct, serious consequence to the impacted component.">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
176
176
 
177
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['MA'] == 'H' %>" name="ma" value="H" title="(H) There is total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
177
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['MA'] == 'H' %>" name="ma" value="H" data-label="High" title="(H) There is total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component (e.g., the attacker cannot disrupt existing connections, but can prevent new connections; the attacker can repeatedly exploit a vulnerability that, in each instance of a successful attack, leaks a only small amount of memory, but after repeated exploitation causes a service to become completely unavailable).">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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
- <h3 title="This metric measures the likelihood of the vulnerability being attacked, and is typically based on the current state of exploit techniques, exploit code availability, or active, 'in-the-wild' exploitation.">
4
+ <h5 class="header-underline mt-0" title="This metric measures the likelihood of the vulnerability being attacked, and is typically based on the current state of exploit techniques, exploit code availability, or active, 'in-the-wild' exploitation.">
5
5
  Exploit Code Maturity (E)
6
- </h3>
6
+ </h5>
7
7
 
8
8
  <%= hidden_field_tag :e, @cvss_vector['E'] %>
9
9
 
10
- <div class="btn-group" data-toggle="buttons-radio">
11
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['E'] == 'X' %>" name="e" value="X" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
12
12
 
13
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['E'] == 'U' %>" name="e" value="U" title="No exploit code is available, or an exploit is theoretical.">Unproven <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
13
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'U' %>" name="e" value="U" data-label="Unproven" title="No exploit code is available, or an exploit is theoretical.">Unproven <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
14
14
 
15
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['E'] == 'P' %>" name="e" value="P" title="(P) Proof-of-concept exploit code is available, or an attack demonstration is not practical for most systems. The code or technique is not functional in all situations and may require substantial modification by a skilled attacker.">Proof-of-Concept <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
15
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'P' %>" name="e" value="P" data-label="Proof-of-Concept" title="(P) Proof-of-concept exploit code is available, or an attack demonstration is not practical for most systems. The code or technique is not functional in all situations and may require substantial modification by a skilled attacker.">Proof-of-Concept <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
16
16
 
17
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['E'] == 'F' %>" name="e" value="F" title="(F) Functional exploit code is available. The code works in most situations where the vulnerability exists.">Functional <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
17
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'F' %>" name="e" value="F" data-label="Functional" title="(F) Functional exploit code is available. The code works in most situations where the vulnerability exists.">Functional <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
18
18
 
19
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['E'] == 'H' %>" name="e" value="H" title="(H) Functional autonomous code exists, or no exploit is required (manual trigger) and details are widely available. Exploit code works in every situation, or is actively being delivered via an autonomous agent (such as a worm or virus). Network-connected systems are likely to encounter scanning or exploitation attempts. Exploit development has reached the level of reliable, widely-available, easy-to-use automated tools.">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
19
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['E'] == 'H' %>" name="e" value="H" data-label="High" title="(H) Functional autonomous code exists, or no exploit is required (manual trigger) and details are widely available. Exploit code works in every situation, or is actively being delivered via an autonomous agent (such as a worm or virus). Network-connected systems are likely to encounter scanning or exploitation attempts. Exploit development has reached the level of reliable, widely-available, easy-to-use automated tools.">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
- <h3 title="The Remediation Level of a vulnerability is an important factor for prioritization. The typical vulnerability is unpatched when initially published. Workarounds or hotfixes may offer interim remediation until an official patch or upgrade is issued. Each of these respective stages adjusts the temporal score downwards, reflecting the decreasing urgency as remediation becomes final.">
24
+ <h5 class="header-underline mt-0" title="The Remediation Level of a vulnerability is an important factor for prioritization. The typical vulnerability is unpatched when initially published. Workarounds or hotfixes may offer interim remediation until an official patch or upgrade is issued. Each of these respective stages adjusts the temporal score downwards, reflecting the decreasing urgency as remediation becomes final.">
25
25
  Remediation Level (RL)
26
- </h3>
26
+ </h5>
27
27
 
28
28
  <%= hidden_field_tag :rl, @cvss_vector['RL'] %>
29
29
 
30
- <div class="btn-group" data-toggle="buttons-radio">
31
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RL'] == 'X' %>" name="rl" value="X" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
32
32
 
33
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RL'] == 'O' %>" name="rl" value="O" title="(O) A complete vendor solution is available. Either the vendor has issued an official patch, or an upgrade is available.">Official Fix <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
33
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'O' %>" name="rl" value="O" data-label="Official Fix" title="(O) A complete vendor solution is available. Either the vendor has issued an official patch, or an upgrade is available.">Official Fix <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
34
34
 
35
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RL'] == 'T' %>" name="rl" value="T" title="(T) There is an official but temporary fix available. This includes instances where the vendor issues a temporary hotfix, tool, or workaround.">Temporary Fix <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
35
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'T' %>" name="rl" value="T" data-label="Temporary Fix" title="(T) There is an official but temporary fix available. This includes instances where the vendor issues a temporary hotfix, tool, or workaround.">Temporary Fix <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
36
36
 
37
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RL'] == 'W' %>" name="rl" value="W" title="(W) There is an unofficial, non-vendor solution available. In some cases, users of the affected technology will create a patch of their own or provide steps to work around or otherwise mitigate the vulnerability.">Workaround <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
37
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'W' %>" name="rl" value="W" data-label="Workaround" title="(W) There is an unofficial, non-vendor solution available. In some cases, users of the affected technology will create a patch of their own or provide steps to work around or otherwise mitigate the vulnerability.">Workaround <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
38
38
 
39
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RL'] == 'U' %>" name="rl" value="U" title="(U) There is either no solution available or it is impossible to apply.">Unavailable <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
39
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RL'] == 'U' %>" name="rl" value="U" data-label="Unavailable" title="(U) There is either no solution available or it is impossible to apply.">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
- <h3 title="This metric measures the degree of confidence in the existence of the vulnerability and the credibility of the known technical details. Sometimes only the existence of vulnerabilities are publicized, but without specific details. For example, an impact may be recognized as undesirable, but the root cause may not be known. The vulnerability may later be corroborated by research which suggests where the vulnerability may lie, though the research may not be certain. Finally, a vulnerability may be confirmed through acknowledgement by the author or vendor of the affected technology. The urgency of a vulnerability is higher when a vulnerability is known to exist with certainty. This metric also suggests the level of technical knowledge available to would-be attackers.">
44
+ <h5 class="header-underline mt-0" title="This metric measures the degree of confidence in the existence of the vulnerability and the credibility of the known technical details. Sometimes only the existence of vulnerabilities are publicized, but without specific details. For example, an impact may be recognized as undesirable, but the root cause may not be known. The vulnerability may later be corroborated by research which suggests where the vulnerability may lie, though the research may not be certain. Finally, a vulnerability may be confirmed through acknowledgement by the author or vendor of the affected technology. The urgency of a vulnerability is higher when a vulnerability is known to exist with certainty. This metric also suggests the level of technical knowledge available to would-be attackers.">
45
45
  Report Confidence (RC)
46
- </h3>
46
+ </h5>
47
47
 
48
48
  <%= hidden_field_tag :rc, @cvss_vector['RC'] %>
49
49
 
50
- <div class="btn-group" data-toggle="buttons-radio">
51
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RC'] == 'X' %>" name="rc" value="X" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
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" title="(X) Assigning this value to the metric will not influence the score.">Not Defined <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
52
52
 
53
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RC'] == 'U' %>" name="rc" value="U" title="(U) There are reports of impacts that indicate a vulnerability is present. The reports indicate that the cause of the vulnerability is unknown, or reports may differ on the cause or impacts of the vulnerability. Reporters are uncertain of the true nature of the vulnerability, and there is little confidence in the validity of the reports or whether a static Base score can be applied given the differences described. An example is a bug report which notes that an intermittent but non-reproducible crash occurs, with evidence of memory corruption suggesting that denial of service, or possible more serious impacts, may result.">Unknown <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
53
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'U' %>" name="rc" value="U" data-label="Unknown" title="(U) There are reports of impacts that indicate a vulnerability is present. The reports indicate that the cause of the vulnerability is unknown, or reports may differ on the cause or impacts of the vulnerability. Reporters are uncertain of the true nature of the vulnerability, and there is little confidence in the validity of the reports or whether a static Base score can be applied given the differences described. An example is a bug report which notes that an intermittent but non-reproducible crash occurs, with evidence of memory corruption suggesting that denial of service, or possible more serious impacts, may result.">Unknown <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
54
54
 
55
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RC'] == 'R' %>" name="rc" value="R" title="(R) Significant details are published, but researchers either do not have full confidence in the root cause, or do not have access to source code to fully confirm all of the interactions that may lead to the result. Reasonable confidence exists, however, that the bug is reproducible and at least one impact is able to be verified (Proof-of-concept exploits may provide this). An example is a detailed write-up of research into a vulnerability with an explanation (possibly obfuscated or 'left as an exercise to the reader') that gives assurances on how to reproduce the results.">Reasonable <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
55
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'R' %>" name="rc" value="R" data-label="Reasonable" title="(R) Significant details are published, but researchers either do not have full confidence in the root cause, or do not have access to source code to fully confirm all of the interactions that may lead to the result. Reasonable confidence exists, however, that the bug is reproducible and at least one impact is able to be verified (Proof-of-concept exploits may provide this). An example is a detailed write-up of research into a vulnerability with an explanation (possibly obfuscated or 'left as an exercise to the reader') that gives assurances on how to reproduce the results.">Reasonable <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
56
56
 
57
- <button type="button" class="btn btn-med<%= ' active btn-primary' if @cvss_vector['RC'] == 'C' %>" name="rc" value="C" title="(C) Detailed reports exist, or functional reproduction is possible (functional exploits may provide this). Source code is available to independently verify the assertions of the research, or the author or vendor of the affected code has confirmed the presence of the vulnerability.">Confirmed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
57
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['RC'] == 'C' %>" name="rc" value="C" data-label="Confirmed" title="(C) Detailed reports exist, or functional reproduction is possible (functional exploits may provide this). Source code is available to independently verify the assertions of the research, or the author or vendor of the affected code has confirmed the presence of the vulnerability.">Confirmed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
58
58
  </div>
59
59
 
60
60
  </div>
@@ -4,11 +4,10 @@
4
4
 
5
5
  <p class="lead">Use this page to calculate the <abbr title="Common Vulnerability Scoring System">CVSS</abbr> score of a given finding.</p>
6
6
 
7
- <p class="alert alert-error text-error hide" data-behavior="cvss-error"></p>
8
-
7
+ <p class="alert alert-danger d-none" data-behavior="cvss-error"></p>
9
8
 
10
9
  <div class="row">
11
- <div class="span8">
10
+ <div class="col-8">
12
11
 
13
12
  <h2 title="The Base Metric group represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Determine the vulnerable component and score Attack Vector, Attack Complexity, Privileges Required and User Interaction relative to this.">
14
13
  Base: <span id="base-score">0</span>
@@ -26,8 +25,8 @@
26
25
  <%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
27
26
  </div>
28
27
 
29
- <div class="span4">
30
- <textarea name="cvss_fields" rows="52" style="width:100%">#[CVSSv3.Vector]#
28
+ <div class="col-4">
29
+ <textarea name="cvss_fields" rows="52" class="form-control" style="width:100%">#[CVSSv3.Vector]#
31
30
  N/A
32
31
 
33
32
  #[CVSSv3.BaseScore]#
@@ -56,8 +55,24 @@ N/A
56
55
  #[CVSSv3.BaseConfidentiality]#
57
56
  #[CVSSv3.BaseIntegrity]#
58
57
  #[CVSSv3.BaseAvailability]#
58
+
59
+ #[CVSSv3.TemporalExploitCodeMaturity]#
60
+ #[CVSSv3.TemporalRemediationLevel]#
61
+ #[CVSSv3.TemporalReportConfidence]#
62
+
59
63
  #[CVSSv3.EnvironmentalConfidentialityRequirement]#
60
64
  #[CVSSv3.EnvironmentalIntegrityRequirement]#
65
+ #[CVSSv3.EnvironmentalAvailabilityRequirement]#
66
+
67
+ #[CVSSv3.ModifiedAttackVector]#
68
+ #[CVSSv3.ModifiedAttackComplexity]#
69
+ #[CVSSv3.ModifiedPrivilegesRequired]#
70
+ #[CVSSv3.ModifiedUserInteraction]#
71
+ #[CVSSv3.ModifiedScope]#
72
+ #[CVSSv3.ModifiedConfidentiality]#
73
+ #[CVSSv3.ModifiedIntegrity]#
74
+ #[CVSSv3.ModifiedAvailability]#
75
+
61
76
 
62
77
  </textarea>
63
78
  </div>
@@ -1,14 +1,13 @@
1
1
  <div class="tab-pane" id="cvss-tab">
2
2
  <div class="inner">
3
- <h3>CVSSv3 Risk Scoring -
3
+ <h4 class="header-underline">CVSSv3 Risk Scoring -
4
4
  <span class="actions">
5
- <%= link_to cvss_calculator.cvss_project_issue_path(current_project, @issue),
6
- class: 'action-link' do %>
5
+ <%= link_to cvss_calculator.cvss_project_issue_path(current_project, @issue) do %>
7
6
  <i class="fa fa-pencil"></i> Edit
8
7
  <% end %>
9
- </h3>
8
+ </h4>
10
9
 
11
- <div class="content-textile">
10
+ <div class="mb-4 content-textile">
12
11
  <%=
13
12
  markup(
14
13
  @issue.fields
@@ -1 +1,3 @@
1
- <li><a href="#cvss-tab" data-toggle="tab"><i class="fa fa-calculator"></i> CVSSv3</a></li>
1
+ <li class="nav-item">
2
+ <a href="#cvss-tab" data-toggle="tab" class="nav-link"><i class="fa fa-calculator"></i> CVSSv3</a>
3
+ </li>
@@ -4,75 +4,100 @@
4
4
  <%= render 'issues/sidebar'%>
5
5
  <% end %>
6
6
 
7
- <div id="issues_editor">
8
- <div class="inner note-text-inner">
9
- <h3>Edit CVSSv3 Risk Scoring</h3>
10
-
11
- <%= simple_form_for [:cvss, current_project, @issue] do |f| %>
12
-
13
- <div class="alert alert-error text-error hide" data-behavior="cvss-error">
14
- <p><strong>Warning</strong>: all Base metrics are required</p>
15
- </div>
16
- <br/>
17
-
18
- <ul class="nav nav-pills" id="cvss-tabs">
19
- <li class="active"><a href="#cvss-edit-base" data-toggle="tab">Base: <span id="base-score">0</span></a></li>
20
- <li><a href="#cvss-edit-temporal" data-toggle="tab">Temporal: <span id="temporal-score">0</span></a></li>
21
- <li><a href="#cvss-edit-environmental" data-toggle="tab">Environmental: <span id="environmental-score">0</span></a></li>
22
- <li class="pull-right"><a href="#cvss-edit-result" data-toggle="tab">Result</a></li>
23
- </ul>
24
-
25
- <div class="tab-content">
26
- <div class="tab-pane active" id="cvss-edit-base">
27
- <%= render 'dradis/plugins/calculators/cvss/base/base' %>
28
- </div>
29
- <div class="tab-pane" id="cvss-edit-temporal">
30
- <%= render 'dradis/plugins/calculators/cvss/base/temporal' %>
31
- </div>
32
- <div class="tab-pane" id="cvss-edit-environmental">
33
- <%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
7
+ <div class="content-container">
8
+ <h4 class="header-underline">Edit CVSSv3 Risk Scoring</h4>
9
+ <div id="issues_editor">
10
+ <div class="inner note-text-inner">
11
+
12
+ <%= simple_form_for [:cvss, current_project, @issue] do |f| %>
13
+
14
+ <div class="alert alert-error text-error" data-behavior="cvss-error">
15
+ <p><strong>Warning</strong>: all Base metrics are required</p>
34
16
  </div>
35
17
 
36
- <div class="tab-pane" id="cvss-edit-result">
37
- <textarea name="cvss_fields" rows="10" style="width:95%">#[CVSSv3.Vector]#
38
- N/A
18
+ <ul class="nav nav-pills w-100" id="cvss-tabs">
19
+ <li class="nav-item">
20
+ <a href="#cvss-edit-base" data-toggle="pill" class="nav-link active">Base: <span id="base-score">0</span></a>
21
+ </li>
22
+ <li class="nav-item">
23
+ <a href="#cvss-edit-temporal" data-toggle="pill" class="nav-link">Temporal: <span id="temporal-score">0</span></a>
24
+ </li>
25
+ <li class="nav-item">
26
+ <a href="#cvss-edit-environmental" data-toggle="pill" class="nav-link">Environmental: <span id="environmental-score">0</span></a>
27
+ </li>
28
+ <li class="nav-item pull-right">
29
+ <a href="#cvss-edit-result" data-toggle="pill" class="nav-link">Result</a>
30
+ </li>
31
+ </ul>
32
+
33
+ <div class="tab-content mt-4">
34
+ <div class="tab-pane active" id="cvss-edit-base">
35
+ <%= render 'dradis/plugins/calculators/cvss/base/base' %>
36
+ </div>
37
+ <div class="tab-pane" id="cvss-edit-temporal">
38
+ <%= render 'dradis/plugins/calculators/cvss/base/temporal' %>
39
+ </div>
40
+ <div class="tab-pane" id="cvss-edit-environmental">
41
+ <%= render 'dradis/plugins/calculators/cvss/base/environmental' %>
42
+ </div>
43
+
44
+ <div class="tab-pane" id="cvss-edit-result">
45
+ <textarea class="form-control" name="cvss_fields" rows="10" style="width:95%">#[CVSSv3.Vector]#
46
+ N/A
39
47
 
40
- #[CVSSv3.BaseScore]#
41
- N/A
48
+ #[CVSSv3.BaseScore]#
49
+ N/A
42
50
 
43
- #[CVSSv3.BaseSeverity]#
44
- N/A
51
+ #[CVSSv3.BaseSeverity]#
52
+ N/A
45
53
 
46
- #[CVSSv3.TemporalScore]#
47
- N/A
54
+ #[CVSSv3.TemporalScore]#
55
+ N/A
48
56
 
49
- #[CVSSv3.TemporalSeverity]#
50
- N/A
57
+ #[CVSSv3.TemporalSeverity]#
58
+ N/A
51
59
 
52
- #[CVSSv3.EnvironmentalScore]#
53
- N/A
60
+ #[CVSSv3.EnvironmentalScore]#
61
+ N/A
54
62
 
55
- #[CVSSv3.EnvironmentalSeverity]#
56
- N/A
63
+ #[CVSSv3.EnvironmentalSeverity]#
64
+ N/A
57
65
 
58
- #[CVSSv3.BaseAttackVector]#
59
- #[CVSSv3.BaseAttackComplexity]#
60
- #[CVSSv3.BasePrivilegesRequired]#
61
- #[CVSSv3.BaseUserInteraction]#
62
- #[CVSSv3.BaseScope]#
63
- #[CVSSv3.BaseConfidentiality]#
64
- #[CVSSv3.BaseIntegrity]#
65
- #[CVSSv3.BaseAvailability]#
66
- #[CVSSv3.EnvironmentalConfidentialityRequirement]#
67
- #[CVSSv3.EnvironmentalIntegrityRequirement]#
68
- </textarea>
66
+ #[CVSSv3.BaseAttackVector]#
67
+ #[CVSSv3.BaseAttackComplexity]#
68
+ #[CVSSv3.BasePrivilegesRequired]#
69
+ #[CVSSv3.BaseUserInteraction]#
70
+ #[CVSSv3.BaseScope]#
71
+ #[CVSSv3.BaseConfidentiality]#
72
+ #[CVSSv3.BaseIntegrity]#
73
+ #[CVSSv3.BaseAvailability]#
74
+
75
+ #[CVSSv3.TemporalExploitCodeMaturity]#
76
+ #[CVSSv3.TemporalRemediationLevel]#
77
+ #[CVSSv3.TemporalReportConfidence]#
78
+
79
+ #[CVSSv3.EnvironmentalConfidentialityRequirement]#
80
+ #[CVSSv3.EnvironmentalIntegrityRequirement]#
81
+ #[CVSSv3.EnvironmentalAvailabilityRequirement]#
82
+
83
+ #[CVSSv3.ModifiedAttackVector]#
84
+ #[CVSSv3.ModifiedAttackComplexity]#
85
+ #[CVSSv3.ModifiedPrivilegesRequired]#
86
+ #[CVSSv3.ModifiedUserInteraction]#
87
+ #[CVSSv3.ModifiedScope]#
88
+ #[CVSSv3.ModifiedConfidentiality]#
89
+ #[CVSSv3.ModifiedIntegrity]#
90
+ #[CVSSv3.ModifiedAvailability]#
91
+
92
+ </textarea>
93
+ </div>
69
94
  </div>
70
- </div>
71
95
 
72
- <div class="form-actions">
73
- <%= f.button :submit, nil, class: 'btn btn-primary' %> or
74
- <%= link_to 'Cancel', main_app.project_issue_path(current_project, @issue), class: 'cancel-link' %>
75
- </div>
76
- <% end %>
96
+ <div class="form-actions">
97
+ <%= f.button :submit, nil, class: 'btn btn-primary' %> or
98
+ <%= link_to 'Cancel', main_app.project_issue_path(current_project, @issue), class: 'cancel-link' %>
99
+ </div>
100
+ <% end %>
101
+ </div>
77
102
  </div>
78
103
  </div>