dradis-calculator_cvss 3.20.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -56
  3. data/CHANGELOG.template +12 -0
  4. data/README.md +1 -1
  5. data/app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee +38 -8
  6. data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js +3 -0
  7. data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/tylium.js +3 -0
  8. data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30_helptext.js +156 -0
  9. data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31.js +753 -0
  10. data/app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc31_helptext.js +157 -0
  11. data/app/assets/stylesheets/dradis/plugins/calculators/cvss/_version_switch.scss +47 -0
  12. data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss +3 -2
  13. data/app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/tylium.scss +2 -0
  14. data/app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb +1 -1
  15. data/app/models/dradis/plugins/calculators/cvss/v3.rb +1 -1
  16. data/app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb +1 -1
  17. data/app/views/dradis/plugins/calculators/cvss/_version_switch.html.erb +10 -0
  18. data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +30 -30
  19. data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +53 -53
  20. data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +17 -17
  21. data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +7 -6
  22. data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +3 -1
  23. data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +3 -1
  24. data/app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb +5 -2
  25. data/dradis-calculator_cvss.gemspec +2 -2
  26. data/lib/dradis/plugins/calculators/cvss/engine.rb +11 -2
  27. data/lib/dradis/plugins/calculators/cvss/gem_version.rb +2 -2
  28. metadata +16 -9
