-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
676 lines (666 loc) · 25.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta name="version" content="1.0.20"/>
<title> CVE Services Client Interface</title>
<link rel="icon" href="./certicon.ico" type="image/x-icon" />
<link rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2"
crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<script src="sweetalert2/sweetalert2.all.min.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css" integrity="sha384-ppHVqi8cSvs9rS2kDYZoGLiwz7RqQSf8Cw/u7yvuBCHnP8LftQKtbJKS6pXF9OXg" crossorigin="anonymous">
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js" integrity="sha384-c6BpBD7+QRK09NF7WgSPQpBF4z1UdPVJEFAvOnQoNyqtMMuJW/hF+iw3pHlKvmxF" crossorigin="anonymous"></script>
<script src="ace-builds/src-min-noconflict/ace.js"></script>
<!-- Alternate load from jsdelivr
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ace.js"></script>
-->
<script src="cveClientlib.js"></script>
<link rel="stylesheet" href="cveInterface.css">
</head>
<body class="text-center whitebody">
<div class="alert position-fixed w-100" id="topalert" role="alert"
onclick="$(this).fadeOut('slow')">
Alert
</div>
<div class="modal fade rejectcve" id="rejectcveModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">
<span class="mtitle text-danger">Reject CVE</span>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<form autocomplete="off" onsubmit="return false">
<div class="form-group">
<label class="d-none" for="cve">CVE ID
</label>
<input type="text" name="cve" readonly
required="required"
class="form-control cve"
title="CVE Number"
placeholder="CVE-yyyy-nnnn"/>
</div>
<div class="form-group">
<label class="d-none" for="description">CVE Reject Description
</label>
<textarea class="form-control description"
required="required"
onblur="clearoff(this)"
name="description" rows="4"
title="CVE Rejected Reason"
placeholder="CVE ID Rejected reason"></textarea>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" data-dismiss="modal" aria-label="Close"
class="btn btn-secondary">Cancel</button>
<button type="button" class="btn btn-danger reject" onclick="reject_cve(true)">
Reject CVE</button>
</div>
</div>
</div>
</div>
<div class="modal fade addUser" id="addUserModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">
<span class="mtitle">Add User</span>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<form autocomplete="off" onsubmit="return false">
<div id="cpassword" class="d-none cpassword">SYHpbZuvOGS80P5oNX</div>
<div class="form-group">
<label class="d-none" for="amount">Username
</label>
<input type="email" name="username" data-update="new_username"
required="required" id="username"
class="form-control username"
onchange="checkchange(this)"
title="Username"
placeholder="Username ([email protected])"/>
</div>
<div class="form-group">
<label class="d-none" for="name_first">First Name
</label>
<input type="text" name="name_first" data-update="name.first"
required="required" id="name_first"
onchange="checkchange(this)"
class="form-control name_first"
title="First Name"
placeholder="First Name (John)"/>
</div>
<div class="form-group">
<label class="d-none" for="name_last">Last Name
</label>
<input type="text" name="name_last" data-update="name.last"
required="required" id="name_last"
onchange="checkchange(this)"
class="form-control name_last"
title="Last Name"
placeholder="Last Name (Smith)"/>
</div>
<div class="form-group">
<label class="d-none" for="active_roles">Role
</label>
<select name="active_roles" class="form-control active_roles"
onchange="checkchange(this)" id="active_roles"
data-update="active_roles">
<option value="">Role: User</option>
<option value="ADMIN">Role: Administrator</option>
</select>
</div>
<div class="form-group updateuser float-left">
<div class="ustatus"> User Status :
<span class="uspan"></span>
</div>
<label class="tswitch admin">
<input type="checkbox" class="tnotify enabled active"
title="Active" onchange="update_user_status(this)"
value="1">
<span class="tslider round"></span>
</label>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger updateuser admin selfadmin"
onclick="reset_user(this)">Reset API Key</button>
<button type="button" class="btn btn-primary adduser admin"
onclick="adduser()">
Add User</button>
<button type="button" class="btn btn-info updateuser selfadmin"
id="updateButton"
onclick="update_user()">
Update User</button>
</div>
</div>
</div>
</div>
<div class="modal fade cveUpdate" id="cveUpdateModal" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">
<span class="ltitle">Update </span>
<span class="mtitle"></span>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<form autocomplete="off" id="cveform" onsubmit="return false">
<ul class="nav nav-tabs" id="morjson" role="tablist">
<li class="nav-item waves-effect waves-light">
<a class="nav-link active" id="nice-tab" data-toggle="tab"
href="#nice" role="tab" aria-controls="nice"
aria-selected="true" onclick="from_json(this)">
Minimal
</a>
<a class="refresh d-none"
onclick="show_cve_table()">Refresh</a>
</li>
<li class="nav-item waves-effect waves-light">
<a class="nav-link" data-toggle="tab"
href="#mjson" role="tab" aria-controls="mjson"
aria-selected="false" onclick="to_json(this)">
JSON
</a>
</li>
<li class="nav-item waves-effect waves-light adp">
<a class="nav-link" data-toggle="tab"
href="#adpjson" role="tab" aria-controls="adpjson"
aria-selected="false" onclick="show_adp(this)">
ADP
</a>
</li>
</ul>
<div class="tab-content" id="nice-or-json">
<div class="tab-pane fade active show" id="nice"
role="tabpanel" aria-labelledby="nice-tab">
<ol class="form-group frow nologin" style="display:none">
<label>
CVE Number
<input class="form-control cve w-auto d-inline" name="cve" placeholder="CVE-YYYY-NNNN" onblur="clearoff(this)">
<button class="btn btn-secondary" type="button" alt="Download CVE" title="Download CVE" onclick="get_cve()">↓</button>
</label>
</ol>
<ol class="form-group frow">
<li class="erow position-relative">
<label>Title (Optional)
</label>
<button class="duplicator addrow toggler" data-show="title"
title="Show Title field"
onclick="show_field(this)">➤</button>
<textarea class="form-control title d-none" onblur="clearoff(this)"
name="title" rows="1"
data-field="title"
title="Title of the vulnerability"
placeholder="Title of the vulnerability"
example="(Optional Title) Acme Product X version 1.0 found vulnerable"></textarea>
</ol>
<ol class="form-group frow" data-rclass="descriptions">
<button class="duplicator addrow" title="Add Description"
onclick="duplicate(this.parentNode)">⊕
</button>
<li class="erow position-relative descriptions">
<label>Description(s)
</label>
<button class="duplicator deleterow text-danger"
title="Delete row"
onclick="unduplicate(this.parentNode)">
⊖
</button>
Language:
<select name="lang" class="form-control lang"
title="Description Language"
required="required"
data-field="descriptions.0.lang">
<option selected value="en">English (en)</option>
</select>
<textarea class="form-control description"
required="required"
onblur="clearoff(this)"
name="description" rows="4"
data-field="descriptions.0.value"
title="Description of Vulnerability"
placeholder="Description of the vulnerability"
example="[PROBLEMTYPE] in [COMPONENT] in [VENDOR] [PRODUCT] [VERSION] on [PLATFORMS] allows [ATTACKER] to [IMPACT] via [VECTOR]"></textarea>
</li>
</ol>
<ol class="form-group frow" data-rclass="affected">
<button class="duplicator addrow"
title="Add Impacted Product"
onclick="duplicate(this.parentNode)">⊕
</button>
<li class="erow position-relative affected">
<label>Impacted Product(s)
</label>
<button class="duplicator deleterow text-danger"
title="Delete row"
onclick="unduplicate(this.parentNode)">
⊖
</button>
<input type="text" name="vendor" onblur="clearoff(this)"
class="form-control vendor" required="required"
data-field="affected.0.vendor"
title="Vendor or Project"
placeholder="Vendor or Project (Mitre or Mozilla)"
required="required">
<input type="text" name="product" onblur="clearoff(this)"
class="form-control product"
data-field="affected.0.product"
title="Product"
placeholder="Product (Firefox)"
required="required">
<select name="defaultStatus"
title="Product's Default Status"
data-field="affected.0.defaultStatus"
class="form-control defaultStatus">
<option value=""> Product's Default Status</option>
<option value="unknown">Unknown</option>
<option value="unaffected">Not Affected</option>
<option value="affected">Affected</option>
</select>
<ol class="childarray" data-rclass="versions">
<button class="duplicator addrow"
title="Add Impacted Versions"
onclick="duplicate(this.parentNode)"> ⊕
</button>
<li class="erow position-relative versions text-left">
<label>Version(s)
</label>
<button class="duplicator deleterow text-danger"
title="Delete row"
onclick="unduplicate(this.parentNode)">
⊖
</button>
<input type="text" name="version"
onblur="clearoff(this)"
data-field="affected.0.versions.0.version"
required="required"
class="form-control version"
title="Version"
placeholder="Version String (1.1.0)"/>
<select name="status" onblur="clearoff(this)"
required="required"
title="Status"
data-field="affected.0.versions.0.status"
class="form-control status">
<option value="">Version Status (Affected)</option>
<option value="affected">Affected</option>
<option value="unaffected">Not Affected</option>
<option value="unknown">Unknown</option>
</select>
<input type="checkbox" class="versionRangeEnabled"
title="Use Range"
onchange="triggerversionRange(this)">
Range
<select name="versionRangeType"
title="Range Type"
onchange="update_related(this)"
data-related="versionRangeValue"
data-relatedfield="affected.0.versions.0.$"
class="form-control versionRange mauto d-none versionRangeType">
<option value="">Select</option>
<option value="lessThan"><</option>
<option value="lessThanOrEqual"><=</option>
</select>
<input type="text" name="versionRangeValue"
onblur="clearoff(this)"
class="form-control versionRange versionRangeValue mauto d-none"
title="Limit of Range Version"
placeholder="Limit Version (1.2.0)">
<input type="text" name="versionTypeValue"
onblur="clearoff(this)"
title="Version Type used"
class="form-control versionRange versionTypeValue mauto d-none"
data-field="affected.0.versions.0.versionType"
placeholder="Version Type git,maven,python,npm">
</li>
</ol>
</li>
</ol>
<ol class="form-group frow" data-rclass="references">
<button class="duplicator addrow" title="Add Reference"
onclick="duplicate(this.parentNode)">⊕
</button>
<li class="erow position-relative references">
<label>Reference(s)
</label>
<button class="duplicator deleterow text-danger"
title="Delete row"
onclick="unduplicate(this.parentNode)">
⊖
</button>
<input type="url" name="url" class="form-control url"
onblur="clearoff(this)"
data-field="references.0.url"
title="Reference URL"
placeholder="URL (https://ex.co/psirt/id:11)"
required="required">
<input type="text" class="form-control name"
onblur="clearoff(this)"
title="URL descriptive name"
data-field="references.0.name"
placeholder="Optional URL name (Example's PSIRT advisory #11)"
name="name" maxlength="512">
</li>
</ol>
<div class="form-group frow" data-rclass="extrajson">
<label>
Additional Field(s) JSON
</label>
<button class="duplicator addrow toggler" data-show="rawjson"
title="Show additional properties JSON"
onclick="show_field(this)">➤</button>
<textarea class="form-control rawjson d-none"></textarea>
</div>
</div>
<div class="tab-pane fade editorwrap" id="mjson" role="tabpanel"
aria-labelledby="mjson-tab">
<div class="jsoneditor" id="mjsoneditor"></div>
</div>
<div class="tab-pane fade editorwrap" id="adpjson" role="tabpanel"
aria-labelledby="adpjson-tab">
<div class="jsoneditor" id="adpjsoneditor"></div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<a type="button" class="btn btn-primary cveupdate"
onclick="publish_cve()">
Publish CVE</a>
<a type="button" class="btn btn-primary adpupdate d-none"
onclick="publish_adp()">
Publish ADP</a>
</div>
</div>
</div>
</div>
<div class="modal fade" id="deepDive" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content w-auto">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">Details
<span id="detailtag"></span>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<ul class="nav nav-tabs d-none" role="tablist" id="display_tabs">
<li class="nav-item waves-effect waves-light">
<a class="nav-link nav-default active" data-toggle="tab"
href="#f0" role="tab" aria-controls="f1"
aria-selected="false">
CVE
</a>
</li>
<li class="nav-item waves-effect waves-light">
<a class="nav-link" data-toggle="tab"
href="#f1" role="tab" aria-controls="f2"
aria-selected="false">
ADP
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active show" id="f0"
role="tabpanel">
</div>
<div class="tab-pane fade" id="f1"
role="tabpanel">
</div>
</div>
<form autocomplete="off" onsubmit="return false">
<div class="form-group">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger d-none"
id="cvereject" onclick="reject_cve(false)">
Reject CVE
</button>
<button type="button" class="btn btn-secondary d-none"
id="cvedetails" onclick="display_cvedetails()">
Show CVE Data
</button>
<button type="button" class="btn btn-info" id="updaterecord"
onclick="mupdate()">
Update Record</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="reserveCVEModal" tabindex="-1" role="dialog" aria-labelledby="CVEModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">Reserve CVE
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<form autocomplete="off" onsubmit="return false">
<div class="form-group">
<label class="d-none" for="amount">Count of CVEs to reserve
</label>
<input type="number" name="amount"
required="required"
class="form-control amount"
placeholder="How many CVE's? (default 1)"/>
</div>
<div class="form-group">
<label class="d-none" for="cve_year">Year
</label>
<input type="number" name="cve_year"
maxlength="4" required="required"
class="form-control cve_year"
placeholder="Year (default Current Year)"/>
</div>
<div class="form-group">
<label class="d-none" for="batchtype">Type for Batch
</label>
<select name="batch_type" class="form-control batch_type">
<option value="sequential">Sequential</option>
<option value="nonsequential">Not Sequential</option>
</select>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger"
data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="reserve()">
Reserve</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="loginModalCenterTitle" aria-hidden="true" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="col-12 modal-title text-center">CNA Login
<button type="button" class="close d-none" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</h5>
</div>
<div class="modal-body">
<form autocomplete="off" onsubmit="return false">
<div class="form-group">
<label class="d-none" for="org">Organization Short Name</label>
<input type="text" name="org" id="org"
maxlength="255" required="required"
class="form-control" placeholder="CNA Short Name"/>
</div>
<div class="form-group">
<label class="d-none" for="username">Username</label>
<input type="email" name="user" id="user"
maxlength="255" required="required"
class="form-control" placeholder="Username"/>
</div>
<div class="form-group">
<label class="d-none" for="key">API Key</label>
<input type="password" name="key" id="key"
maxlength="64" minlength="31"
class="form-control" placeholder="API Key"/>
</div>
<div class="form-group">
<label class="d-none" for="url">Service Location (URL)</label>
<select name="url" id="url" onchange="urlprompt(this)"
class="form-control">
<option value="https://cveawg.mitre.org/api">
Production</option>
<option value="https://cveawg-test.mitre.org/api">
Test</option>
<option value="http://127.0.0.1:3000/api">Local</option>
<option value="custom">Custom</option>
</select>
</div>
<div class="form-group">
<label class="d-none" for="storeLocal">Remember Credentials</label>
<input type="checkbox" value="1" id="storeLocal"
name="storeLocal" unchecked/>
Keep me logged in.
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary d-none"
data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="login()">
Login</button>
<button type="button" class="btn btn-primary" onclick="skip()">
Skip</button>
</div>
</div>
</div>
</div>
<main role="main" class="inner cover">
<div class="container my-4">
<section>
<h6> Demo of CVE 5.0 service client</h6>
<ul class="nav nav-tabs" id="svTab" role="tablist">
<li class="nav-item waves-effect waves-light">
<a class="nav-link active" id="cve-tab" data-toggle="tab" href="#cve" role="tab" aria-controls="cve" aria-selected="false" data-tableid="cvetable" onclick="show_cve_table(1)">
CVE
</a>
<a class="refresh d-none" onclick="show_cve_table()">Refresh</a>
</li>
<li class="nav-item waves-effect waves-light">
<a class="nav-link" id="users-tab" data-toggle="tab" href="#users" role="tab" aria-controls="users" aria-selected="false" onclick="show_users_table(1)" data-tableid="usertable">Users
</a>
<a class="refresh d-none" onclick="show_users_table()">Refresh</a>
</li>
<li class="nav-item waves-effect waves-light d-none">
<a class="nav-link " id="admin-tab" data-toggle="tab" href="#admin" role="tab" aria-controls="admin" aria-selected="true">Admin</a>
</li>
<li class="ml-auto">
<div class="dropdown">
<button class="btn border border-dark rounded" type="button" data-toggle="dropdown" aria-expanded="false">
<svg viewBox="0 0 100 80" width="20" height="20">
<rect width="100" height="20"></rect>
<rect y="30" width="100" height="20"></rect>
<rect y="60" width="100" height="20"></rect>
</svg>
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><button class="dropdown-item"
onclick="$('#reserveCVEModal').modal()">
Reserve CVE</button></li>
<li><button class="dropdown-item admin"
onclick="add_user_modal()">
Add User</button></li>
<li class="encryption">
<button class="dropdown-item admin"
onclick="enable_encryption()">
Enable encryption</button></li>
<li class="encryption d-none">
<button class="dropdown-item admin"
onclick="disable_encryption()">
Disable encryption</button></li>
<li><button class="dropdown-item"
onclick="showorg()">
Show Org Info</button></li>
<li><button class="dropdown-item"
onclick="logout()">
<span class="btn logout d-none">
➜
</span>
Logout
</button>
</ul>
</div>
<!-- Additional logout button -->
</li>
</ul>
<div class="tab-content" id="svTabContent">
<div class="tab-pane fade active show" id="cve" role="tabpanel"
aria-labelledby="cve-tab">
<div class="float-left">
Year: <select class="form-control d-inline" id="year"
onchange="doRefresh()"
style="width:auto">
<option value="0">All </option>
</select>
</div>
<table id="cvetable">
<tr><td>Loading </td><td><div class="loading"></div></td></tr>
</table>
</div>
<div class="tab-pane fade" id="users" role="tabpanel" aria-labelledby="users-tab">
<table id="usertable">
<tr><td>Loading </td><td><div class="loading"></div></td></tr>
</table>
</div>
<div class="tab-pane fade" id="admin" role="tabpanel" aria-labelledby="admin-tab">
</div>
</div>
</section>
<hr>
<p>
<small>
This website does NOT store any data or track usage. The code is freely available
at <a href="https://github.com/CERTCC/cveClient/">GitHub</a>
</small>
</p>
</div>
</main>
<script src="cveInterface.js"></script>
</body>
</html>