dradis-calculator_cvss 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 579a3ec8923a103b846749eca7ab9487c4abb3d4
4
- data.tar.gz: f7917b89c3313ed9f2c992590c7d2fca92620c87
3
+ metadata.gz: 8a2b4e4e6b51ce03dea5d1eb09d2e7065b17f5c7
4
+ data.tar.gz: c3d26f96be2ccc9c74c81bdd0377935ddda98905
5
5
  SHA512:
6
- metadata.gz: 7417d3af8fc04fc8e063575de0351680f6a29f9aa7c0944518e1120d7ed3f023070fed6fe7d7c7eba32e8b7bfd8f97b5631cdd246d2a5f911688f32fdffb3c11
7
- data.tar.gz: 50b0b87844ad27aa636e49bff92664282f1ad677db2593b6f40c5f8d924a03b150cb329ebfc1850725bba9bbb5a526c62825fe2a8e7bd00d2a25005954a313e7
6
+ metadata.gz: adb1f64c4a959ddb89355c50450c5eb44f259c1b1cb918556b9183c07ce1ccbd0524ee4970c13bba870684193eb7011db8d7ace29f3c53794510c557fd1581fe
7
+ data.tar.gz: 910f440756958493ca2adf36afc1b2342d676e01764f2826b63e3c074f1b6da3c3bea351ef82ae91fa3d3de08758b82231e7cfc7af709c0d1b5e5fbefb11485e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Dradis Framework 3.12 (March, 2019) ##
2
+
3
+ * Present a per-issue CVSSv3 calculator.
4
+
1
5
  ## Dradis Framework 3.11 (November, 2018) ##
2
6
 
3
7
  * No changes
@@ -1,29 +1,29 @@
1
1
  @CVSSCalculator =
2
2
  calculate: ->
3
- av = $("#av").val()
4
- ac = $("#ac").val()
5
- pr = $("#pr").val()
6
- ui = $("#ui").val()
7
- s = $("#s").val()
8
- c = $("#c").val()
9
- i = $("#i").val()
10
- a = $("#a").val()
3
+ av = $("input[name=av]").val()
4
+ ac = $("input[name=ac]").val()
5
+ pr = $("input[name=pr]").val()
6
+ ui = $("input[name=ui]").val()
7
+ s = $("input[name=s]").val()
8
+ c = $("input[name=c]").val()
9
+ i = $("input[name=i]").val()
10
+ a = $("input[name=a]").val()
11
11
 
12
- e = $("#e").val()
13
- rl = $("#rl").val()
14
- rc = $("#rc").val()
12
+ e = $("input[name=e]").val()
13
+ rl = $("input[name=rl]").val()
14
+ rc = $("input[name=rc]").val()
15
15
 
16
- cr = $("#cr").val()
17
- ir = $("#ir").val()
18
- ar = $("#ar").val()
19
- mav = $("#mav").val()
20
- mac = $("#mac").val()
21
- mpr = $("#mpr").val()
22
- mui = $("#mui").val()
23
- ms = $("#ms").val()
24
- mc = $("#mc").val()
25
- mi = $("#mi").val()
26
- ma = $("#ma").val()
16
+ cr = $("input[name=cr]").val()
17
+ ir = $("input[name=ir]").val()
18
+ ar = $("input[name=ar]").val()
19
+ mav = $("input[name=mav]").val()
20
+ mac = $("input[name=mac]").val()
21
+ mpr = $("input[name=mpr]").val()
22
+ mui = $("input[name=mui]").val()
23
+ ms = $("input[name=ms]").val()
24
+ mc = $("input[name=mc]").val()
25
+ mi = $("input[name=mi]").val()
26
+ ma = $("input[name=ma]").val()
27
27
 
28
28
  # AttackVector, AttackComplexity, PrivilegesRequired, UserInteraction, Scope,
29
29
  # Confidentiality, Integrity, Availability, Exploitability, RemediationLevel,
@@ -37,12 +37,13 @@
37
37
 
38
38
 
39
39
  if output.success == true
40
- $('#missing-base-metric-error').hide()
40
+ $('input[type=submit]').attr('disabled', null)
41
+ $('[data-behavior~=cvss-error]').hide().text('')
41
42
  $('#base-score').text("#{output.baseMetricScore} (#{output.baseSeverity})")
42
43
  $('#temporal-score').text("#{output.temporalMetricScore} (#{output.temporalSeverity})")
43
44
  $('#environmental-score').text("#{output.environmentalMetricScore} (#{output.environmentalSeverity})")
44
45
 
45
- issue_cvss = "#[CVSSv3Vector]#\n"
46
+ issue_cvss = "#[CVSSv3.Vector]#\n"
46
47
  issue_cvss += "#{output.vectorString}\n\n"
47
48
  issue_cvss += "#[CVSSv3.BaseScore]#\n"
48
49
  issue_cvss += "#{output.baseMetricScore}\n\n"
@@ -77,17 +78,29 @@
77
78
  issue_cvss += "#{output.environmentalConfidentialityRequirement}\n\n"
78
79
  issue_cvss += "#[CVSSv3.EnvironmentalIntegrityRequirement]#\n"
