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