forked from github/codeql-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-fix.sarif
5334 lines (5334 loc) · 221 KB
/
test-fix.sarif
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
{
"$schema": "https://github.com/raw/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"tool": {
"driver": {
"name": "CodeQL",
"organization": "GitHub",
"semanticVersion": "2.5.4",
"rules": [
{
"id": "js/polynomial-redos",
"name": "js/polynomial-redos",
"shortDescription": {
"text": "Polynomial regular expression used on uncontrolled data"
},
"fullDescription": {
"text": "A regular expression that can require polynomial time to match may be vulnerable to denial-of-service attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-730",
"external/cwe/cwe-400"
],
"description": "A regular expression that can require polynomial time\n to match may be vulnerable to denial-of-service attacks.",
"id": "js/polynomial-redos",
"kind": "path-problem",
"name": "Polynomial regular expression used on uncontrolled data",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/redos",
"name": "js/redos",
"shortDescription": {
"text": "Inefficient regular expression"
},
"fullDescription": {
"text": "A regular expression that requires exponential time to match certain inputs can be a performance bottleneck, and may be vulnerable to denial-of-service attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-730",
"external/cwe/cwe-400"
],
"description": "A regular expression that requires exponential time to match certain inputs\n can be a performance bottleneck, and may be vulnerable to denial-of-service\n attacks.",
"id": "js/redos",
"kind": "problem",
"name": "Inefficient regular expression",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/enabling-electron-insecure-content",
"name": "js/enabling-electron-insecure-content",
"shortDescription": {
"text": "Enabling Electron allowRunningInsecureContent"
},
"fullDescription": {
"text": "Enabling allowRunningInsecureContent can allow remote code execution."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"frameworks/electron"
],
"description": "Enabling allowRunningInsecureContent can allow remote code execution.",
"id": "js/enabling-electron-insecure-content",
"kind": "problem",
"name": "Enabling Electron allowRunningInsecureContent",
"precision": "very-high",
"problem.severity": "error"
}
},
{
"id": "js/disabling-electron-websecurity",
"name": "js/disabling-electron-websecurity",
"shortDescription": {
"text": "Disabling Electron webSecurity"
},
"fullDescription": {
"text": "Disabling webSecurity can cause critical security vulnerabilities."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"frameworks/electron"
],
"description": "Disabling webSecurity can cause critical security vulnerabilities.",
"id": "js/disabling-electron-websecurity",
"kind": "problem",
"name": "Disabling Electron webSecurity",
"precision": "very-high",
"problem.severity": "error"
}
},
{
"id": "js/sql-injection",
"name": "js/sql-injection",
"shortDescription": {
"text": "Database query built from user-controlled sources"
},
"fullDescription": {
"text": "Building a database query from user-controlled sources is vulnerable to insertion of malicious code by the user."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-089"
],
"description": "Building a database query from user-controlled sources is vulnerable to insertion of\n malicious code by the user.",
"id": "js/sql-injection",
"kind": "path-problem",
"name": "Database query built from user-controlled sources",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/insecure-download",
"name": "js/insecure-download",
"shortDescription": {
"text": "Download of sensitive file through insecure connection"
},
"fullDescription": {
"text": "Downloading executables and other sensitive files over an insecure connection opens up for potential man-in-the-middle attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-829"
],
"description": "Downloading executables and other sensitive files over an insecure connection\n opens up for potential man-in-the-middle attacks.",
"id": "js/insecure-download",
"kind": "path-problem",
"name": "Download of sensitive file through insecure connection",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/xxe",
"name": "js/xxe",
"shortDescription": {
"text": "XML external entity expansion"
},
"fullDescription": {
"text": "Parsing user input as an XML document with external entity expansion is vulnerable to XXE attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-611",
"external/cwe/cwe-827"
],
"description": "Parsing user input as an XML document with external\n entity expansion is vulnerable to XXE attacks.",
"id": "js/xxe",
"kind": "path-problem",
"name": "XML external entity expansion",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/hardcoded-credentials",
"name": "js/hardcoded-credentials",
"shortDescription": {
"text": "Hard-coded credentials"
},
"fullDescription": {
"text": "Hard-coding credentials in source code may enable an attacker to gain unauthorized access."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-259",
"external/cwe/cwe-321",
"external/cwe/cwe-798"
],
"description": "Hard-coding credentials in source code may enable an attacker\n to gain unauthorized access.",
"id": "js/hardcoded-credentials",
"kind": "path-problem",
"name": "Hard-coded credentials",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/xml-bomb",
"name": "js/xml-bomb",
"shortDescription": {
"text": "XML internal entity expansion"
},
"fullDescription": {
"text": "Parsing user input as an XML document with arbitrary internal entity expansion is vulnerable to denial-of-service attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-776",
"external/cwe/cwe-400"
],
"description": "Parsing user input as an XML document with arbitrary internal\n entity expansion is vulnerable to denial-of-service attacks.",
"id": "js/xml-bomb",
"kind": "path-problem",
"name": "XML internal entity expansion",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/host-header-forgery-in-email-generation",
"name": "js/host-header-forgery-in-email-generation",
"shortDescription": {
"text": "Host header poisoning in email generation"
},
"fullDescription": {
"text": "Using the HTTP Host header to construct a link in an email can facilitate phishing attacks and leak password reset tokens."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-640"
],
"description": "Using the HTTP Host header to construct a link in an email can facilitate phishing\n attacks and leak password reset tokens.",
"id": "js/host-header-forgery-in-email-generation",
"kind": "path-problem",
"name": "Host header poisoning in email generation",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/path-injection",
"name": "js/path-injection",
"shortDescription": {
"text": "Uncontrolled data used in path expression"
},
"fullDescription": {
"text": "Accessing paths influenced by users can allow an attacker to access unexpected resources."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-022",
"external/cwe/cwe-023",
"external/cwe/cwe-036",
"external/cwe/cwe-073",
"external/cwe/cwe-099"
],
"description": "Accessing paths influenced by users can allow an attacker to access\n unexpected resources.",
"id": "js/path-injection",
"kind": "path-problem",
"name": "Uncontrolled data used in path expression",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/zipslip",
"name": "js/zipslip",
"shortDescription": {
"text": "Arbitrary file write during zip extraction (\"Zip Slip\")"
},
"fullDescription": {
"text": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-022"
],
"description": "Extracting files from a malicious zip archive without validating that the\n destination file path is within the destination directory can cause files outside\n the destination directory to be overwritten.",
"id": "js/zipslip",
"kind": "path-problem",
"name": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/prototype-pollution-utility",
"name": "js/prototype-pollution-utility",
"shortDescription": {
"text": "Prototype-polluting function"
},
"fullDescription": {
"text": "Functions recursively assigning properties on objects may be the cause of accidental modification of a built-in prototype object."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-078",
"external/cwe/cwe-079",
"external/cwe/cwe-094",
"external/cwe/cwe-400",
"external/cwe/cwe-915"
],
"description": "Functions recursively assigning properties on objects may be\n the cause of accidental modification of a built-in prototype object.",
"id": "js/prototype-pollution-utility",
"kind": "path-problem",
"name": "Prototype-polluting function",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/prototype-polluting-assignment",
"name": "js/prototype-polluting-assignment",
"shortDescription": {
"text": "Prototype-polluting assignment"
},
"fullDescription": {
"text": "Modifying an object obtained via a user-controlled property name may lead to accidental mutation of the built-in Object prototype, and possibly escalate to remote code execution or cross-site scripting."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-078",
"external/cwe/cwe-079",
"external/cwe/cwe-094",
"external/cwe/cwe-400",
"external/cwe/cwe-915"
],
"description": "Modifying an object obtained via a user-controlled property name may\n lead to accidental mutation of the built-in Object prototype,\n and possibly escalate to remote code execution or cross-site scripting.",
"id": "js/prototype-polluting-assignment",
"kind": "path-problem",
"name": "Prototype-polluting assignment",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/prototype-pollution",
"name": "js/prototype-pollution",
"shortDescription": {
"text": "Prototype-polluting merge call"
},
"fullDescription": {
"text": "Recursively merging a user-controlled object into another object can allow an attacker to modify the built-in Object prototype, and possibly escalate to remote code execution or cross-site scripting."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-078",
"external/cwe/cwe-079",
"external/cwe/cwe-094",
"external/cwe/cwe-400",
"external/cwe/cwe-915"
],
"description": "Recursively merging a user-controlled object into another object\n can allow an attacker to modify the built-in Object prototype,\n and possibly escalate to remote code execution or cross-site scripting.",
"id": "js/prototype-pollution",
"kind": "path-problem",
"name": "Prototype-polluting merge call",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/loop-bound-injection",
"name": "js/loop-bound-injection",
"shortDescription": {
"text": "Loop bound injection"
},
"fullDescription": {
"text": "Iterating over an object with a user-controlled .length property can cause indefinite looping."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-834"
],
"description": "Iterating over an object with a user-controlled .length\n property can cause indefinite looping.",
"id": "js/loop-bound-injection",
"kind": "path-problem",
"name": "Loop bound injection",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/xpath-injection",
"name": "js/xpath-injection",
"shortDescription": {
"text": "XPath injection"
},
"fullDescription": {
"text": "Building an XPath expression from user-controlled sources is vulnerable to insertion of malicious code by the user."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-643"
],
"description": "Building an XPath expression from user-controlled sources is vulnerable to insertion of\n malicious code by the user.",
"id": "js/xpath-injection",
"kind": "path-problem",
"name": "XPath injection",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/server-side-unvalidated-url-redirection",
"name": "js/server-side-unvalidated-url-redirection",
"shortDescription": {
"text": "Server-side URL redirect"
},
"fullDescription": {
"text": "Server-side URL redirection based on unvalidated user input may cause redirection to malicious web sites."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-601"
],
"description": "Server-side URL redirection based on unvalidated user input\n may cause redirection to malicious web sites.",
"id": "js/server-side-unvalidated-url-redirection",
"kind": "path-problem",
"name": "Server-side URL redirect",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/client-side-unvalidated-url-redirection",
"name": "js/client-side-unvalidated-url-redirection",
"shortDescription": {
"text": "Client-side URL redirect"
},
"fullDescription": {
"text": "Client-side URL redirection based on unvalidated user input may cause redirection to malicious web sites."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-079",
"external/cwe/cwe-116",
"external/cwe/cwe-601"
],
"description": "Client-side URL redirection based on unvalidated user input\n may cause redirection to malicious web sites.",
"id": "js/client-side-unvalidated-url-redirection",
"kind": "path-problem",
"name": "Client-side URL redirect",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/weak-cryptographic-algorithm",
"name": "js/weak-cryptographic-algorithm",
"shortDescription": {
"text": "Use of a broken or weak cryptographic algorithm"
},
"fullDescription": {
"text": "Using broken or weak cryptographic algorithms can compromise security."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-327"
],
"description": "Using broken or weak cryptographic algorithms can compromise security.",
"id": "js/weak-cryptographic-algorithm",
"kind": "path-problem",
"name": "Use of a broken or weak cryptographic algorithm",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/biased-cryptographic-random",
"name": "js/biased-cryptographic-random",
"shortDescription": {
"text": "Creating biased random numbers from a cryptographically secure source."
},
"fullDescription": {
"text": "Some mathematical operations on random numbers can cause bias in the results and compromise security."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-327"
],
"description": "Some mathematical operations on random numbers can cause bias in\n the results and compromise security.",
"id": "js/biased-cryptographic-random",
"kind": "problem",
"name": "Creating biased random numbers from a cryptographically secure source.",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/missing-token-validation",
"name": "js/missing-token-validation",
"shortDescription": {
"text": "Missing CSRF middleware"
},
"fullDescription": {
"text": "Using cookies without CSRF protection may allow malicious websites to submit requests on behalf of the user."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-352"
],
"description": "Using cookies without CSRF protection may allow malicious websites to\n submit requests on behalf of the user.",
"id": "js/missing-token-validation",
"kind": "problem",
"name": "Missing CSRF middleware",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/tainted-format-string",
"name": "js/tainted-format-string",
"shortDescription": {
"text": "Use of externally-controlled format string"
},
"fullDescription": {
"text": "Using external input in format strings can lead to garbled output."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-134"
],
"description": "Using external input in format strings can lead to garbled output.",
"id": "js/tainted-format-string",
"kind": "path-problem",
"name": "Use of externally-controlled format string",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/exposure-of-private-files",
"name": "js/exposure-of-private-files",
"shortDescription": {
"text": "Exposure of private files"
},
"fullDescription": {
"text": "Exposing a node_modules folder, or the project folder to the public, can cause exposure of private information."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-200"
],
"description": "Exposing a node_modules folder, or the project folder to the public, can cause exposure\n of private information.",
"id": "js/exposure-of-private-files",
"kind": "problem",
"name": "Exposure of private files",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/incomplete-hostname-regexp",
"name": "js/incomplete-hostname-regexp",
"shortDescription": {
"text": "Incomplete regular expression for hostnames"
},
"fullDescription": {
"text": "Matching a URL or hostname against a regular expression that contains an unescaped dot as part of the hostname might match more hostnames than expected."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"correctness",
"security",
"external/cwe/cwe-020"
],
"description": "Matching a URL or hostname against a regular expression that contains an unescaped dot as part of the hostname might match more hostnames than expected.",
"id": "js/incomplete-hostname-regexp",
"kind": "problem",
"name": "Incomplete regular expression for hostnames",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/incorrect-suffix-check",
"name": "js/incorrect-suffix-check",
"shortDescription": {
"text": "Incorrect suffix check"
},
"fullDescription": {
"text": "Using indexOf to implement endsWith functionality is error-prone if the -1 case is not explicitly handled."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"correctness",
"external/cwe/cwe-020"
],
"description": "Using indexOf to implement endsWith functionality is error-prone if the -1 case is not explicitly handled.",
"id": "js/incorrect-suffix-check",
"kind": "problem",
"name": "Incorrect suffix check",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/useless-regexp-character-escape",
"name": "js/useless-regexp-character-escape",
"shortDescription": {
"text": "Useless regular-expression character escape"
},
"fullDescription": {
"text": "Prepending a backslash to an ordinary character in a string does not have any effect, and may make regular expressions constructed from this string behave unexpectedly."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"correctness",
"security",
"external/cwe/cwe-020"
],
"description": "Prepending a backslash to an ordinary character in a string\n does not have any effect, and may make regular expressions constructed from this string\n behave unexpectedly.",
"id": "js/useless-regexp-character-escape",
"kind": "problem",
"name": "Useless regular-expression character escape",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/incomplete-url-scheme-check",
"name": "js/incomplete-url-scheme-check",
"shortDescription": {
"text": "Incomplete URL scheme check"
},
"fullDescription": {
"text": "Checking for the \"javascript:\" URL scheme without also checking for \"vbscript:\" and \"data:\" suggests a logic error or even a security vulnerability."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"correctness",
"external/cwe/cwe-020"
],
"description": "Checking for the \"javascript:\" URL scheme without also checking for \"vbscript:\"\n and \"data:\" suggests a logic error or even a security vulnerability.",
"id": "js/incomplete-url-scheme-check",
"kind": "problem",
"name": "Incomplete URL scheme check",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/incomplete-url-substring-sanitization",
"name": "js/incomplete-url-substring-sanitization",
"shortDescription": {
"text": "Incomplete URL substring sanitization"
},
"fullDescription": {
"text": "Security checks on the substrings of an unparsed URL are often vulnerable to bypassing."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"correctness",
"security",
"external/cwe/cwe-020"
],
"description": "Security checks on the substrings of an unparsed URL are often vulnerable to bypassing.",
"id": "js/incomplete-url-substring-sanitization",
"kind": "problem",
"name": "Incomplete URL substring sanitization",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/cross-window-information-leak",
"name": "js/cross-window-information-leak",
"shortDescription": {
"text": "Cross-window communication with unrestricted target origin"
},
"fullDescription": {
"text": "When sending sensitive information to another window using `postMessage`, the origin of the target window should be restricted to avoid unintentional information leaks."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-201",
"external/cwe/cwe-359"
],
"description": "When sending sensitive information to another window using `postMessage`,\n the origin of the target window should be restricted to avoid unintentional\n information leaks.",
"id": "js/cross-window-information-leak",
"kind": "path-problem",
"name": "Cross-window communication with unrestricted target origin",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/template-object-injection",
"name": "js/template-object-injection",
"shortDescription": {
"text": "Template Object Injection"
},
"fullDescription": {
"text": "Instantiating a template using a user-controlled object is vulnerable to local file read and potential remote code execution."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-073",
"external/cwe/cwe-094"
],
"description": "Instantiating a template using a user-controlled object is vulnerable to local file read and potential remote code execution.",
"id": "js/template-object-injection",
"kind": "path-problem",
"name": "Template Object Injection",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/clear-text-logging",
"name": "js/clear-text-logging",
"shortDescription": {
"text": "Clear-text logging of sensitive information"
},
"fullDescription": {
"text": "Logging sensitive information without encryption or hashing can expose it to an attacker."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-312",
"external/cwe/cwe-315",
"external/cwe/cwe-359"
],
"description": "Logging sensitive information without encryption or hashing can\n expose it to an attacker.",
"id": "js/clear-text-logging",
"kind": "path-problem",
"name": "Clear-text logging of sensitive information",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/build-artifact-leak",
"name": "js/build-artifact-leak",
"shortDescription": {
"text": "Storage of sensitive information in build artifact"
},
"fullDescription": {
"text": "Including sensitive information in a build artifact can expose it to an attacker."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-312",
"external/cwe/cwe-315",
"external/cwe/cwe-359"
],
"description": "Including sensitive information in a build artifact can\n expose it to an attacker.",
"id": "js/build-artifact-leak",
"kind": "path-problem",
"name": "Storage of sensitive information in build artifact",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/clear-text-storage-of-sensitive-data",
"name": "js/clear-text-storage-of-sensitive-data",
"shortDescription": {
"text": "Clear text storage of sensitive information"
},
"fullDescription": {
"text": "Sensitive information stored without encryption or hashing can expose it to an attacker."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-312",
"external/cwe/cwe-315",
"external/cwe/cwe-359"
],
"description": "Sensitive information stored without encryption or hashing can expose it to an\n attacker.",
"id": "js/clear-text-storage-of-sensitive-data",
"kind": "path-problem",
"name": "Clear text storage of sensitive information",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/missing-rate-limiting",
"name": "js/missing-rate-limiting",
"shortDescription": {
"text": "Missing rate limiting"
},
"fullDescription": {
"text": "An HTTP request handler that performs expensive operations without restricting the rate at which operations can be carried out is vulnerable to denial-of-service attacks."
},
"defaultConfiguration": {
"enabled": true,
"level": "error"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-770",
"external/cwe/cwe-307",
"external/cwe/cwe-400"
],
"description": "An HTTP request handler that performs expensive operations without\n restricting the rate at which operations can be carried out is vulnerable\n to denial-of-service attacks.",
"id": "js/missing-rate-limiting",
"kind": "problem",
"name": "Missing rate limiting",
"precision": "high",
"problem.severity": "error"
}
},
{
"id": "js/insecure-randomness",
"name": "js/insecure-randomness",
"shortDescription": {
"text": "Insecure randomness"
},
"fullDescription": {
"text": "Using a cryptographically weak pseudo-random number generator to generate a security-sensitive value may allow an attacker to predict what value will be generated."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {
"tags": [
"security",
"external/cwe/cwe-338"
],
"description": "Using a cryptographically weak pseudo-random number generator to generate a\n security-sensitive value may allow an attacker to predict what value will\n be generated.",
"id": "js/insecure-randomness",
"kind": "path-problem",
"name": "Insecure randomness",
"precision": "high",
"problem.severity": "warning"
}
},
{
"id": "js/shell-command-injection-from-environment",
"name": "js/shell-command-injection-from-environment",
"shortDescription": {
"text": "Shell command built from environment values"
},
"fullDescription": {
"text": "Building a shell command string with values from the enclosing environment may cause subtle bugs or vulnerabilities."
},
"defaultConfiguration": {
"enabled": true,
"level": "warning"
},
"properties": {