79
80
  issue_cvss += "#{output.environmentalIntegrityRequirement}\n\n"
80
- $('#blob').text(issue_cvss)
81
+ $('textarea[name=cvss_fields]').val(issue_cvss)
81
82
  else
83
+ errorMessage = ''
84
+
82
85
  if output.errorType == 'MissingBaseMetric'
83
- $('#missing-base-metric-error').show()
86
+ errorMessage = "The error type is '#{output.errorType}' and the metrics with errors are #{output.errorMetrics}."
87
+ else
88
+ errorMessage = "All Base metrics are required"
84
89
 
85
- console.log("An error occurred. The error type is '#{output.errorType}' and the metrics with errors are #{output.errorMetrics}.")
90
+ $('input[type=submit]').attr('disabled', 'disabled')
91
+ $('[data-behavior~=cvss-error]')
92
+ .show()
93
+ .text(errorMessage)
86
94
 
87
95
 
96
+ document.addEventListener "turbolinks:load", ->
97
+ if $('[data-behavior~=cvss-buttons]').length
98
+ CVSSCalculator.calculate()
99
+ $('[data-behavior~=cvss-error]').hide()
88
100
 
89
- jQuery ->
90
- $('button').on 'click', ->
91
- $this = $(this)
92
- $("##{$this.attr('name')}").val($this.val())
93
- CVSSCalculator.calculate()
101
+ $('[data-behavior~=cvss-buttons] button').on 'click', ->
102
+ $this = $(this)
103
+ $this.parent().find('button').removeClass('btn-primary');
104
+ $this.addClass('btn-primary');
105
+ $("input[name=#{$this.attr('name')}]").val($this.val())
106
+ CVSSCalculator.calculate()
@@ -1,4 +1,6 @@
1
1
  //= require jquery
2
2
  //= require bootstrap
3
+ //= require turbolinks
4
+
3
5
  //= require dradis/plugins/calculators/cvss/vendor/cvsscalc30
4
6
  //= require dradis/plugins/calculators/cvss/calculator
@@ -0,0 +1,2 @@
1
+ //= require dradis/plugins/calculators/cvss/vendor/cvsscalc30
2
+ //= require dradis/plugins/calculators/cvss/calculator
@@ -1,5 +1,8 @@
1
1
  module Dradis::Plugins::Calculators::CVSS
2
2
  # Does it matter that we're inheriting from the no-frills controller?
3
3
  class BaseController < ActionController::Base
4
+ def index
5
+ @cvss_vector = Hash.new { |h, k| h[k] = 'X' }
6
+ end
4
7
  end
5
8
  end
