-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvulnerability-report.html
866 lines (808 loc) · 36.2 KB
/
vulnerability-report.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
<html>
<head>
<title>Vulnerability Report by Delvelin</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap"
rel="stylesheet">
<style>
body {
background-color: #f4f7fc;
margin: 0;
padding: 10px 100px 100px 100px;
font-family: "Poppins", sans-serif;
line-height: 1.6;
}
h2 {
color: #8b5dff;
text-align: center;
}
h4 {
text-align: center;
}
p {
padding: 2px;
}
pre {
display: block;
/* width: 100%; */
font-family: monospace;
white-space: pre-wrap;
background-color: #323844;
/* border: 1px solid #8b5dff;
border-radius: 4px; */
padding: 20px;
color: #fde7bb;
/* overflow-x: auto; */
/* max-width: 100%;*/
/* word-wrap: break-word; */
margin-bottom:0px;
}
hr {
border: 0.5px solid #8b5dff;
margin-top: 20px;
}
table {
width: 100%;
border-collapse: separate;
margin-top: 20px;
border-spacing: 0;
max-width: 100%; /* Lebar maksimal tabel dibatasi hingga 800px */
table-layout: fixed; /* Membuat tabel memiliki lebar kolom yang konsisten */
}
th,
td {
padding: 14px !important;
text-align: left;
border: 0px;
box-sizing: border-box;
}
th {
background-color: white;
}
.trapesium {
color: #fff;
display: inline-block;
/* border: 1px solid #323844; */
/* border-radius: 3px;*/
width: 60px;
height: 100%;
background-color: #9694ff;
/* clip-path: polygon(0 0, 80% 0, 100% 100%, 0% 100%); */
text-align: center;
padding: 5px;
font-size: 13px;
margin: 0px;
}
code {
display: inline-block;
font-family: monospace;
background-color: #fde7bb;
border: 1px solid #323844;
border-radius: 3px;
padding: 2px 5px;
margin: 0 2px;
color: #9694ff;
white-space: nowrap;
}
.toolver {
color: #8b5dff;
font-size: 0.8em;
position: relative;
top: -0.9em;
}
.align-top-left {
text-align: left; /* Merapatkan teks ke kiri */
vertical-align: top; /* Merapatkan teks ke atas */
padding: 0; /* Hilangkan padding default jika ada */
}
.msg{
max-width: 100%;
padding : 20px;
border: 1px solid #8b5dff;
border-radius: 3px;
}
.issue {
vertical-align: top;
word-wrap: break-word;
background-color:#E2E8F4;
display: flex;
align-items: left;
padding:0px; margin: 0px 0px 12px 0px;
}
.specpath {
vertical-align: top;
font-size:13px; margin:4px 0px 4px 10px; float: left; word-wrap: break-word;
max-width: 100%;
}
</style>
</head>
<body>
<img width="120"
src="https://raw.githubusercontent.com/hangga/delvelin/refs/heads/main/doc/delvelin-soft-black.webp">
<span class="toolver">0.1.1-beta</span>
<hr/>
<h2>Vulnerability Report</h2>
<!--<p style="text-align: center;">${dateReport}</p>-->
<div style="padding: 10px; background-color: #f9f9f9; border: 1px solid #9694FF; border-radius: 8px;">
<h3
style="text-align: center; font-family: Arial, sans-serif; margin-bottom:10px;">
example-of-mandali</h3>
<p
style="text-align: center; font-family: Arial, sans-serif; margin-bottom:24px;">
Path: /Volumes/DATA/Projects/Kotlin/example-of-mandali</p>
<ul
style="list-style: none; padding: 0; margin: 0; font-family: Arial, sans-serif; font-size: 14px;">
<li style="margin-bottom: 8px; display: flex; align-items: center;"><span style="width: 80px; text-align: right; padding-right: 10px; font-weight: bold;">.gradle</span><div style="flex: 1; height: 18px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px;"><div style="width: 15.8%; height: 100%; background-color: #757575; border-radius: 4px;"></div></div><span style="width: 50px; text-align: left;">15.8%</span></li>
<li style="margin-bottom: 8px; display: flex; align-items: center;"><span style="width: 80px; text-align: right; padding-right: 10px; font-weight: bold;">.kt</span><div style="flex: 1; height: 18px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px;"><div style="width: 10.5%; height: 100%; background-color: #8B5DFF; border-radius: 4px;"></div></div><span style="width: 50px; text-align: left;">10.5%</span></li>
<li style="margin-bottom: 8px; display: flex; align-items: center;"><span style="width: 80px; text-align: right; padding-right: 10px; font-weight: bold;">.java</span><div style="flex: 1; height: 18px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px;"><div style="width: 15.8%; height: 100%; background-color: #B07219; border-radius: 4px;"></div></div><span style="width: 50px; text-align: left;">15.8%</span></li>
<li style="margin-bottom: 8px; display: flex; align-items: center;"><span style="width: 80px; text-align: right; padding-right: 10px; font-weight: bold;">.xml</span><div style="flex: 1; height: 18px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px;"><div style="width: 57.9%; height: 100%; background-color: #F44336; border-radius: 4px;"></div></div><span style="width: 50px; text-align: left;">57.9%</span></li>
</ul>
</div>
<br/>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-400 - Apache Log4j 1.x (EOL) allows Denial of Service (DoS)</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #F98404;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>org.apache.logging.log4j:log4j-core:2.0-beta9</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>** UNSUPPORTED WHEN ASSIGNED ** When using the Chainsaw or SocketAppender components with Log4j 1.x on JRE less than 1.7, an attacker that manages to cause a logging entry involving a specially-crafted (ie deeply nested) hashmap or hashtable (depending on which logging component is in use) to be processed could exhaust the available memory in the virtual machine and achieve Denial of Service when the object is deserialized. This issue affects Apache Log4j before 2. Affected users are recommended to update to Log4j 2.x. NOTE: This vulnerability only affects products that are no longer supported by the maintainer. <a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2023-26464>https://nvd.nist.gov/vuln/detail/CVE-2023-26464</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-379 - Guava vulnerable to insecure use of temporary directory</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #FFCA03;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>com.google.guava:guava:31.1-jre</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Use of Java's default temporary directory for file creation in `FileBackedOutputStream` in Google Guava versions 1.0 to 31.1 on Unix systems and Android Ice Cream Sandwich allows other users and apps on the machine with access to the default Java temporary directory to be able to access the files created by the class.
Even though the security vulnerability is fixed in version 32.0.0, maintainers recommend using version 32.0.1 as version 32.0.0 breaks some functionality under Windows.
<a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2023-2976>https://nvd.nist.gov/vuln/detail/CVE-2023-2976</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-710 - Potential Non-Adherence to Coding Standards (Consider using coroutines instead of threads in Kotlin)</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #95CD41;">
2 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>val threads = List(10) { index -></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/test/kotlin/io/mandali/example/ExampleUnitTest.kt">
...io/mandali/example/ExampleUnitTest.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>threads.forEach { it.join() }</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/test/kotlin/io/mandali/example/ExampleUnitTest.kt">
...io/mandali/example/ExampleUnitTest.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-798 - Potential Hardcoded Secrets and Credentials</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #F98404;">
13 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>String apikey = "";</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/string-buffer-vs-string-builder/src/test/java/io/mandali/example/StabilityUnitTest.java">
...io/mandali/example/StabilityUnitTest.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Warning: Potential hardcoded secrets or credentials found in the source code. Hardcoding sensitive information such as passwords, tokens, and API keys can expose secrets and increase the risk of data leaks.</div>
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>// String token = "JHbjhgug44^%$%$6";</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/string-buffer-vs-string-builder/src/test/java/io/mandali/example/StabilityUnitTest.java">
...io/mandali/example/StabilityUnitTest.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><item class="javax.swing.JPasswordField" icon="/co</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/uiDesigner.xml">
...Kotlin/example-of-mandali/.idea/uiDesigner.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><item class="javax.swing.JSpinner" icon="/com/inte</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/uiDesigner.xml">
...Kotlin/example-of-mandali/.idea/uiDesigner.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><option name="EXTENDS_KEYWORD_WRAP" value="1" /></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/codeStyles/Project.xml">
...example-of-mandali/.idea/codeStyles/Project.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><option name="THROWS_KEYWORD_WRAP" value="1" /></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/codeStyles/Project.xml">
...example-of-mandali/.idea/codeStyles/Project.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><component name="VcsDirectoryMappings"></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/vcs.xml">
...Kotlin/example-of-mandali/.idea/vcs.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><mapping directory="$PROJECT_DIR$" vcs="Git" /></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/vcs.xml">
...Kotlin/example-of-mandali/.idea/vcs.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre><key name="MoveClassesOrPackagesDialog.RECENTS_KEY</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/workspace.xml">
...Kotlin/example-of-mandali/.idea/workspace.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre></key></pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/.idea/workspace.xml">
...Kotlin/example-of-mandali/.idea/workspace.xml
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>String apikey = "";</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/main/java/io/mandali/example/Main.java">
...io/mandali/example/Main.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>// String token = "iOiAiSldUIn0.eyJzdWIiOiA</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/main/java/io/mandali/example/Main.java">
...io/mandali/example/Main.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>// String token = "iOiAiSldUIn0.eyJzdWIiOiA</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/main/kotlin/io/mandali/example/MainKotlin.kt">
...io/mandali/example/MainKotlin.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-502 - Incomplete fix for Apache Log4j vulnerability</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #E02401;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>org.apache.logging.log4j:log4j-core:2.0-beta9</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'># Impact
The fix to address [CVE-2021-44228](https://nvd.nist.gov/vuln/detail/CVE-2021-44228) in Apache Log4j 2.15.0 was incomplete in certain non-default configurations. This could allow attackers with control over Thread Context Map (MDC) input data when the logging configuration uses a non-default Pattern Layout with either a Context Lookup (for example, $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or %MDC) to craft malicious input data using a JNDI Lookup pattern resulting in a remote code execution (RCE) attack.
## Affected packages
Only the `org.apache.logging.log4j:log4j-core` package is directly affected by this vulnerability. The `org.apache.logging.log4j:log4j-api` should be kept at the same version as the `org.apache.logging.log4j:log4j-core` package to ensure compatability if in use.
# Mitigation
Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default. This issue can be mitigated in prior releases (< 2.16.0) by removing the JndiLookup class from the classpath (example: zip -q -d log4j-core-*.jar org/apache/logging/log4j/core/lookup/JndiLookup.class).
Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by default. Note that previous mitigations involving configuration such as to set the system property `log4j2.formatMsgNoLookups` to `true` do NOT mitigate this specific vulnerability. <a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2021-45046>https://nvd.nist.gov/vuln/detail/CVE-2021-45046</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-20 - Improper Input Validation and Injection in Apache Log4j2</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #FFCA03;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>org.apache.logging.log4j:log4j-core:2.0-beta9</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4) are vulnerable to an attack where an attacker with permission to modify the logging configuration file can construct a malicious configuration using a JDBC Appender with a data source referencing a JNDI URI which can execute remote code. This issue is fixed by limiting JNDI data source names to the java protocol in Log4j2 versions 2.17.1, 2.12.4, and 2.3.2.
# Affected packages
Only the `org.apache.logging.log4j:log4j-core` package is directly affected by this vulnerability. The `org.apache.logging.log4j:log4j-api` should be kept at the same version as the `org.apache.logging.log4j:log4j-core` package to ensure compatability if in use.
This issue does not impact default configurations of Log4j2 and requires an attacker to have control over the Log4j2 configuration, which reduces the likelihood of being exploited. <a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2021-44832>https://nvd.nist.gov/vuln/detail/CVE-2021-44832</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-173 - Information Disclosure in Guava</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #95CD41;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>com.google.guava:guava:31.1-jre</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>A temp directory creation vulnerability exists in Guava prior to version 32.0.0 allowing an attacker with access to the machine to potentially access data in a temporary directory created by the Guava `com.google.common.io.Files.createTempDir()`. The permissions granted to the directory created default to the standard unix-like /tmp ones, leaving the files open. Maintainers recommend explicitly changing the permissions after the creation of the directory, or removing uses of the vulnerable method.
<a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2020-8908>https://nvd.nist.gov/vuln/detail/CVE-2020-8908</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-295 - Improper validation of certificate with host mismatch in Apache Log4j SMTP appender</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #95CD41;">
1 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>org.apache.logging.log4j:log4j-core:2.0-beta9</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/build.gradle">
...Projects/Kotlin/example-of-mandali/build.gradle
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Improper validation of certificate with host mismatch in Apache Log4j SMTP appender prior to version 2.13.2. This could allow an SMTPS connection to be intercepted by a man-in-the-middle attack which could leak any log messages sent through that appender. <a target="_blank" href=https://nvd.nist.gov/vuln/detail/CVE-2020-9488>https://nvd.nist.gov/vuln/detail/CVE-2020-9488</a></div>
</div>
</td>
</tr>
</table>
</details>
<style>
details summary:hover {
background-color: #9694FF; /* Warna saat hover */
color: #FFFFFF; /* Warna teks saat hover */
}
</style>
<details>
<summary style="cursor: pointer; margin: 4px 0; padding: 10px 0px 10px 20px; font-size: 16px; font-weight: bold; border-radius: 6px;
text-align: left; transition: all 0.3s ease; border: 1px solid #9694FF; position: relative;">
<span style="display: inline;">CWE-362 - Potential Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)</span>
<span style="font-size: 13.5px; min-width: 80px; border-radius: 2px; display: block; text-align: center; padding: 6px;
position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background-color: #FFCA03;">
5 issues
</span>
</summary>
<table>
<tr>
<td class="align-top-left">
<pre>StringBuilder</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/string-buffer-vs-string-builder/src/test/java/io/mandali/example/StabilityUnitTest.java">
...io/mandali/example/StabilityUnitTest.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Consider using <code>StringBuffer</code></div>
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>StringBuilder</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/string-buffer-vs-string-builder/src/test/java/io/mandali/example/StabilityUnitTest.java">
...io/mandali/example/StabilityUnitTest.java
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>ArrayList</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/test/kotlin/io/mandali/example/ExampleUnitTest.kt">
...io/mandali/example/ExampleUnitTest.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Consider using <code>CopyOnWriteArrayList</code> or <code>Collections.synchronizedList(new ArrayList<>())</code></div>
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>HashMap</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/test/kotlin/io/mandali/example/ExampleUnitTest.kt">
...io/mandali/example/ExampleUnitTest.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
<div class='msg'>Consider using <code>ConcurrentHashMap</code> or <code>Collections.synchronizedMap(new HashMap<>())</code></div>
</div>
</td>
</tr>
<tr>
<td class="align-top-left">
<pre>HashMap</pre>
<div class="issue">
<span class="trapesium">Path : </span>
<a class="specpath" target="_blank"
href="/Volumes/DATA/Projects/Kotlin/example-of-mandali/src/test/kotlin/io/mandali/example/ExampleUnitTest.kt">
...io/mandali/example/ExampleUnitTest.kt
</a>
</div>
</td>
<td class="align-top-left">
<div class="message">
</div>
</td>
</tr>
</table>
</details>
<h3 style="text-align: center; font-family: Arial, sans-serif;">CWE Issues Distribution</h3>
<div
style="display: flex; justify-content: space-between; align-items: center; height: 400px; border: 1px solid #9694FF; border-radius: 8px;">
<div
style="width:50%; padding: 10px;">
<ul
style="list-style: none; padding: 10; margin: 0; font-family: Arial, sans-serif; font-size: 14px;">
${BAR_ITEMS_BAR}
</ul>
</div>
<canvas id="findingsChart" style="margin: 0 10px; padding: 24px;"></canvas>
</div>
<script>
// Data CWE Issues dan Persentase
const cweLabels = ["CWE-400","CWE-379","CWE-710","CWE-798","CWE-502","CWE-20","CWE-173","CWE-295","CWE-362"];
const cweData = [1,1,2,13,1,1,1,1,5];
const chartColors = ["#F98404","#FFCA03","#95CD41","#F98404","#E02401","#FFCA03","#95CD41","#95CD41","#FFCA03"];
// Hitung total
const totalIssues = cweData.reduce((sum, count) => sum + count, 0);
// Generate HTML Progress Bars
const barItems = cweLabels.map((label, index) => {
const count = cweData[index];
const percentage = ((count / totalIssues) * 100).toFixed(1);
const color = chartColors[index] || '#757575'; // Warna default
return `
<li style="margin-bottom: 8px; display: flex; align-items: center;">
<span style="width: 80px; text-align: right; padding-right: 10px; font-weight: bold;">${label}</span>
<div style="flex: 1; height: 18px; background-color: #ddd; border-radius: 4px; overflow: hidden; margin: 0 10px;">
<div style="width: ${percentage}%; height: 100%; background-color: ${color}; border-radius: 4px;"></div>
</div>
<span style="width: 50px; text-align: left;">${percentage}%</span>
</li>
`;
}).join("");
// Inject ke elemen HTML
document.body.innerHTML = document.body.innerHTML.replace('${BAR_ITEMS_BAR}', barItems);
</script>
<!--<h3 style="text-align: center;">Issues Distribution</h3>-->
<!--<div style="width: 100%; height: 400px;">-->
<!-- <canvas style="margin: auto;" id="findingsChart"></canvas>-->
<!--</div>-->
<!--<div-->
<!-- style="display: flex; justify-content: space-between; align-items: center; width: 80%; height: 400px;">-->
<!-- <canvas id="findingsChart" style="flex: 1; margin: 0 10px;"></canvas>-->
<!--<!– <canvas id="findingsBarChart" style="flex: 1; margin: 0 10px;"></canvas>–>-->
<!--</div>-->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const ctx = document.getElementById('findingsChart').getContext('2d');
new Chart(ctx, {
type: 'pie',
data: {
labels: ["CWE-400","CWE-379","CWE-710","CWE-798","CWE-502","CWE-20","CWE-173","CWE-295","CWE-362"],
datasets: [{
data: [1,1,2,13,1,1,1,1,5],
backgroundColor: ["#F98404","#FFCA03","#95CD41","#F98404","#E02401","#FFCA03","#95CD41","#95CD41","#FFCA03"],
hoverOffset: 4
}]
}
});
</script>
<footer style="margin-top: 40px; text-align: center; font-size: 12px; color: #666;">
<hr style="border: none; border-top: 1px solid #ccc; margin: 20px 0;">
<div>Generated by <strong>Delveline</strong> v0.1.1-beta</div>
<div>2024-12-18 13:41:15</div>
<div>For more information, visit: <a href="https://delvelin.github.io" target="_blank">https://delvelin.github.io</a></div>
<div>© 2024 Delveline Team. All Rights Reserved.</div>
</footer>