@@ -0,0 +1,157 @@
1
+ /* Copyright (c) 2019, FIRST.ORG, INC.
2
+ * All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
5
+ * following conditions are met:
6
+ * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
7
+ * disclaimer.
8
+ * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
9
+ * following disclaimer in the documentation and/or other materials provided with the distribution.
10
+ * 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
11
+ * products derived from this software without specific prior written permission.
12
+ *
13
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
14
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
17
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
18
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
19
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20
+ */
21
+
22
+ var CVSS31_Help = {};
23
+
24
+ // This object is used as an associative array mapping the names of elements on the web page to help text that is
25
+ // added as title text. Browsers will display the text when the element is hovered over with the cursor.
26
+ CVSS31_Help.helpText_en = {
27
+ "baseMetricGroup_Legend" : "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.",
28
+
29
+ "AV_Heading" : "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.",
30
+ "AV_N_Label" : "The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed, up to and including the entire Internet. Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable at the protocol level one or more network hops away (e.g., across one or more routers).",
31
+ "AV_A_Label" : "The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone).",
32
+ "AV_L_Label" : "The vulnerable component is not bound to the network stack and the attacker’s path is via read/write/execute capabilities. Either: the attacker exploits the vulnerability by accessing the target system locally (e.g., keyboard, console), or remotely (e.g., SSH); or the attacker relies on User Interaction by another person to perform actions required to exploit the vulnerability (e.g., tricking a legitimate user into opening a malicious document).",
33
+ "AV_P_Label" : "The attack requires the attacker to physically touch or manipulate the vulnerable component. Physical interaction may be brief or persistent.",
34
+
35
+ "AC_Heading" : "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 or computational exceptions. The assessment of this metric excludes any requirements for user interaction in order to exploit the vulnerability. If a specific configuration is required for an attack to succeed, the Base metrics should be scored assuming the vulnerable component is in that configuration.",
36
+ "AC_L_Label" : "Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.",
37
+ "AC_H_Label" : "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 an attacker to: gather knowledge about the environment in which the vulnerable target/component exists; prepare the target environment to improve exploit reliability; or inject themselves 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).",
38
+
39
+ "PR_Heading" : "This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.",
40
+ "PR_N_Label" : "The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.",
41
+ "PR_L_Label" : "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.",
42
+ "PR_H_Label" : "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.",
43
+
44
+ "UI_Heading" : "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.",
45
+ "UI_N_Label" : "The vulnerable system can be exploited without any interaction from any user.",
46
+ "UI_R_Label" : "Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.",
47
+
48
+ "S_Heading" : "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.",
49
+ "S_U_Label" : "An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.",
50
+ "S_C_Label" : "An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.",
51
+
52
+ "C_Heading" : "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.",
53
+ "C_N_Label" : "There is no loss of confidentiality within the impacted component.",
54
+ "C_L_Label" : "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 limited. The information disclosure does not cause a direct, serious loss to the impacted component.",
55
+ "C_H_Label" : "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.",
56
+
57
+ "I_Heading" : "This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.",
58
+ "I_N_Label" : "There is no loss of integrity within the impacted component.",
59
+ "I_L_Label" : "Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is limited. The data modification does not have a direct, serious impact on the impacted component.",
60
+ "I_H_Label" : "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.",
61
+
62
+ "A_Heading" : "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.",
63
+ "A_N_Label" : "There is no impact to availability within the impacted component.",
64
+ "A_L_Label" : "Performance is reduced or there are 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.",
65
+ "A_H_Label" : "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).",
66
+
67
+ "temporalMetricGroup_Legend" : "The Temporal metrics measure the current state of exploit techniques or code availability, the existence of any patches or workarounds, or the confidence that one has in the description of a vulnerability.",
68
+
69
+ "E_Heading" : "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.",
70
+ "E_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Temporal Score, i.e., it has the same effect on scoring as assigning High.",
71
+ "E_U_Label" : "No exploit code is available, or an exploit is theoretical.",
72
+ "E_P_Label" : "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.",
73
+ "E_F_Label" : "Functional exploit code is available. The code works in most situations where the vulnerability exists.",
74
+ "E_H_Label" : "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.",
75
+
76
+ "RL_Heading" : "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.",
77
+ "RL_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Temporal Score, i.e., it has the same effect on scoring as assigning Unavailable.",
78
+ "RL_O_Label" : "A complete vendor solution is available. Either the vendor has issued an official patch, or an upgrade is available.",
79
+ "RL_T_Label" : "There is an official but temporary fix available. This includes instances where the vendor issues a temporary hotfix, tool, or workaround.",
80
+ "RL_W_Label" : "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.",
81
+ "RL_U_Label" : "There is either no solution available or it is impossible to apply.",
82
+
83
+ "RC_Heading" : "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.",
84
+ "RC_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Temporal Score, i.e., it has the same effect on scoring as assigning Confirmed.",
85
+ "RC_U_Label" : "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.",
86
+ "RC_R_Label" : "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.",
87
+ "RC_C_Label" : "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.",
88
+
89
+ "environmentalMetricGroup_Legend" : "These metrics enable the analyst to customize the CVSS score depending on the importance of the affected IT asset to a user’s organization, measured in terms of complementary/alternative security controls in place, Confidentiality, Integrity, and Availability. The metrics are the modified equivalent of base metrics and are assigned metric values based on the component placement in organization infrastructure.",
90
+
91
+ "CR_Heading" : "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.",
92
+ "CR_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Environmental Score, i.e., it has the same effect on scoring as assigning Medium.",
93
+ "CR_L_Label" : "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).",
94
+ "CR_M_Label" : "Assigning this value to the metric will not influence the score.",
95
+ "CR_H_Label" : "Loss of Confidentiality is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).",
96
+
97
+ "IR_Heading" : "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.",
98
+ "IR_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Environmental Score, i.e., it has the same effect on scoring as assigning Medium.",
99
+ "IR_L_Label" : "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).",
100
+ "IR_M_Label" : "Assigning this value to the metric will not influence the score.",
101
+ "IR_H_Label" : "Loss of Integrity is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).",
102
+
103
+ "AR_Heading" : "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.",
104
+ "AR_X_Label" : "Assigning this value indicates there is insufficient information to choose one of the other values, and has no impact on the overall Environmental Score, i.e., it has the same effect on scoring as assigning Medium.",
105
+ "AR_L_Label" : "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).",
106
+ "AR_M_Label" : "Assigning this value to the metric will not influence the score.",
107
+ "AR_H_Label" : "Loss of Availability is likely to have a catastrophic adverse effect on the organization or individuals associated with the organization (e.g., employees, customers).",
108
+
109
+ // All the following text should be copied exactly from the Base Score metrics (above), except that
110
+ // "Not Defined (X)" values need to be added for each metric.
111
+
112
+ "MAV_Heading" : "This metric reflects the context by which vulnerability exploitation is possible. The Environmental Score increases the more remote (logically, and physically) an attacker can be in order to exploit the vulnerable component.",
113
+ "MAV_X_Label" : "The value assigned to the corresponding Base metric is used.",
114
+ "MAV_N_Label" : "The vulnerable component is bound to the network stack and the set of possible attackers extends beyond the other options listed, up to and including the entire Internet. Such a vulnerability is often termed 'remotely exploitable' and can be thought of as an attack being exploitable at the protocol level one or more network hops away.",
115
+ "MAV_A_Label" : "The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN).",
116
+ "MAV_L_Label" : "The vulnerable component is not bound to the network stack and the attacker’s path is via read/write/execute capabilities. Either: the attacker exploits the vulnerability by accessing the target system locally (e.g., keyboard, console), or remotely (e.g., SSH); or the attacker relies on User Interaction by another person to perform actions required to exploit the vulnerability (e.g., tricking a legitimate user into opening a malicious document).",
117
+ "MAV_P_Label" : "The attack requires the attacker to physically touch or manipulate the vulnerable component. Physical interaction may be brief or persistent.",
118
+
119
+ "MAC_Heading" : "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 or computational exceptions. The assessment of this metric excludes any requirements for user interaction in order to exploit the vulnerability. If a specific configuration is required for an attack to succeed, the Base metrics should be scored assuming the vulnerable component is in that configuration.",
120
+ "MAC_X_Label" : "The value assigned to the corresponding Base metric is used.",
121
+ "MAC_L_Label" : "Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.",
122
+ "MAC_H_Label" : "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 an attacker to: gather knowledge about the environment in which the vulnerable target/component exists; prepare the target environment to improve exploit reliability; or inject themselves 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).",
123
+
124
+ "MPR_Heading" : "This metric describes the level of privileges an attacker must possess before successfully exploiting the vulnerability.",
125
+ "MPR_X_Label" : "The value assigned to the corresponding Base metric is used.",
126
+ "MPR_N_Label" : "The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.",
127
+ "MPR_L_Label" : "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.",
128
+ "MPR_H_Label" : "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.",
129
+
130
+ "MUI_Heading" : "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.",
131
+ "MUI_X_Label" : "The value assigned to the corresponding Base metric is used.",
132
+ "MUI_N_Label" : "The vulnerable system can be exploited without any interaction from any user.",
133
+ "MUI_R_Label" : "Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.",
134
+
135
+ "MS_Heading" : "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.",
136
+ "MS_X_Label" : "The value assigned to the corresponding Base metric is used.",
137
+ "MS_U_Label" : "An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.",
138
+ "MS_C_Label" : "An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.",
139
+
140
+ "MC_Heading" : "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.",
141
+ "MC_X_Label" : "The value assigned to the corresponding Base metric is used.",
142
+ "MC_N_Label" : "There is no loss of confidentiality within the impacted component.",
143
+ "MC_L_Label" : "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 limited. The information disclosure does not cause a direct, serious loss to the impacted component.",
144
+ "MC_H_Label" : "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.",
145
+
146
+ "MI_Heading" : "This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.",
147
+ "MI_X_Label" : "The value assigned to the corresponding Base metric is used.",
148
+ "MI_N_Label" : "There is no loss of integrity within the impacted component.",
149
+ "MI_L_Label" : "Modification of data is possible, but the attacker does not have control over the consequence of a modification, or the amount of modification is limited. The data modification does not have a direct, serious impact on the impacted component.",
150
+ "MI_H_Label" : "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.",
151
+
152
+ "MA_Heading" : "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.",
153
+ "MA_X_Label" : "The value assigned to the corresponding Base metric is used.",
154
+ "MA_N_Label" : "There is no impact to availability within the impacted component.",
155
+ "MA_L_Label" : "Performance is reduced or there are 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.",
156
+ "MA_H_Label" : "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)."
157
+ };
@@ -0,0 +1,47 @@
1
+ .custom-switch.cvss {
2
+ align-items: center;
3
+ display: inline-flex;
4
+ white-space: nowrap;
5
+
6
+ .custom-control-input {
7
+ &:checked ~ .custom-control-label {
8
+ &::after {
9
+ background-color: $primaryColor;
10
+ }
11
+
12
+ &::before {
13
+ background-color: $white;
14
+ border-color: $primaryColor !important;
15
+ }
16
+ }
17
+
18
+ &:focus ~ .custom-control-label::before {
19
+ box-shadow: 0 0 0 0.2rem unquote(#{$primaryColor}80);
20
+ }
21
+ }
22
+
23
+ .custom-control-label {
24
+ font-size: 1rem;
25
+ text-transform: lowercase;
26
+
27
+ &::after {
28
+ background-color: $primaryColor;
29
+ left: calc(-0.25rem + 2px);
30
+ }
31
+
32
+ &::before {
33
+ background-color: $white !important;
34
+ border-color: $primaryColor !important;
35
+ left: -0.25rem;
36
+ }
37
+
38
+ span {
39
+ line-height: normal;
40
+
41
+ &:first-of-type {
42
+ display: inline-block;
43
+ transform: translateX(-2.25rem);
44
+ }
45
+ }
46
+ }
47
+ }
@@ -1,4 +1,5 @@
1
1
  @import '_bootstrap';
2
+ @import 'font-awesome.min';
2
3
 
3
- @import 'font-awesome-sprockets';
4
- @import "font-awesome";
4
+ @import "tylium/variables";
5
+ @import "dradis/plugins/calculators/cvss/version_switch"
@@ -0,0 +1,2 @@
1
+ @import "tylium/variables";
2
+ @import "dradis/plugins/calculators/cvss/version_switch"
@@ -13,7 +13,7 @@ module Dradis::Plugins::Calculators::CVSS
13
13
  end
14
14
 
15
15
  if @issue.save
16
- redirect_to main_app.project_issue_path(current_project, @issue), notice: 'CVSSv3 fields updated.'
16
+ redirect_to main_app.project_issue_path(current_project, @issue), notice: 'CVSS fields updated.'
17
17
  else
18
18
  render :edit
19
19
  end
@@ -33,6 +33,6 @@ module Dradis::Plugins::Calculators::CVSS
33
33
  }.freeze