@@ -0,0 +1,37 @@
1
+ module Dradis::Plugins::Calculators::CVSS
2
+ # Does it matter that we're inheriting from the no-frills controller?
3
+ class IssuesController < ::IssuesController
4
+ before_action :set_cvss_vector, only: :edit
5
+
6
+ def edit
7
+ end
8
+
9
+ def update
10
+ cvss_fields = Hash[ *params[:cvss_fields].scan(HasFields::REGEX).flatten.map(&:strip) ]
11
+ cvss_fields.each do |name, value|
12
+ @issue.set_field(name, value)
13
+ end
14
+
15
+ if @issue.save
16
+ redirect_to main_app.project_issue_path(current_project, @issue), notice: 'CVSSv3 fields updated.'
17
+ else
18
+ render :edit
19
+ end
20
+ end
21
+
22
+ def set_cvss_vector
23
+ # Undefined Temporal and Environmental default to X
24
+ @cvss_vector = Hash.new { |h, k| h[k] = 'X' }
25
+ field_value = @issue.fields['CVSSv3.Vector'] || @issue.fields['CVSSv3Vector']
26
+
27
+ # If no vector is set yet, that's OK
28
+ return unless field_value
29
+
30
+ if field_value =~ V3::VECTOR_REGEXP
31
+ field_value.split('/').each { |pair| @cvss_vector.store *pair.split(':') }
32
+ else
33
+ redirect_to main_app.project_issue_path(current_project, @issue), alert: 'The format of the CVSSv3 Vector field is invalid.'
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,26 @@
1
+ module Dradis::Plugins::Calculators::CVSS
2
+ class V3
3
+ FIELD_NAMES = %i{
4
+ BaseAttackComplexity
5
+ BaseAttackVector
6
+ BaseAvailability
7
+ BaseConfidentiality
8
+ BaseIntegrity
9
+ BasePrivilegesRequired
10
+ BaseScope
11
+ BaseScore
12
+ BaseSeverity
13
+ BaseUserInteraction
14
+ EnvironmentalConfidentialityRequirement
15
+ EnvironmentalIntegrityRequirement
16
+ EnvironmentalScore
17
+ EnvironmentalSeverity
18
+ TemporalScore
19
+ TemporalSeverity
20
+ Vector
21
+ }.freeze
22
+
23
+ FIELDS = (['CVSSv3Vector'.freeze] + FIELD_NAMES.map {|name| "CVSSv3.#{name}".freeze }).freeze
24
+ VECTOR_REGEXP = /CVSS:3.0\/AV:[N|A|L|P]\/AC:[L|H]\/PR:[N|L|H]\/UI:[N|R]\/S:[U|C]\/C:[N|L|H]\/I:[N|L|H]\/A:[N|L|H](.*?)/.freeze
25
+ end
26
+ end
@@ -0,0 +1 @@
1
+ <li><%= link_to 'Risk Calculators - CVSSv3', cvss_calculator.calculators_cvss_path %></li>
@@ -0,0 +1,123 @@
1
+ <section data-behavior="cvss-buttons">
2
+ <div class="row-fluid">
3
+
4
+ <div class="span6">
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>
7
+
8
+ <%= hidden_field_tag :av, @cvss_vector['AV'] %>
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>
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>
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>
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>
18
+ </div>
19
+ </div>
20
+
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>
23
+
24
+ <%= hidden_field_tag :ac, @cvss_vector['AC'] %>
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>
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>
30
+ </div>
31
+ </div>
32
+
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>
35
+
36
+ <%= hidden_field_tag :pr, @cvss_vector['PR'] %>
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>
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>
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>
44
+ </div>
45
+ </div>
46
+
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>
49
+
50
+ <%= hidden_field_tag :ui, @cvss_vector['UI'] %>
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>
55
+ </div>
56
+ </div>
57
+ </div>
58
+
59
+ <div class="span6">
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>
62
+
63
+ <%= hidden_field_tag :s, @cvss_vector['S'] %>
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>
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>
69
+ </div>
70
+ </div>
71
+
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>
74
+
75
+ <%= hidden_field_tag :c, @cvss_vector['C'] %>
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>
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>
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>
83
+ </div>
84
+ </div>
85
+
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>
88
+
89
+ <%= hidden_field_tag :i, @cvss_vector['I'] %>
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>
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>
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>
97
+ </div>
98
+ </div>
99
+
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>
102
+
103
+ <%= hidden_field_tag :a, @cvss_vector['A'] %>
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>
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>
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>
111
+ </div>
112
+ </div>
113
+ </div>
114
+
115
+ </div>
116
+
117
+ <p>
118
+ The Base Metric group represents the intrinsic characteristics of a
119
+ vulnerability that are constant over time and across user environments.
120
+ Determine the vulnerable component and score Attack Vector, Attack
121
+ Complexity, Privileges Required and User Interaction relative to this.
122
+ </p>
123
+ </section>
@@ -0,0 +1,192 @@
1
+ <section data-behavior="cvss-buttons">
2
+
3
+ <div class="row-fluid">
4
+
5
+ <div class="span5">
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>
8
+
9
+ <%= hidden_field_tag :cr, @cvss_vector['CR'] %>
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>
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>
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>
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>
19
+ </div>
20
+ </div>
21
+
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>
24
+
25
+ <%= hidden_field_tag :ir, @cvss_vector['IR'] %>
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>
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>
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>
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>
35
+ </div>
36
+ </div>
37
+
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>
40
+
41
+ <%= hidden_field_tag :ar, @cvss_vector['AR'] %>
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>
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>
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>
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>
51
+ </div>
52
+ </div>
53
+ </div>
54
+
55
+ <div class="span7">
56
+
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>
59
+
60
+ <%= hidden_field_tag :mav, @cvss_vector['MAV'] %>
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>
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>
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>
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>
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>
72
+ </div>
73
+ </div>
74
+
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>
77
+
78
+ <%= hidden_field_tag :mac, @cvss_vector['MAC'] %>
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>
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>
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>
86
+ </div>
87
+ </div>
88
+
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>
91
+
92
+ <%= hidden_field_tag :mpr, @cvss_vector['MPR'] %>
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>
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>
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>
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>
102
+ </div>
103
+ </div>
104
+
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>
107
+
108
+ <%= hidden_field_tag :mui, @cvss_vector['MUI'] %>
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>
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>
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>
116
+ </div>
117
+ </div>
118
+
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>
121
+
122
+ <%= hidden_field_tag :ms, @cvss_vector['MS'] %>
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>
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>
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>
130
+ </div>
131
+ </div>
132
+
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>
135
+
136
+ <%= hidden_field_tag :mc, @cvss_vector['MC'] %>
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>
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>
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>
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>
146
+ </div>
147
+ </div>
148
+
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>
151
+
152
+ <%= hidden_field_tag :mi, @cvss_vector['MI'] %>
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>
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>
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>
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>
162
+ </div>
163
+ </div>
164
+
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>
167
+
168
+ <%= hidden_field_tag :ma, @cvss_vector['MA'] %>
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>
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>
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>
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>
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ </div>
183
+
184
+ <p>
185
+ These metrics enable the analyst to customize the CVSS score depending on
186
+ the importance of the affected IT asset to a user's organization, measured
187
+ in terms of complementary/alternative security controls in place,
188
+ Confidentiality, Integrity, and Availability. The metrics are the modified
189
+ equivalent of base metrics and are assigned metric values based on the
190
+ component placement in organization infrastructure.
191
+ </p>
192
+ </section>