forked from Cingulara/openrmf-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single-checklist.html
executable file
·678 lines (642 loc) · 31.8 KB
/
single-checklist.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
<!--
// Copyright (c) Cingulara LLC 2020 and Tutela LLC 2020. All rights reserved.
// Licensed under the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 license. See LICENSE file in the project root for full license information.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenRMF - Checklist Record</title>
<meta name="description" content="OpenRMF Checklist">
<meta name="author" content="Dale Bingham - https://www.cingulara.com">
<meta name="referrer" content="origin">
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico">
<link rel="apple-touch-icon" sizes="57x57" href="assets/favicons/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="assets/favicons/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="assets/favicons/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="assets/favicons/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="assets/favicons/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="assets/favicons/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="assets/favicons/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="assets/favicons/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="assets/favicons/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/favicons/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png">
<link rel="manifest" href="assets/favicons/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<!-- Font Awesome CSS -->
<link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Custom CSS -->
<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/sweetalert/sweetalert.css" rel="stylesheet" type="text/css" />
<!-- BEGIN CSS for this page -->
<link rel="stylesheet" type="text/css" href="/assets/css/dataTables.bootstrap4.min.css"/>
<link href="assets/css/pricing-tables.css" rel="stylesheet" type="text/css" />
<link href="assets/plugins/jstree/style.css" rel="stylesheet" type="text/css"/>
<link href="assets/plugins/jquery.filer/css/jquery.filer.css" rel="stylesheet" />
<link href="assets/plugins/jquery.filer/css/themes/jquery.filer-dragdropbox-theme.css" rel="stylesheet" />
<!-- END CSS for this page -->
</head>
<body class="adminbody">
<script src="assets/js/keycloak.min.js"></script>
<script src="./js/auth.js"></script>
<div id="main">
<!-- top bar navigation -->
<div class="headerbar">
<!-- LOGO -->
<div class="headerbar-left">
<a href="index.html" class="logo"><img alt="Logo" src="assets/images/logo.jpg" /> <span>Open<span>RMF</span></span></a>
</div>
<nav class="navbar-custom">
<ul class="list-inline float-right mb-0">
<li class="list-inline-item dropdown notif">
<a class="nav-link dropdown-toggle arrow-none" data-toggle="dropdown" href="#" role="button" title="Help and Support"
aria-haspopup="false" aria-expanded="false">
<i class="fa fa-fw fa-question-circle"></i>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-arrow dropdown-arrow-success dropdown-lg">
<!-- item-->
<div class="dropdown-item noti-title">
<h5><small>Help and Support</small></h5>
</div>
<!-- item-->
<a target="_blank" rel="noopener noreferrer" href="/help/" class="dropdown-item notify-item">
<p class="notify-details ml-0">
<b>OpenRMF Online Help</b>
<span>Systems, Checklists, Reports</span>
</p>
</a>
<!-- item-->
<a target="_blank" rel="noopener noreferrer" href="https://cingulara.github.io/openrmf-docs/" class="dropdown-item notify-item">
<p class="notify-details ml-0">
<b>OpenRMF install, download, SCAP, ACAS, RMF Process</b>
<span>GitHub Pages <i class="fa fa-fw fa-external-link"></i></span>
</p>
</a>
</div>
</li>
<li class="list-inline-item dropdown notif">
<a class="nav-link dropdown-toggle nav-user" data-toggle="dropdown" title="Open the User Menu"
href="#" role="button" aria-haspopup="false" aria-expanded="false">
<img src="assets/images/avatars/avatar3.png" alt="Profile image"
class="avatar-rounded">
</a>
<div class="dropdown-menu dropdown-menu-right profile-dropdown ">
<!-- item-->
<div class="dropdown-item noti-title">
<h5 class="text-overflow"><small>Hello, <span id="profileUserName"></span></small> </h5>
</div>
<!-- item-->
<a id="profileAccountURL" href="" class="dropdown-item notify-item" title="Open your Profile page">
<i class="fa fa-user"></i> <span>Profile</span>
</a>
<!-- item-->
<a id="profileLogoutURL" href="" title="Logout of OpenRMF"
class="dropdown-item notify-item"><i class="fa fa-power-off"></i> <span>Logout</span>
</a>
</div>
</li>
</ul>
<ul class="list-inline menu-left mb-0">
<li class="float-left">
<button class="button-menu-mobile open-left">
<i class="fa fa-fw fa-bars"></i>
</button>
</li>
</ul>
</nav>
</div>
<!-- End Navigation -->
<!-- Left Sidebar -->
<div class="left main-sidebar">
<div class="sidebar-inner leftscroll">
<div id="sidebar-menu">
<ul>
<li class="submenu">
<a href="index.html" title="View your OpenRMF Dashboard"><i class="fa fa-fw fa-dashboard"></i><span> Dashboard </span> </a>
</li>
<li class="submenu">
<a href="systems.html" title="View your Systems and Checklists"><i class="fa fa-fw fa-table"></i><span> Systems </span> </a>
</li>
<li class="submenu">
<a href="compliance.html" title="Generate your System Compliance Listing"><i class="fa fa-fw fa-check-square-o"></i><span> Compliance </span> </a>
</li>
<li class="submenu">
<a href="templates.html" title="View your OpenRMF Template Checklists"><i class="fa fa-fw fa-list"></i><span> Templates </span> </a>
</li>
<li class="submenu">
<a href="/reports/index.html" title="View your OpenRMF Reporting Dashboard"><i class="fa fa-fw fa-area-chart"></i><span> Reports </span> </a>
</li>
<li class="submenu" id="menuUpload" title="Upload New Templates or Checklists or by System" style="display: none;">
<a href="upload.html"><i class="fa fa-fw fa-file-text-o"></i><span> Upload </span> </a>
</li>
<li class="submenu" id="menuAudit" title="View Audit Records" style="display: none;">
<a href="audit.html"><i class="fa fa-fw fa-shield"></i><span> Audit </span> </a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
<!-- End Sidebar -->
<div class="content-page">
<!-- Start content -->
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-xl-12">
<div class="breadcrumb-holder">
<h1 class="main-title float-left">My Checklist</h1>
<ol class="breadcrumb float-right">
<li class="breadcrumb-item">Home</li>
<li class="breadcrumb-item active">Checklist</li>
</ol>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- end row -->
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div id="divMessaging" class="alert alert-warning alert-dismissible fade show" style="display: none;" role="alert"></div>
</div>
</div>
<!-- end row -->
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="card mb-3">
<div class="card-header">
<h3 class="float-left"><i class="fa fa-info-circle"></i> Asset Information</h3>
<button type="button" id="btnReturnToChecklistListing" onclick="returnToChecklistListing();"
class="btn btn-info btn-sm m-r-5 m-b-10 float-right">List All Checklists</button>
</div>
<div class="card-body">
<div id="divMessaging" class="alert alert-warning alert-dismissible fade show" style="display: none;" role="alert"></div>
<div id="checklistSystem"></div>
<div id="checklistHost"></div>
<div id="checklistSTIGTitle"></div>
<div id="checklistSTIGVersionInfo"></div>
<div id="checklistSTIGReleaseInfo"></div>
<div id="checklistFQDN"></div>
<div id="checklistTechArea"></div>
<div id="checklistAssetType"></div>
<div id="checklistRole"></div>
<br />
<div class="small" id="checklistLastUpdated"></div><br />
<a href="#custom-modal" id="btnUpdateChecklist" style="display: none;" class="btn btn-primary btn-sm m-r-5 m-b-10"
data-target="#customModal" data-toggle="modal"><span class="btn-label"><i class="fa fa-edit"></i></span> Edit</a>
<button type="button" id="btnDownloadChecklist" style="display: none;" onclick="downloadChecklistFile(getParameterByName('id'), false);"
class="btn btn-success btn-sm"><span class="btn-label"><i class="fa fa-download"></i></span> Download</button>
<button type="button" id="btnExportChecklist" style="display: none;" onclick="exportChecklistXLSX(getParameterByName('id'), false);"
class="btn btn-success btn-sm"><span class="btn-label"><i class="fa fa-download"></i></span> Export</button>
<button type="button" id="btnUploadChecklist" style="display: none;" onclick="uploadFromChecklist();"
class="btn btn-info btn-sm"><span class="btn-label"><i class="fa fa-file-text-o"></i></span> Upload</button>
<button type="button" id="btnDeleteChecklist" style="display: none;" onclick="deleteChecklist(getParameterByName('id'), false);"
class="btn btn-danger btn-sm"><span class="btn-label"><i class="fa fa-remove"></i></span> Delete</button>
</div>
</div><!-- end card-->
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="card mb-3">
<div class="card-header">
<h3 id="checklistTitle" class="float-left"></h3>
</div>
<div class="card-body">
<div style="display: none;" id="divBadChecklistId"
class="alert alert-danger alert-dismissible fade show" role="alert">The Checklist ID passed in
(<span id="txtBadChecklistId"></span>) is not valid. Please return to the page listing the Checklist
and try again. If this continues please contact your application administrator.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<table class="table table-condensed table-hover table-bordered table-responsive-md">
<thead>
<tr>
<th></th>
<th class="tabco4">Open</th>
<th class="tabco2">Not a Finding</th>
<th class="tabco3">Not Applicable</th>
<th class="tabco5">Not Reviewed</th>
</tr>
</thead>
<tbody>
<tr>
<td>Total</td>
<td class="tabco4"><div id="checklistOpenCount"></div></td>
<td class="tabco2"><div id="checklistNotAFindingCount"></div></td>
<td class="tabco3"><div id="checklistNotApplicableCount"></div></td>
<td class="tabco5"><div id="checklistNotReviewedCount"></div></td>
</tr>
<tr>
<td style="text-align: right;">CAT 1</td>
<td class="tabco4"><div id="cat1OpenCount"></div></td>
<td class="tabco2"><div id="cat1NotAFindingCount"></div></td>
<td class="tabco3"><div id="cat1NotApplicableCount"></div></td>
<td class="tabco5"><div id="cat1NotReviewedCount"></div></td>
</tr>
<tr>
<td style="text-align: right;">CAT 2</td>
<td class="tabco6"></i><div id="cat2OpenCount"></div></td>
<td class="tabco2"><div id="cat2NotAFindingCount"></div></td>
<td class="tabco3"><div id="cat2NotApplicableCount"></div></td>
<td class="tabco5"><div id="cat2NotReviewedCount"></div></td>
</tr>
<tr>
<td style="text-align: right;">CAT 3</td>
<td class="tabco7"><div id="cat3OpenCount"></div></td>
<td class="tabco2"><div id="cat3NotAFindingCount"></div></td>
<td class="tabco3"><div id="cat3NotApplicableCount"></div></td>
<td class="tabco5"><div id="cat3NotReviewedCount"></div></td>
</tr>
</tbody>
</table>
<div class="small">* Click on the numbers to filter the Vulnerabilities below</div>
</div><!-- end card body -->
</div><!-- end card-->
</div>
</div><!-- end row-->
<div class="row" id="rowControlInformation" style="display: none;">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="card mb-3">
<div class="card-header">
<h3 class="float-left"><div id="checklistControlTitle"></div></h3>
</div>
<div class="card-body">
<div id="checklistControlGuidance"></div>
</div><!-- end card body -->
</div><!-- end card-->
</div>
</div><!-- end row-->
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-folder-open-o"></i> Vulnerability Filter</h3>
</div>
<div class="card-body">
<div class="row" id="divVulnFilter" style="display: none;">
<div class="col-xl-12">
<div>
<div class="row">
<div class="col-xl-6"><b>Status:</b>
<input id="chkVulnNaF" type="checkbox" checked="true"> <span class="vulnNotAFindingText">Not a Finding</span>
<input id="chkVulnOpen" type="checkbox" checked="true"> <span class="vulnOpenCAT1Text">Open</span>
<input id="chkVulnNA" type="checkbox" checked="true"> <span class="vulnNotApplicableText">N/A</span>
<input id="chkVulnNR" type="checkbox" checked="true"> <span class="vulnNotReviewedText">Not Reviewed</span>
</div>
<div class="col-xl-6"><b>Severity:</b>
<input id="chkVulnCAT1" type="checkbox" checked="true"> High (CAT 1)
<input id="chkVulnCAT2" type="checkbox" checked="true"> Medium (CAT 2)
<input id="chkVulnCAT3" type="checkbox" checked="true"> Low (CAT 3)
</div>
</div>
<div class="row">
<div class="col-xl-12"><br />
<button id="btnSetVulnFilter" class="btn btn-primary btn-sm m-r-5 m-b-10"
onclick="updateVulnerabilityListingByFilter(); return false;">Apply</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!-- end card-->
</div>
<div class="row" id="divVulnerabilities">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-2 col-xl-2">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-folder-open-o"></i> Vuln Ids</h3>
</div>
<div class="card-body">
<div class="row">
<div class="col-xl-12">
<div id="checklistTree" class="vulnListing scrollableDiv"></div>
</div>
</div>
</div>
</div>
</div><!-- end card-->
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-6 col-xl-6">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-folder-open-o"></i> Vulnerability Details</h3>
</div>
<div class="card-body">
<div class="vulnListingDetail scrollableDiv">
<div class="vulnSpacing" id="vulnId">Please select a Vulnerability ID to view its details.</div>
<div class="vulnSpacing" id="vulnStigId"></div>
<div class="vulnSpacing" id="vulnSeverity"></div>
<div class="vulnSpacing" id="vulnRuleId"></div>
<div class="vulnSpacing" id="vulnRuleName"></div>
<div class="vulnSpacing" id="vulnRuleTitle"></div>
<div class="vulnSpacing" id="vulnClassification"></div>
<div class="vulnSpacing" id="vulnDiscussion"></div>
<div class="vulnSpacing" id="vulnCheckText"></div>
<div class="vulnSpacing" id="vulnFixText"></div>
<div class="vulnSpacing" id="vulnCCIId"></div>
<div class="vulnSpacing" id="vulnSeverityOverrideGuidance"></div>
</div>
</div>
</div>
</div><!-- end card-->
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-4 col-xl-4">
<div class="card mb-3">
<div class="card-header">
<h3 class="float-left"><i class="fa fa-folder-open-o"></i> Status & Comments</h3>
<a href="#vulnerability-modal" id="btnUpdateVulnerability" style="display: none;"
class="btn btn-primary btn-sm m-r-5 m-b-10 float-right"
data-target="#vulnerabilityModal" data-toggle="modal"><span class="btn-label"><i class="fa fa-edit"></i></span> Edit</a>
</div>
<div class="card-body">
<div class="vulnListingDetail scrollableDiv">
<div class="vulnSpacing" id="vulnStatus"></div>
<div class="vulnSpacing" id="vulnFindingDetails"></div>
<div class="vulnSpacing" id="vulnComments"></div>
<div class="vulnSpacing" id="vulnSeverityOverride"></div>
<div class="vulnSpacing" id="vulnSeverityJustification"></div>
</div>
</div>
</div>
</div><!-- end card-->
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-table"></i> Severity Breakdown</h3>
</div>
<div class="card-body">
<canvas id="chartSeverity"></canvas>
</div>
<div id="chartSeverityUpdated" class="card-footer small text-muted"></div>
<button type="button" id="btnDownloadChartSeverity" style="display: none;" onclick="downloadChart('chartSeverity');" style="width: 200px;"
class="btn btn-info btn-sm"><span class="btn-label"><i class="fa fa-download"></i></span> Save Chart</button>
</div><!-- end card-->
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xl-6">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-table"></i> Category Breakdown</h3>
</div>
<div class="card-body">
<canvas id="chartCategory"></canvas>
</div>
<div id="chartCategoryUpdated" class="card-footer small text-muted"></div>
<button type="button" id="btnDownloadChartCategory" style="display: none;" onclick="downloadChart('chartCategory');" style="width: 200px;"
class="btn btn-info btn-sm"><span class="btn-label"><i class="fa fa-download"></i></span> Save Chart</button>
</div><!-- end card-->
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="card mb-3">
<div class="card-header">
<h3><i class="fa fa-table"></i> Checklist Score Breakdown</h3>
</div>
<div class="card-body">
<canvas id="barChart"></canvas>
</div>
<div id="barChartUpdated" class="card-footer small text-muted"></div>
<button type="button" id="btnDownloadBarChart" style="display: none;" onclick="downloadChart('barChart');" style="width: 200px;"
class="btn btn-info btn-sm"><span class="btn-label"><i class="fa fa-download"></i></span> Save Chart</button>
</div><!-- end card-->
</div>
</div>
</div>
<!-- END container-fluid -->
</div>
<!-- END content -->
</div>
<!-- END content-page -->
<footer class="footer">
<span class="text-right">
© <a target="_blank" rel="noopener noreferrer" href="https://www.cingulara.com/">Cingulara 2020</a>
© <a target="_blank" rel="noopener noreferrer" href="https://www.tutelasec.com/">Tutela 2020</a>
</span>
<span class="float-right">
Powered by <a target="_blank" rel="noopener noreferrer" href="https://www.pikeadmin.com"><b>Pike Admin</b></a>
</span>
</footer>
</div>
<!-- END main -->
<script src="assets/js/modernizr.min.js"></script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/moment.min.js"></script>
<script src="assets/js/popper.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/detect.js"></script>
<script src="assets/js/fastclick.js"></script>
<script src="assets/js/jquery.blockUI.js"></script>
<script src="assets/js/jquery.nicescroll.js"></script>
<script src="assets/js/jquery.scrollTo.min.js"></script>
<script src="assets/plugins/switchery/switchery.min.js"></script>
<script src="assets/plugins/sweetalert/sweetalert.js"></script>
<!-- App js -->
<script src="assets/js/pikeadmin.js"></script>
<!-- BEGIN Java Script for this page -->
<script src="js/moment.min.js"></script>
<script src="./js/openrmf.js"></script>
<script src="./js/apis.js"></script>
<script src="assets/plugins/chart.js/chart.min.js"></script>
<script src="assets/plugins/chart.js/chartjs-plugin-labels.min.js"></script>
<script src="assets/plugins/jquery.filer/js/jquery.filer.min.js"></script>
<script>
$(document).ready(function() {
// authentication first
keycloak.init({onLoad: 'login-required' }).success(function(authenticated) {
if (authenticated) {
// setup the profile account and logout menu
setupProfileMenu();
// see if the upload menu should show
verifyMenus();
// check if they can download
verifyDownloadSingleChecklist();
// check if they can delete a checklist
verifyDeleteChecklist();
// check if they can update the checklist
verifyUpdateChecklist();
// calls to get the checklist data from the API
getChecklistData(getParameterByName('id'), false);
getChecklistScore(getParameterByName('id'));
$('#checklistFile').filer({
limit: 1,
maxSize: 10,
extensions: ['ckl', 'xml'],
changeInput: true,
showThumbs: true,
captions: {
errors: {
filesLimit: "Only {{fi-limit}} files are allowed to be uploaded at a time.",
filesType: "Only Checklist *.CKL and SCAP scan XCCDF *.XML files can be uploaded.",
filesSize: "{{fi-name}} is too large! Please upload a file up to {{fi-maxSize}} MB.",
filesSizeAll: "Files you have chosen are too large! Please upload a file up to {{fi-maxSize}} MB."
}
}
});
}
else {
swal("Invalid Login", "You are not logged in. Please check your setup with Keycloak.", "error");
}
}).error(function() {
swal("Invalid Login", "Keycloak did not respond correctly. Please verify your Keycloak realm as well as Redirect URI and Web Origins information. (i.e. are you missing an '*' somewhere?", "error");
});
}); // document ready
</script>
<!-- END Java Script for this page -->
<!-- Update Modal -->
<div class="modal fade customModal" id="customModal" tabindex="-1" role="dialog" aria-labelledby="customModal" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">Update <span id="frmChecklistTitle"></span> Checklist</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group" id="divfrmChecklistSystem">
<label for="frmChecklistSystem">System Name (required)</label>
<select class="form-control select2" id="frmChecklistSystem">
<option value="">Choose one...</option>
</select>
<small id="titleHelp" class="form-text text-muted">Select the system this belongs to</small>
</div>
<div class="form-group">
<label for="frmChecklistHost">Host</label>
<input type="text" class="form-control" id="frmChecklistHost" maxlength="100"
aria-describedby="titleHost" placeholder="Enter the Host">
<small id="titleHost" class="form-text text-muted">Enter the Host/Server Name for this checklist</small>
</div>
<div class="form-group">
<label for="frmChecklistFQDN">Fully Qualified Domain Name</label>
<input type="text" class="form-control" id="frmChecklistFQDN" maxlength="100"
aria-describedby="titleFQDN" placeholder="Enter the FQDN">
<small id="titleFQDN" class="form-text text-muted">Enter the Fully Qualified Domain Name</small>
</div>
<div class="form-group">
<label for="frmChecklistTechArea">Technology Area</label>
<select class="form-control select2" id="frmChecklistTechArea" aria-describedby="titleTechArea" >
<option value="">Choose one...</option>
<option value="Application Review">Application Review</option>
<option value="Boundary Security">Boundary Security</option>
<option value="CDS Admin Review">CDS Admin Review</option>
<option value="CDS Technical Review">CDS Technical Review</option>
<option value="Database Review">Database Review</option>
<option value="Domain Name System (DNS)">Domain Name System (DNS)</option>
<option value="Exchange Server">Exchange Server</option>
<option value="Host Based System Security (HBSS)">Host Based System Security (HBSS)</option>
<option value="Internal Network">Internal Network</option>
<option value="Mobility">Mobility</option>
<option value="Releasable Networks (REL)">Releasable Networks (REL)</option>
<option value="Traditional Security">Traditional Security</option>
<option value="UNIX OS">UNIX OS</option>
<option value="VVOIP Review">VVOIP Review</option>
<option value="Web Review">Web Review</option>
<option value="Windows OS">Windows OS</option>
<option value="Other Review">Other Review</option>
</select>
<small id="titleTechArea" class="form-text text-muted">Select the Technology Area</small>
</div>
<div class="form-group">
<label for="frmChecklistAssetType">Asset Type</label>
<select class="form-control select2" id="frmChecklistAssetType" aria-describedby="titleAssetType" >
<option value="Computing">Computing</option>
<option value="Non-Computing">Non-Computing</option>
</select>
<small id="titleAssetType" class="form-text text-muted">Select the Asset Type</small>
</div>
<div class="form-group">
<label for="frmChecklistRole">Role</label>
<select class="form-control select2" id="frmChecklistRole" aria-describedby="titleRole" >
<option value="None">None</option>
<option value="Workstation">Workstation</option>
<option value="Member Server">Member Server</option>
<option value="Domain Controller">Domain Controller</option>
</select>
<small id="titleRole" class="form-text text-muted">Select the Role for this machine</small>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="updateSingleChecklist(getParameterByName('id'));">Save changes</button>
</div>
</div>
</div>
</div>
<!-- Update Modal -->
<div class="modal fade customModal" id="vulnerabilityModal" tabindex="-1" role="dialog" aria-labelledby="vulnerabilityModal" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">Update <span id="frmVulnIDTitle"></span> Vulnerability</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="frmVulnStatus">Status (required)</label>
<select class="form-control select2" id="frmVulnStatus">
<option value="Open">Open</option>
<option value="NotAFinding">Not a Finding</option>
<option value="Not_Reviewed">Not Reviewed</option>
<option value="Not_Applicable">Not Applicable</option>
</select>
<small id="titleStatus" class="form-text text-muted">Select the current status for this vulnerability</small>
</div>
<div class="form-group">
<label for="frmVulnDetails">Finding Details</label>
<textarea class="form-control" id="frmVulnDetails" cols="40" rows="3"
aria-describedby="titleDetails" placeholder="Enter the Finding Details"></textarea>
<small id="titleDetails" class="form-text text-muted">Enter the finding details for this vulnerability</small>
</div>
<div class="form-group">
<label for="frmVulnComments">Comments</label>
<textarea class="form-control" id="frmVulnComments" cols="40" rows="3"
aria-describedby="titleComments" placeholder="Enter any Comments"></textarea>
<small id="titleComments" class="form-text text-muted">Enter any comments for this vulnerability</small>
</div>
<div class="form-group">
<label for="frmVulnSecurityOverride">Security Override</label>
<select class="form-control select2" id="frmVulnSecurityOverride">
<option value="">Choose one...</option>
<option value="high">CAT I / High</option>
<option value="medium">CAT II / Medium</option>
<option value="low">CAT III / Low</option>
</select>
<small id="titleSecurityOverride" class="form-text text-muted">Select the current security override (if any) for this vulnerability</small>
</div>
<div class="form-group">
<label for="frmVulnSecurityJustification">Security Override Justification</label>
<textarea class="form-control" id="frmVulnSecurityJustification" cols="40" rows="4"
aria-describedby="titleSecurityJustification" placeholder="Enter any Comments"></textarea>
<small id="titleSecurityJustification" class="form-text text-muted">Enter the justification on the override for this vulnerability</small>
</div>
<div class="form-group">
<label for="frmBulkUpdateCheckbox">Save Information Across All Checklist Types for this Vulnerability ID?</label>
<input type="checkbox" id="frmBulkUpdateCheckbox" /> Yes
<small id="titleBulkUpdate" class="form-text text-muted">Save this vulnerability information across all similar
checklists types in this System?</small>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" onclick="updateSingleChecklistVulnerability(getParameterByName('id'));">Save changes</button>
</div>
</div>
</div>
</div>
</body>
</html>