34
34
 
35
35
  FIELDS = (['CVSSv3Vector'.freeze] + FIELD_NAMES.map {|name| "CVSSv3.#{name}".freeze }).freeze
36
- 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
36
+ VECTOR_REGEXP = /CVSS:3.[0|1]\/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
37
37
  end
38
38
  end
@@ -1 +1 @@
1
- <%= link_to 'Risk Calculators - CVSSv3', cvss_calculator.calculators_cvss_path, class: 'dropdown-item', data: { turbolinks: false } %>
1
+ <%= link_to 'Risk Calculators - CVSS', cvss_calculator.calculators_cvss_path, class: 'dropdown-item', data: { turbolinks: false } %>
@@ -0,0 +1,10 @@
1
+ <div class="custom-switch cvss">
2
+ <input
3
+ class="custom-control-input"
4
+ data-behavior="cvss-version-toggle"
5
+ id="cvss-version-toggle"
6
+ type="checkbox"
7
+ <%= 'checked' if @issue && @issue.fields['CVSSv3.Vector'] && @issue.fields['CVSSv3.Vector'].include?('CVSS:3.0') %>
8
+ >
9
+ <label class="custom-control-label" for="cvss-version-toggle"><span>v3.1</span><span>v3.0</span></label>
10
+ </div>
@@ -3,111 +3,111 @@
3
3
 
