-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
1067 lines (906 loc) · 67.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html class="web tlp-white nosidebar ready">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Owasp to CVSS</title>
<link rel="stylesheet" type="text/css" href="files/web.css">
</head>
<body>
<div id="c1" data-studio-c="uwUDsiVT0g" class="cvss-calculator">
<!-- CVSS Calculator content start - add a <base href="http://www.first.org" /> to the head for offline editing -->
<!--
Copyright (c) 2015, FIRST.ORG, INC.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<script type="text/javascript" src="files/owasptocvss.js"></script>
<script type="text/javascript" src="files/cvsscalc30.js"></script>
<script type="text/javascript" src="files/cvsscalc30_helptext.js"></script>
<style type="text/css">
#cvssReference { font-size: 100%; }
fieldset { position: relative; background-color: #f2f2f2; margin-top: 50px; border:0; padding: 1em 0; }
fieldset legend { background-color: #666666; color: #ffffff; margin: 0; width: 100%; padding: 0.5em 0px; text-indent: 1em; }
fieldset div.metric { padding: 0; margin: 0.5em 0; }
@media only screen and (min-width:768px) {
fieldset div.column { width: 45%; margin: 0 0 0 1em; }
fieldset div.column-left { float: left; height: auto; }
fieldset div.column-right { float: right; height: auto; }
}
fieldset h3 { font-size: 1em; margin: 0; padding-left: 0.1em; }
fieldset input { display: none; width:auto; }
fieldset label {
background: #cccccc; display: inline-block; margin: 3px; padding: 2px 5px; border: 0; cursor: pointer; font-size: 90%;
border-radius: 5px; color: #666666; border: 1px solid #999999;
user-select: none; -webkit-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none;
}
fieldset label:hover { background: #666666; color: #ffffff; border: 1px solid #666666 }
fieldset input:checked + label { background: green; border: 1px solid green; color: #ffffff; }
#vector { margin: 0 1em;padding:0; }
#vectorString { display: none; border: 0; padding: 0; margin: 0; background-color: #090; color: #ffffff; font-weight: bold;font-size:0.8em;width:50em;max-width:100%; }
.scoreRating { position: absolute; top:-36px; right:0; padding: 0 0.4em; margin: 0 15px; border: 2px solid #666666; background: #dddddd;
font-size:11px; border-radius: 10px; width: 100px; height: auto; line-height: 150%; text-align: center; }
.scoreRating.none,
.scoreRating.low,
.scoreRating.medium,
.scoreRating.high,
.scoreRating.critical { color:#ffffff;}
.scoreRating.none { background:#53aa33; border:2px solid #53aa33; }
.scoreRating.low { background:#ffcb0d; border:2px solid #ffcb0d; }
.scoreRating.medium { background:#f9a009; border:2px solid #f9a009; }
.scoreRating.high { background:#df3d03; border:2px solid #df3d03; }
.scoreRating.critical { background:#cc0500; border:2px solid #cc0500; }
.scoreRating span { font-size: 150%; font-weight: bold; width: 100%; }
.needBaseMetrics { text-align:center; line-height:100%; padding-top:5px; font-size:15px; }
#baseMetricScore,
#temporalMetricScore,
#environmentalMetricScore { display: block; font-size: 32px; line-height: 32px; font-weight: normal; margin-top: 4px; }
#baseSeverity,
#temporalSeverity,
#environmentalSeverity { font-size: 16px; font-weight: normal; margin-bottom: 5px; display: block; }
div#scriptWarning { border: solid red 2px; background: #f5dddd; padding: 1em 1em 1em 1em; margin: 0.4em 0; }
select {
width: 100%;
padding: 6px 10px;
margin: 4px 0;
box-sizing: border-box;
border: 1px solid #555;
outline: none;
}
input[type=text] {
width: 100%;
padding: 6px 10px;
margin: 4px 0;
box-sizing: border-box;
border: 1px solid #555;
outline: none;
}
input[type=text]:focus {
background-color: lightblue;
}
</style>
<noscript><div id="scriptWarning">This page requires JavaScript. If you have disabled scripting, please enable it.</div></noscript>
<h1 id="mainTitle">Owasp to CVSS</h1>
<fieldset style="background:#090; color:#ffffff; padding:10px; border-radius:10px">
This tool allows CVSS computation from Owasp description of the vulnerability or CWE :
<br>- based on the CVSS Calculator
<br>- and on the Owasp Top Ten 2013 and 2017
<br>- and on CWE
<br>- indications about bounty amounts are based on : https://bugbountyguide.com/programs/determining-the-bounty-amount.html
<br>- similar work here : https://github.com/bugcrowd/vulnerability-rating-taxonomy
</fieldset>
<br>
<div style="background:#090; color:#ffffff; padding:10px;">
<input type=text id=cvss_vector name=cvss_vector onchange="changeCvssVector();" value="Type a CVSS vector string"></input>
</div>
<fieldset style="background:#e0e0d1; color:#ffffff;padding:10px;">
<legend>Owasp description of the vulnerability</legend>
<form action="#" autocomplete="off">
<table width=100% style="font: 15px/1.4em 'Open Sans','OpenSans',sans-serif; color:black;">
<tr>
<td width=50%>
Privileges required to place the vulnerability payload :
</td>
<td>
<select id="select_priv_value" onchange="changeRequiredPrivileges();">
<option value="choose" selected="selected">Choose the privileges required</option>
<option value="anonymous">anonymous</option>
<option value="authenticated">authenticated</option>
<option value="authenticated_rights">authenticated with high rights</option>
</select>
</td>
</tr>
<tr>
<td width=50%>
OWASP category :
</td>
<td>
<select id="select_owasp_cat" onchange="changeTypeVuln();">
<option value="choose" selected="selected">Choose the owasp category</option>
<option value="injection">Injection</option>
<option value="auth">Broken Authentication and Session Management</option>
<option value="dataexposure">Sensitive Data Exposure</option>
<option value="xee">XML External Entities</option>
<option value="misconfiguration">Security Misconfiguration</option>
<option value="xss">Cross-Site Scripting</option>
<option value="csrf">Cross-Site Request Forgery</option>
<option value="openredirect">Unvalidated Redirects and Forwards</option>
</select>
</td>
</tr>
<tr>
<td width=50%>
or CWE category :
</td>
<td>
<select id="select_cwe_cat" onchange="changeTypeWeakness();">
<option value="choose" selected="selected">Choose the CWE category</option>
<option value="cwe79-xssdom">Cross-site Scripting (XSS) - DOM (CWE-79)</option>
<option value="cwe79-xssgen">Cross-site Scripting (XSS) - Generic (CWE-79)</option>
<option value="cwe79-xssref">Cross-site Scripting (XSS) - Reflected (CWE-79)</option>
<option value="cwe79-xsssto">Cross-site Scripting (XSS) - Stored (CWE-79)</option>
</select>
</td>
</tr>
</table>
<div id="csrf_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>CSRF</td>
<td>
<select id="select_csrf_cat" onchange="changeTypeCsrf();">
<option value="choose" selected="selected">Choose the type of CSRF</option>
<option value="csrf_wide">Application wide</option>
<option value="csrf_auth">On authenticated action</option>
<option value="csrf_noauth">On anonymous action</option>
<option value="csrf_logout">On log-out action</option>
</select>
</td>
</tr>
</table>
</div>
<div id="injection_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Injection</td>
<td>
<select id="select_injection_cat" onchange="changeTypeInjection();">
<option value="choose" selected="selected">Choose the type of injection</option>
<option value="injection_sqli">SQL Injection</option>
<option value="injection_rce">Remote code execution</option>
<option value="injection_file">File inclusion</option>
<option value="injection_httpresp">HTTP response manipulation</option>
<option value="injection_email">Email html injection</option>
</select>
</td>
</tr>
</table>
</div>
<div id="file_inclusion_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>
Type of file inclusion :
</td>
<td>
<select id="select_file_inclusion" onchange="changeTypeFileInclusion();">
<option value="choose" selected="selected">Choose the type of file inclusion</option>
<option value="local_file_inclusion">Local file inclusion</option>
<option value="remote_file_inclusion">Remote file inclusion</option>
</select>
</td>
</tr>
</table>
</div>
<div id="local_file_inclusion_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>
Scope of local file inclusion (eg directory traversal attack could allow access to <i>WEB-INF, /etc/, cache or sessions</i> directories) :
</td>
<td>
<select id="select_local_file_inclusion" onchange="changeScopeLocalFileInclusion();">
<option value="choose" selected="selected">Choose the scope of local file inclusion</option>
<option value="local_file_inclusion_changed">The LFIs allows access to files outside the public root directory of webserver</option>
<option value="local_file_inclusion_unchanged">The LFIs is bounded to files inside the public root directory of webserver</option>
</select>
</td>
</tr>
</table>
</div>
<div id="injection_rights" style="display:none">
<table width=100%>
<tr>
<td width=50%>
The assigned privileges to the vulnerable component (eg database or web server user rights) :
</td>
<td>
<select id="select_injection_rights" onchange="changeScopeInjection();">
<option value="choose" selected="selected">Choose the type of privileges</option>
<option value="injection_scope_extended">Authorize access to others components : other database, shell, file system, network ...</option>
<option value="injection_scope_same">Are limited to the vulnerable component</option>
</select>
</td>
</tr>
</table>
</div>
<div id="auth_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Broken authentication and session management</td>
<td>
<select id="select_auth_cat" onchange="changeTypeAuth();">
<option value="choose" selected="selected">Choose the type of broken authentication</option>
<option value="auth_bypass">Authentication bypass</option>
<option value="auth_priv">Privilege escalation</option>
<option value="auth_session_fixation">Session fixation</option>
<option value="auth_invalidate_session">Failure to invalidate session</option>
<option value="auth_concurrent_logins">Concurrent logins</option>
</select>
</td>
</tr>
</table>
</div>
<div id="sensitivedataexposure_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Sensitive data exposure</td>
<td>
<select id="select_sensitive_cat" onchange="changeTypeSensitive();">
<option value="choose" selected="selected">Choose the type of sensitive data exposure</option>
<option value="sensitive_passworddisclosure">Password disclosure</option>
<option value="sensitive_privateapikeys">Private api keys</option>
<option value="sensitive_userenumeration">User enumeration</option>
<option value="sensitive_errorpage">Visible detailed error page</option>
<option value="sensitive_token">Token in url</option>
<option value="sensitive_internalipdisclosure">Internal ip disclosure</option>
<option value="sensitive_internalhostnamedisclosure">Internal hostname disclosure</option>
</select>
</td>
</tr>
</table>
</div>
<div id="tokeninurl_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>Type of token</td>
<td>
<select id="select_typetokeninurl_cat" onchange="changeTypeTokenInUrl();">
<option value="choose" selected="selected">Choose the type of token</option>
<option value="sensitive_sensitivetoken">Sensitive token in url</option>
<option value="sensitive_notsensitivetoken">Not sensitive token in url</option>
</select>
</td>
</tr>
</table>
</div>
<div id="user_enumeration_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>Type of enumeration</td>
<td>
<select id="select_userenumeration_cat" onchange="changeTypeUserEnumeration();">
<option value="choose" selected="selected">Choose the type of user enumeration</option>
<option value="sensitive_autouserenumeration">Automatic user enumeration</option>
<option value="sensitive_manuuserenumeration">Manual user enumeration</option>
</select>
</td>
</tr>
</table>
</div>
<div id="internalipdisclosure_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>Type of ip address</td>
<td>
<select id="select_ipdisclosure_cat" onchange="changeTypeIpDisclosure();">
<option value="choose" selected="selected">Choose the type of IP disclosure</option>
<option value="sensitive_ip">The IP is sensitive</option>
<option value="notsensitive_ip">The IP is not sensitive</option>
<option value="wide_ip">Mapping of IP networks addressing</option>
</select>
</td>
</tr>
</table>
</div>
<div id="internalhostnamedisclosure_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>Type of hostname</td>
<td>
<select id="select_hostnamedisclosure_cat" onchange="changeTypeHostnameDisclosure();">
<option value="choose" selected="selected">Choose the type of hostname disclosure</option>
<option value="sensitive_hostname">The hostname is sensitive</option>
<option value="notsensitive_hostname">The hostname is not sensitive</option>
<option value="wide_hostname">Enumeration of hostnames</option>
</select>
</td>
</tr>
</table>
</div>
<div id="openredirect_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Unvalidated redirects and forwards</td>
<td>
<select id="select_openredirect_cat" onchange="changeTypeOpenRedirect();">
<option value="choose" selected="selected">Choose the type of unvalidated redirects and forwards</option>
<option value="openredirect_get">Open Redirect based on a GET</option>
<option value="openredirect_post">Open Redirect based on a POST</option>
<option value="openredirect_headers">Open Redirect based on HTTP HEADER</option>
</select>
</td>
</tr>
</table>
</div>
<div id="misconfiguration_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Security Misconfiguration</td>
<td>
<select id="select_misconfig_cat" onchange="changeTypeMisConfigurations();">
<option value="choose" selected="selected">Choose the type of security misconfiguration</option>
<option value="misconfig_cors">Unsafe cross origin resource sharing</option>
<option value="misconfig_path_traversal">Path traversal</option>
<option value="misconfig_directory_listing">Directory listing enabled</option>
<option value="misconfig_samesitescripting">Same site scripting</option>
<option value="misconfig_defaultcred">Using default credentials</option>
<option value="misconfig_httmethod">Potentially unsafe http method enabled</option>
<option value="misconfig_ssl">Insecure ssl</option>
</select>
</td>
</tr>
</table>
</div>
<div id="misconfiguration_directorylisting_selected" style="display:none">
<table width=100%>
<tr>
<td width=50%>Directory listing</td>
<td>
<select id="select_directorylisting_cat" onchange="changeTypeDirectoryListing();">
<option value="choose" selected="selected">Choose the type of directory listing</option>
<option value="directory_sensitive">The listing contains sensitive informations</option>
<option value="directory_notsensitive">The listing is not sensitive</option>
</select>
</td>
</tr>
</table>
</div>
<div id="xss_selected" style="display:none">
<br>
<table width=100%>
<tr>
<td width=50%>Type of cross-site-scripting</td>
<td>
<select id="select_xss_cat" onchange="changeTypeXss();">
<option value="choose" selected="selected">Choose the type of XSS</option>
<option value="xss_stocked">Stocked XSS</option>
<option value="xss_reflected">Reflected XSS</option>
<option value="xss_self_reflected">Self Reflected XSS</option>
</select>
</td>
</tr>
</table>
</div>
<div id="xss_selected_users" style="display:none">
<table width=100%>
<tr>
<td width=50%>
Users impacted by the XSS :
</td>
<td>
<select id="select_xss_impact_users" onchange="changeImpactXss();">
<option value="choose" selected="selected">Choose the type of users</option>
<option value="xss_impact_noauth">Not authenticated users</option>
<option value="xss_impact_auth">Authenticated users</option>
<option value="xss_impact_authauto">Authenticated users with very high rights</option>
</select>
</td>
</tr>
</table>
</div>
</form>
</fieldset>
<form action="#" autocomplete="off">
<fieldset id="baseMetricGroup">
<legend id="baseMetricGroup_Legend" title="The Base Metric group represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. Determine the vulnerable component and score Attack Vector, Attack Complexity, Privileges Required and User Interaction relative to this.">Base Score</legend>
<div class="column column-left">
<div class="metric">
<h3 id="AV_Heading" 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>
<input name="AV" value="N" id="AV_N" type="radio"><label for="AV_N" id="AV_N_Label" title="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.">Network (N)</label>
<input name="AV" value="A" id="AV_A" type="radio"><label for="AV_A" id="AV_A_Label" title="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 (A)</label>
<input name="AV" value="L" id="AV_L" type="radio"><label for="AV_L" id="AV_L_Label" title="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 (L)</label>
<input name="AV" value="P" id="AV_P" type="radio"><label for="AV_P" id="AV_P_Label" title="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 (P)</label>
</div>
<div class="metric">
<h3 id="AC_Heading" 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>
<input name="AC" value="L" id="AC_L" type="radio"><label for="AC_L" id="AC_L_Label" title="Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.">Low (L)</label>
<input name="AC" value="H" id="AC_H" type="radio"><label for="AC_H" id="AC_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="PR_Heading" 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>
<input name="PR" value="N" id="PR_N" type="radio"><label for="PR_N" id="PR_N_Label" title="The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.">None (N)</label>
<input name="PR" value="L" id="PR_L" type="radio"><label for="PR_L" id="PR_L_Label" title="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 (L)</label>
<input name="PR" value="H" id="PR_H" type="radio"><label for="PR_H" id="PR_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="UI_Heading" 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>
<input name="UI" value="N" id="UI_N" type="radio"><label for="UI_N" id="UI_N_Label" title="The vulnerable system can be exploited without any interaction from any user.">None (N)</label>
<input name="UI" value="R" id="UI_R" type="radio"><label for="UI_R" id="UI_R_Label" title="Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.">Required (R)</label>
</div>
</div>
<div class="column column-right">
<div class="metric">
<h3 id="S_Heading" 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>
<input name="S" value="U" id="S_U" type="radio"><label for="S_U" id="S_U_Label" title="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 (U)</label>
<input name="S" value="C" id="S_C" type="radio"><label for="S_C" id="S_C_Label" title="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 (C)</label>
</div>
<div class="metric">
<h3 id="C_Heading" 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>
<input name="C" value="N" id="C_N" type="radio"><label for="C_N" id="C_N_Label" title="There is no loss of confidentiality within the impacted component.">None (N)</label>
<input name="C" value="L" id="C_L" type="radio"><label for="C_L" id="C_L_Label" title="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 (L)</label>
<input name="C" value="H" id="C_H" type="radio"><label for="C_H" id="C_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="I_Heading" 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>
<input name="I" value="N" id="I_N" type="radio"><label for="I_N" id="I_N_Label" title="There is no loss of integrity within the impacted component.">None (N)</label>
<input name="I" value="L" id="I_L" type="radio"><label for="I_L" id="I_L_Label" title="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 (L)</label>
<input name="I" value="H" id="I_H" type="radio"><label for="I_H" id="I_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="A_Heading" 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>
<input name="A" value="N" id="A_N" type="radio"><label for="A_N" id="A_N_Label" title="There is no impact to availability within the impacted component.">None (N)</label>
<input name="A" value="L" id="A_L" type="radio"><label for="A_L" id="A_L_Label" title="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 (L)</label>
<input name="A" value="H" id="A_H" type="radio"><label for="A_H" id="A_H_Label" title="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 (H)</label>
</div>
</div>
<div class="scoreRating">
<p class="needBaseMetrics">Select values for all base metrics to generate score</p>
<span id="baseMetricScore"></span>
<span id="baseSeverity"></span>
</div>
</fieldset>
<div class="end"></div>
<fieldset style="background:#090; color:#ffffff; border-radius:10px">
<p id="vector">Vector String -
<span class="needBaseMetrics">select values for all base metrics to generate a vector</span>
<input id="vectorString" readonly="readonly" type="text">
</p>
</fieldset>
<fieldset id="temporalMetricGroup">
<legend id="temporalMetricGroup_Legend" title="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.">Temporal Score</legend>
<div class="column column-left">
<div class="metric">
<h3 id="E_Heading" title="This metric measures the likelihood of the vulnerability being attacked, and is typically based on the current state of exploit techniques, exploit code availability, or active, 'in-the-wild' exploitation.">Exploit Code Maturity (E)</h3>
<input name="E" value="X" id="E_X" checked="checked" type="radio"><label for="E_X" id="E_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="E" value="U" id="E_U" type="radio"><label for="E_U" id="E_U_Label" title="No exploit code is available, or an exploit is theoretical.">Unproven (U)</label>
<input name="E" value="P" id="E_P" type="radio"><label for="E_P" id="E_P_Label" title="Proof-of-concept exploit code is available, or an attack demonstration is not practical for most systems. The code or technique is not functional in all situations and may require substantial modification by a skilled attacker.">Proof-of-Concept (P)</label>
<input name="E" value="F" id="E_F" type="radio"><label for="E_F" id="E_F_Label" title="Functional exploit code is available. The code works in most situations where the vulnerability exists.">Functional (F)</label>
<input name="E" value="H" id="E_H" type="radio"><label for="E_H" id="E_H_Label" title="Functional autonomous code exists, or no exploit is required (manual trigger) and details are widely available. Exploit code works in every situation, or is actively being delivered via an autonomous agent (such as a worm or virus). Network-connected systems are likely to encounter scanning or exploitation attempts. Exploit development has reached the level of reliable, widely-available, easy-to-use automated tools.">High (H)</label>
</div>
<div class="metric">
<h3 id="RL_Heading" title="The Remediation Level of a vulnerability is an important factor for prioritization. The typical vulnerability is unpatched when initially published. Workarounds or hotfixes may offer interim remediation until an official patch or upgrade is issued. Each of these respective stages adjusts the temporal score downwards, reflecting the decreasing urgency as remediation becomes final.">Remediation Level (RL)</h3>
<input name="RL" value="X" id="RL_X" checked="checked" type="radio"><label for="RL_X" id="RL_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="RL" value="O" id="RL_O" type="radio"><label for="RL_O" id="RL_O_Label" title="A complete vendor solution is available. Either the vendor has issued an official patch, or an upgrade is available.">Official Fix (O)</label>
<input name="RL" value="T" id="RL_T" type="radio"><label for="RL_T" id="RL_T_Label" title="There is an official but temporary fix available. This includes instances where the vendor issues a temporary hotfix, tool, or workaround.">Temporary Fix (T)</label>
<input name="RL" value="W" id="RL_W" type="radio"><label for="RL_W" id="RL_W_Label" title="There is an unofficial, non-vendor solution available. In some cases, users of the affected technology will create a patch of their own or provide steps to work around or otherwise mitigate the vulnerability.">Workaround (W)</label>
<input name="RL" value="U" id="RL_U" type="radio"><label for="RL_U" id="RL_U_Label" title="There is either no solution available or it is impossible to apply.">Unavailable (U)</label>
</div>
<div class="metric">
<h3 id="RC_Heading" title="This metric measures the degree of confidence in the existence of the vulnerability and the credibility of the known technical details. Sometimes only the existence of vulnerabilities are publicized, but without specific details. For example, an impact may be recognized as undesirable, but the root cause may not be known. The vulnerability may later be corroborated by research which suggests where the vulnerability may lie, though the research may not be certain. Finally, a vulnerability may be confirmed through acknowledgement by the author or vendor of the affected technology. The urgency of a vulnerability is higher when a vulnerability is known to exist with certainty. This metric also suggests the level of technical knowledge available to would-be attackers.">Report Confidence (RC)</h3>
<input name="RC" value="X" id="RC_X" checked="checked" type="radio"><label for="RC_X" id="RC_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="RC" value="U" id="RC_U" type="radio"><label for="RC_U" id="RC_U_Label" title="There are reports of impacts that indicate a vulnerability is present. The reports indicate that the cause of the vulnerability is unknown, or reports may differ on the cause or impacts of the vulnerability. Reporters are uncertain of the true nature of the vulnerability, and there is little confidence in the validity of the reports or whether a static Base score can be applied given the differences described. An example is a bug report which notes that an intermittent but non-reproducible crash occurs, with evidence of memory corruption suggesting that denial of service, or possible more serious impacts, may result.">Unknown (U)</label>
<input name="RC" value="R" id="RC_R" type="radio"><label for="RC_R" id="RC_R_Label" title="Significant details are published, but researchers either do not have full confidence in the root cause, or do not have access to source code to fully confirm all of the interactions that may lead to the result. Reasonable confidence exists, however, that the bug is reproducible and at least one impact is able to be verified (Proof-of-concept exploits may provide this). An example is a detailed write-up of research into a vulnerability with an explanation (possibly obfuscated or 'left as an exercise to the reader') that gives assurances on how to reproduce the results.">Reasonable (R)</label>
<input name="RC" value="C" id="RC_C" type="radio"><label for="RC_C" id="RC_C_Label" title="Detailed reports exist, or functional reproduction is possible (functional exploits may provide this). Source code is available to independently verify the assertions of the research, or the author or vendor of the affected code has confirmed the presence of the vulnerability.">Confirmed (C)</label>
</div>
</div>
<div class="scoreRating">
<p class="needBaseMetrics">Select values for all base metrics to generate score</p>
<span id="temporalMetricScore"></span>
<span id="temporalSeverity"></span>
</div>
</fieldset>
<div class="end"></div>
<fieldset id="environmentalMetricGroup">
<legend id="environmentalMetricGroup_Legend" title="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.">Environmental Score</legend>
<div class="column column-left">
<div class="metric">
<h3 id="CR_Heading" 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 Requirement (CR)</h3>
<input name="CR" value="X" id="CR_X" checked="checked" type="radio"><label for="CR_X" id="CR_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="CR" value="L" id="CR_L" type="radio"><label for="CR_L" id="CR_L_Label" title="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 (L)</label>
<input name="CR" value="M" id="CR_M" type="radio"><label for="CR_M" id="CR_M_Label" title="Assigning this value to the metric will not influence the score.">Medium (M)</label>
<input name="CR" value="H" id="CR_H" type="radio"><label for="CR_H" id="CR_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="IR_Heading" 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 Requirement (IR)</h3>
<input name="IR" value="X" id="IR_X" checked="checked" type="radio"><label for="IR_X" id="IR_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="IR" value="L" id="IR_L" type="radio"><label for="IR_L" id="IR_L_Label" title="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 (L)</label>
<input name="IR" value="M" id="IR_M" type="radio"><label for="IR_M" id="IR_M_Label" title="Assigning this value to the metric will not influence the score.">Medium (M)</label>
<input name="IR" value="H" id="IR_H" type="radio"><label for="IR_H" id="IR_H_Label" title="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 (H)</label>
</div>
<div class="metric">
<h3 id="AR_Heading" 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 Requirement (AR)</h3>
<input name="AR" value="X" id="AR_X" checked="checked" type="radio"><label for="AR_X" id="AR_X_Label" title="Assigning this value to the metric will not influence the score.">Not Defined (X)</label>
<input name="AR" value="L" id="AR_L" type="radio"><label for="AR_L" id="AR_L_Label" title="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 (L)</label>
<input name="AR" value="M" id="AR_M" type="radio"><label for="AR_M" id="AR_M_Label" title="Assigning this value to the metric will not influence the score.">Medium (M)</label>
<input name="AR" value="H" id="AR_H" type="radio"><label for="AR_H" id="AR_H_Label" title="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 (H)</label>
</div>
</div>
<div class="column column-right">
<div class="metric">
<h3 id="MAV_Heading" 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.">Modified Attack Vector (MAV)</h3>
<input name="MAV" value="X" id="MAV_X" checked="checked" type="radio"><label for="MAV_X" id="MAV_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MAV" value="N" id="MAV_N" type="radio"><label for="MAV_N" id="MAV_N_Label" title="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.">Network</label>
<input name="MAV" value="A" id="MAV_A" type="radio"><label for="MAV_A" id="MAV_A_Label" title="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 Network</label>
<input name="MAV" value="L" id="MAV_L" type="radio"><label for="MAV_L" id="MAV_L_Label" title="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</label>
<input name="MAV" value="P" id="MAV_P" type="radio"><label for="MAV_P" id="MAV_P_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MAC_Heading" 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.">Modified Attack Complexity (MAC)</h3>
<input name="MAC" value="X" id="MAC_X" checked="checked" type="radio"><label for="MAC_X" id="MAC_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MAC" value="L" id="MAC_L" type="radio"><label for="MAC_L" id="MAC_L_Label" title="Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success against the vulnerable component.">Low</label>
<input name="MAC" value="H" id="MAC_H" type="radio"><label for="MAC_H" id="MAC_H_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MPR_Heading" 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.">Modified Privileges Required (MPR)</h3>
<input name="MPR" value="X" id="MPR_X" checked="checked" type="radio"><label for="MPR_X" id="MPR_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MPR" value="N" id="MPR_N" type="radio"><label for="MPR_N" id="MPR_N_Label" title="The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files to carry out an attack.">None</label>
<input name="MPR" value="L" id="MPR_L" type="radio"><label for="MPR_L" id="MPR_L_Label" title="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</label>
<input name="MPR" value="H" id="MPR_H" type="radio"><label for="MPR_H" id="MPR_H_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MUI_Heading" 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.">Modified User Interaction (MUI)</h3>
<input name="MUI" value="X" id="MUI_X" checked="checked" type="radio"><label for="MUI_X" id="MUI_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MUI" value="N" id="MUI_N" type="radio"><label for="MUI_N" id="MUI_N_Label" title="The vulnerable system can be exploited without any interaction from any user.">None</label>
<input name="MUI" value="R" id="MUI_R" type="radio"><label for="MUI_R" id="MUI_R_Label" title="Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited.">Required</label>
</div>
<div class="metric">
<h3 id="MS_Heading" 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.">Modified Scope (MS)</h3>
<input name="MS" value="X" id="MS_X" checked="checked" type="radio"><label for="MS_X" id="MS_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MS" value="U" id="MS_U" type="radio"><label for="MS_U" id="MS_U_Label" title="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</label>
<input name="MS" value="C" id="MS_C" type="radio"><label for="MS_C" id="MS_C_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MC_Heading" 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.">Modified Confidentiality (MC)</h3>
<input name="MC" value="X" id="MC_X" checked="checked" type="radio"><label for="MC_X" id="MC_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MC" value="N" id="MC_N" type="radio"><label for="MC_N" id="MC_N_Label" title="There is no loss of confidentiality within the impacted component.">None</label>
<input name="MC" value="L" id="MC_L" type="radio"><label for="MC_L" id="MC_L_Label" title="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</label>
<input name="MC" value="H" id="MC_H" type="radio"><label for="MC_H" id="MC_H_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MI_Heading" title="This metric measures the impact to integrity of a successfully exploited vulnerability. Integrity refers to the trustworthiness and veracity of information.">Modified Integrity (MI)</h3>
<input name="MI" value="X" id="MI_X" checked="checked" type="radio"><label for="MI_X" id="MI_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MI" value="N" id="MI_N" type="radio"><label for="MI_N" id="MI_N_Label" title="There is no loss of integrity within the impacted component.">None</label>
<input name="MI" value="L" id="MI_L" type="radio"><label for="MI_L" id="MI_L_Label" title="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</label>
<input name="MI" value="H" id="MI_H" type="radio"><label for="MI_H" id="MI_H_Label" title="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</label>
</div>
<div class="metric">
<h3 id="MA_Heading" 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.">Modified Availability (MA)</h3>
<input name="MA" value="X" id="MA_X" checked="checked" type="radio"><label for="MA_X" id="MA_X_Label" title="Use the value assigned to the corresponding Base Score metric.">Not Defined (X)</label>
<input name="MA" value="N" id="MA_N" type="radio"><label for="MA_N" id="MA_N_Label" title="There is no impact to availability within the impacted component.">None</label>
<input name="MA" value="L" id="MA_L" type="radio"><label for="MA_L" id="MA_L_Label" title="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</label>
<input name="MA" value="H" id="MA_H" type="radio"><label for="MA_H" id="MA_H_Label" title="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</label>
</div>
</div>
<div class="scoreRating">
<p class="needBaseMetrics">Select values for all base metrics to generate score</p>
<span id="environmentalMetricScore"></span>
<span id="environmentalSeverity"></span>
</div>
</fieldset>
<fieldset style="background:#090; color:#ffffff; border-radius:10px; padding:10px;">
<div id="bountyamounts_1238974672">Bounty amount : 0</div>
</fieldset>
<div class="end"></div>
</form>
<script type="text/javascript">
"use strict";
/* ** updateScores **
*
* Updates Base, Temporal and Environmental Scores, and the Vector String (both in the web page and
* in the fragment of the URL - the part after the "#").
* If scores and vectors cannot be generated because the user has not yet selected values for all the Base Score
* metrics, messages are displayed explaining this.
*/
function updateScores()
{
var result = CVSS.calculateCVSSFromMetrics (
inputValue( 'input[type="radio"][name=AV]:checked' ),
inputValue( 'input[type="radio"][name=AC]:checked' ),
inputValue( 'input[type="radio"][name=PR]:checked' ),
inputValue( 'input[type="radio"][name=UI]:checked' ),
inputValue( 'input[type="radio"][name=S]:checked' ),
inputValue( 'input[type="radio"][name=C]:checked' ),
inputValue( 'input[type="radio"][name=I]:checked' ),
inputValue( 'input[type="radio"][name=A]:checked' ),
inputValue( 'input[type="radio"][name=E]:checked' ),
inputValue( 'input[type="radio"][name=RL]:checked' ),
inputValue( 'input[type="radio"][name=RC]:checked' ),
inputValue( 'input[type="radio"][name=CR]:checked' ),
inputValue( 'input[type="radio"][name=IR]:checked' ),
inputValue( 'input[type="radio"][name=AR]:checked' ),
inputValue( 'input[type="radio"][name=MAV]:checked' ),
inputValue( 'input[type="radio"][name=MAC]:checked' ),
inputValue( 'input[type="radio"][name=MPR]:checked' ),
inputValue( 'input[type="radio"][name=MUI]:checked' ),
inputValue( 'input[type="radio"][name=MS]:checked' ),
inputValue( 'input[type="radio"][name=MC]:checked' ),
inputValue( 'input[type="radio"][name=MI]:checked' ),
inputValue( 'input[type="radio"][name=MA]:checked' )
);
if (result.success === true) {
// Hide text warning that scores, etc., cannot be calculated until user has selected a value for every Base Metric.
var L=document.querySelectorAll(".needBaseMetrics"), i=L.length;
while(i--) {
hide(L[i]);
}
parentNode( text("#baseMetricScore", result.baseMetricScore ), '.scoreRating').className = 'scoreRating '+result.baseSeverity.toLowerCase();
text("#baseSeverity", "(" + result.baseSeverity + ")" );
parentNode( text("#temporalMetricScore", result.temporalMetricScore ), '.scoreRating').className = 'scoreRating '+result.temporalSeverity.toLowerCase();
text("#temporalSeverity", "(" + result.temporalSeverity + ")" );
parentNode( text("#environmentalMetricScore", result.environmentalMetricScore ), '.scoreRating').className = 'scoreRating '+result.environmentalSeverity.toLowerCase();
text("#environmentalSeverity", "(" + result.environmentalSeverity + ")" );
show( inputValue("#vectorString", result.vectorString ) );
// Update the Vector String in the URL.
window.location.hash = result.vectorString;
// Update the bounty amount :
var bounty_amount = computeBountyAmount(result.environmentalMetricScore);
var string = "Bounty amount : "+bounty_amount;
document.getElementById("bountyamounts_1238974672").innerHTML = string;
} else if (result.error === "Not all base metrics were given - cannot calculate scores.") {
// Show text warning that scores, etc., cannot be calculated until user has selected a value for every Base Metric.
var L=document.querySelectorAll(".needBaseMetrics"), i=L.length;
while(i--) {
show(L[i]);
}
hide( "#vectorString" );
}
console.log('updateScores', result);
}
function delayedUpdateScores()
{
console.log('delayedUpdateScores');
setTimeout(updateScores, 100);
}
window.Element && function(ElementPrototype) {
ElementPrototype.matchesSelector = ElementPrototype.matchesSelector ||
ElementPrototype.mozMatchesSelector ||
ElementPrototype.msMatchesSelector ||
ElementPrototype.oMatchesSelector ||
ElementPrototype.webkitMatchesSelector ||
function (selector) {
var node = this, nodes = (node.parentNode || node.document).querySelectorAll(selector), i = -1;
while (nodes[++i] && nodes[i] != node);
return !!nodes[i];
}
}(Element.prototype);
var matchesSelector = function(node, selector) {
if(!('parentNode' in node) || !node.parentNode) return false;
return Array.prototype.indexOf.call(node.parentNode.querySelectorAll(selector)) != -1
};
function node()
{
for(var i=0;i<arguments.length;i++) {
var o=arguments[i];
if(typeof(o)=='string' && o) return document.querySelector(o);
else if('nodeName' in o) return o;
else if('jquery' in o) return o.get(0);
}
return false;
}
function parentNode(p, q)
{
if(!p || !(p=node(p))) return;
else if((typeof(q)=='string' && p.matchesSelector(q))||p==q) return p;
else if(p.nodeName.toLowerCase()!='html') return parentNode(p.parentNode, q);
else return;
}
function bind(q, tg, fn) {
var o=node(q);
if(!o) return;
if (o.addEventListener) {
o.addEventListener(tg, fn, false);
} else if (o.attachEvent) {
o.attachEvent('on'+tg, fn);
} else {
o['on'+tg] = fn;
}
return o;
}
function text(q, s)
{
var e=node(q);
if(!e) return;
if(arguments.length>1) {
if('textContent' in e) {
e.textContent = s;
} else {
e.innerText = s;
}
return e;
}
return e.textContent || e.innerText;
}
// IE8 Polyfill for textContent
/*
if (Object.defineProperty
&& Object.getOwnPropertyDescriptor
&& Object.getOwnPropertyDescriptor(Element.prototype, "textContent")
&& !Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get) {
(function() {
var innerText = Object.getOwnPropertyDescriptor(Element.prototype, "innerText");
Object.defineProperty(Element.prototype, "textContent",
{
get: function() {
return innerText.get.call(this);
},
set: function(s) {
return innerText.set.call(this, s);
}
}
);
})();
}
*/
function hide(q)
{
var e=node(q);
if(!e) return;
e.setAttribute('style','display:none');
return e;
}
function show(q)
{
var e=node(q);
if(!e) return;
//e.removeAttribute('style');
e.setAttribute('style','display:inline-block');
return e;
}
function inputValue(q, v)
{
var e=document.querySelector(q);
if(!e || e.nodeName.toLowerCase()!='input') return;
if(arguments.length>1) {
e.value = v;
return e;
}
return e.value;
}
/* ** setMetricsFromVector **
*
* Takes a Vector String and sets the metrics on the web page according to the values passed. The string passed
* is fully validated, so it is okay to pass untrusted user input to this function. If validation fails, the
* string "VectorMalformed" is returned and no changes are made to form field values.
*
* All base metrics must be specified. If they are not, the string "NotAllBaseMetricsProvided" is returned and no
* changes are made to form field values. Temporal and Environmental metrics are optional and default to the value
* "X" if not specified.
*
* If validation succeeds and all base metrics are provided, the form fields are set and "true" is returned.
*
* The standard prohibits a metric value being specified more than once, but this function does not prevent this
* and uses the value of the last occurrence.
*/
function setMetricsFromVector ( vectorString ) {
var result = true;
var urlMetric;
var metricValuesToSet = {
AV: undefined, AC: undefined, PR: undefined, UI: undefined, S: undefined, C: undefined, I: undefined, A: undefined,
E: "X", RL: "X", RC: "X",
CR: "X", IR: "X", AR: "X", MAV: "X", MAC: "X", MPR: "X", MUI: "X", MS: "X", MC: "X", MI: "X", MA: "X"
}
// A regular expression to validate that a CVSS 3.0 vector string is well formed. It checks metrics and metric values, but
// does not check that all base metrics have been supplied. That check is done later.
var vectorStringRegex_30 = /^CVSS:3.0\/((AV:[NALP]|AC:[LH]|PR:[UNLH]|UI:[NR]|S:[UC]|[CIA]:[NLH]|E:[XUPFH]|RL:[XOTWU]|RC:[XURC]|[CIA]R:[XLMH]|MAV:[XNALP]|MAC:[XLH]|MPR:[XUNLH]|MUI:[XNR]|MS:[XUC]|M[CIA]:[XNLH])\/)*(AV:[NALP]|AC:[LH]|PR:[UNLH]|UI:[NR]|S:[UC]|[CIA]:[NLH]|E:[XUPFH]|RL:[XOTWU]|RC:[XURC]|[CIA]R:[XLMH]|MAV:[XNALP]|MAC:[XLH]|MPR:[XUNLH]|MUI:[XNR]|MS:[XUC]|M[CIA]:[XNLH])$/;
if (vectorStringRegex_30.test(vectorString)) {
var urlMetrics = vectorString.substring("CVSS:3.0/".length).split("/");
for (var p in urlMetrics) {
var urlMetric = urlMetrics[p].split(":");
metricValuesToSet[urlMetric[0]] = urlMetric[1];
}
// Only if *all* base metrics have been provided, directly set form fields to the required values.
if (metricValuesToSet.AV !== undefined &&
metricValuesToSet.AC !== undefined &&
metricValuesToSet.PR !== undefined &&
metricValuesToSet.UI !== undefined &&
metricValuesToSet.S !== undefined &&
metricValuesToSet.C !== undefined &&
metricValuesToSet.I !== undefined &&
metricValuesToSet.A !== undefined) {
// The correct form field to set can be worked out from the metric acronym and value due to the naming
// convention used on the web page. For example, setting Access Vector (AV) to Physical (P) requires
// the form field with the id "AV_P" to be checked.
for (var p in metricValuesToSet) {
document.getElementById(p + "_" + metricValuesToSet[p]).checked = true;
}
} else {
result = "NotAllBaseMetricsProvided";
}
} else {
result = "MalformedVectorString";
}
// Field values have been set directly, rather than by the user clicking form fields, so the triggers to
// recalculate scores have not fired. Therefore, explicitly update the scores now.
updateScores();
return result;
}
// Used to store the current CVSS Vector from the URL so that we can detect if the user changes it.
var CVSSVectorInURL;
function urlhash()
{
var h = window.location.hash;
CVSSVectorInURL = h;
setMetricsFromVector(h.substring(1)); // The substring passes the Vector String without the leading '#'
}
function inputSelect()
{
this.setSelectionRange(0, this.value.length);
}
/* When the page has fully loaded and is ready, perform the initial setup. This includes creating event handlers to
* recalculate the score as the user changes metric values
*/
function cvssCalculator()