4
4
  <div class="col-6">
5
5
  <div class="inner">
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>
6
+ <h5 class="header-underline mt-0" data-cvss="AV_Heading">Attack Vector (AV)</h5>
7
7
 
8
8
  <%= hidden_field_tag :av, @cvss_vector['AV'] %>
9
9
 
10
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>
11
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'N' %>" name="av" value="N" data-label="Network" data-cvss="AV_N_Label">Net. <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
12
12
 
13
- <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>
13
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'A' %>" name="av" value="A" data-label="Adjacent" data-cvss="AV_A_Label">Adjacent <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
14
14
 
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>
15
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'L' %>" name="av" value="L" data-label="Local" data-cvss="AV_L_Label">Local <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
16
16
 
17
- <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['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>
17
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AV'] == 'P' %>" name="av" value="P" data-label="Physical" data-cvss="AV_P_Label">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
- <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>
22
+ <h5 class="header-underline mt-0" data-cvss="AC_Heading">Attack Complexity (AC)</h5>
23
23
 
24
24
  <%= hidden_field_tag :ac, @cvss_vector['AC'] %>
25
25
 
26
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>
27
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'L' %>" name="ac" value="L" data-label="Low" data-cvss="AC_L_Label">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
28
28
 
29
- <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>
29
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['AC'] == 'H' %>" name="ac" value="H" data-label="High" data-cvss="AC_H_Label">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
30
30
  </div>
31
31
  </div>
32
32
 
33
33
  <div class="inner">
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>
34
+ <h5 class="header-underline mt-0" data-cvss="PR_Heading">Privileges Required (PR)</h5>
35
35
 
36
36
  <%= hidden_field_tag :pr, @cvss_vector['PR'] %>
37
37
 
38
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>
39
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'N' %>" name="pr" value="N" data-label="None" data-cvss="PR_N_Label">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
40
40
 
41
- <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>
41
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'L' %>" name="pr" value="L" data-label="Low" data-cvss="PR_L_Label">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
42
42
 
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>
43
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['PR'] == 'H' %>" name="pr" value="H" data-label="High" data-cvss="PR_H_Label">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
- <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>
48
+ <h5 class="header-underline mt-0" data-cvss="UI_Heading">User Interaction (UI)</h5>
49
49
 
50
50
  <%= hidden_field_tag :ui, @cvss_vector['UI'] %>
51
51
 
52
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>
53
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'N' %>" name="ui" value="N" data-label="None" data-cvss="UI_N_Label">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
54
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['UI'] == 'R' %>" name="ui" value="R" data-label="Required" data-cvss="UI_R_Label">Required <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
55
55
  </div>
56
56
  </div>
57
57
  </div>
58
58
 
59
59
  <div class="col-6">
60
60
  <div class="inner">
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>
61
+ <h5 class="header-underline mt-0" data-cvss="S_Heading">Scope (S)</h5>
62
62
 
63
63
  <%= hidden_field_tag :s, @cvss_vector['S'] %>
64
64
 
65
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>
66
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'U' %>" name="s" value="U" data-label="Unchanged" data-cvss="S_U_Label">Unchanged <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
67
67
 
68
- <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>
68
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['S'] == 'C' %>" name="s" value="C" data-label="Changed" data-cvss="S_C_Label">Changed <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
69
69
  </div>
70
70
  </div>
71
71
 
72
72
  <div class="inner">
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>
73
+ <h5 class="header-underline mt-0" data-cvss="C_Heading">Confidentiality (C)</h5>
74
74
 
75
75
  <%= hidden_field_tag :c, @cvss_vector['C'] %>
76
76
 
77
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>
78
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'N' %>" name="c" value="N" data-label="None" data-cvss="C_N_Label">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
79
79
 
80
- <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>
80
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'L' %>" name="c" value="L" data-label="Low" data-cvss="C_L_Label">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
81
81
 
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>
82
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['C'] == 'H' %>" name="c" value="H" data-label="High" data-cvss="C_H_Label">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
- <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>
87
+ <h5 class="header-underline mt-0" data-cvss="I_Heading">Integrity (I)</h5>
88
88
 
89
89
  <%= hidden_field_tag :i, @cvss_vector['I'] %>
90
90
 
91
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>
92
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'N' %>" name="i" value="N" data-label="None" data-cvss="I_N_Label">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
93
93
 
94
- <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>
94
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'L' %>" name="i" value="L" data-label="Low" data-cvss="I_L_Label">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
95
95
 
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>
96
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['I'] == 'H' %>" name="i" value="H" data-label="High" data-cvss="I_H_Label">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
- <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>
101
+ <h5 class="header-underline mt-0" data-cvss="A_Heading">Availability (A)</h5>
102
102
 
103
103
  <%= hidden_field_tag :a, @cvss_vector['A'] %>
104
104
 
105
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>
106
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'N' %>" name="a" value="N" data-label="None" data-cvss="A_N_Label">None <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
107
107
 
108
- <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>
108
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'L' %>" name="a" value="L" data-label="Low" data-cvss="A_L_Label">Low <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
109
109
 
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>
110
+ <button type="button" class="btn <%= 'active btn-primary' if @cvss_vector['A'] == 'H' %>" name="a" value="H" data-label="High" data-cvss="A_H_Label">High <i class="fa fa-question-circle-o" aria-hidden="true"></i></button>
111
111
  </div>
112
112
  </div>
113
113
  </div>