-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.sarif
1387 lines (1387 loc) · 50 KB
/
report.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
{
"version" : "2.1.0",
"runs" : [ {
"tool" : {
"driver" : {
"name" : "Positive Technologies Application Inspector",
"organization" : "Positive Technologies",
"informationUri" : "https://www.ptsecurity.com/ww-en/products/ai/",
"rules" : [ {
"id" : "Deserialization of Untrusted Data",
"name" : "Deserialization of Untrusted Data",
"fullDescription" : {
"text" : "An application can serialize data for storage and processing. If untrusted data is unserialized, an attacker can create objects of arbitrary classes and modify application logic."
},
"properties" : {
"tags" : [ "vulnerability" ]
}
}, {
"id" : "php.ini session.save_path",
"name" : "Session.save_path parameter",
"fullDescription" : {
"text" : "The parameter defines an argument that is sent to saving process. In case default files is used, the argument includes a folder path aimed to create session files."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "DC-FP-CVE-2021-34551",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2021-34551)",
"fullDescription" : {
"text" : "PHPMailer before 6.5.0 on Windows allows remote code execution if lang_path is untrusted data and has a UNC pathname."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "php.ini assert.active",
"name" : "Assert.active parameter",
"fullDescription" : {
"text" : "Assert function allows you to execute arbitrary code. We recommend you to disable code execution via assert to prevent an unauthorized access."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini allow_url_fopen",
"name" : "Allow_url_fopen parameter",
"fullDescription" : {
"text" : "The parameter is responsible for URL wrappers support that allow you to operate with URL objects as common files. Default wrappers make it possible to operate with remote files via FTP or HTTP."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "DC-FP-CVE-2018-19296",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2018-19296)",
"fullDescription" : {
"text" : "PHPMailer before 5.2.27 and 6.x before 6.0.6 is vulnerable to an object injection attack."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "96",
"name" : "Hardcoded Password",
"fullDescription" : {
"text" : "Hardcoded or empty passwords could lead to system compromising that is hard to eliminate."
},
"properties" : {
"tags" : [ "weakness" ]
}
}, {
"id" : "DC-FP-CVE-2020-13625",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2020-13625)",
"fullDescription" : {
"text" : "PHPMailer before 6.1.6 contains an output escaping bug when the name of a file attachment contains a double quote character. This can result in the file type being misinterpreted by the receiver or any mail relay processing the message."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "php.ini display_errors",
"name" : "Display_errors parameter",
"fullDescription" : {
"text" : "The parameter defines if errors are displayed together with common output, or hidden."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini session.cookie_secure",
"name" : "Session.cookie_secure directive",
"fullDescription" : {
"text" : "The directive defines if cookies are sent via secure connections only."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini session.cookie_httponly",
"name" : "Session.cookie_httponly parameter",
"fullDescription" : {
"text" : "The setting defines if cookies is accessible via HTTP only. This means that cookies is unavailable for script languages like JavaScript."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini max_input_time",
"name" : "Max_input_time directive",
"fullDescription" : {
"text" : "The directive defines the maximum time (in seconds) given for a script to process input data sent in requests like POST or GET. This time starts as a server receives all the data and ends as a script is run."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini disable_functions",
"name" : "Disable_functions parameter",
"fullDescription" : {
"text" : "The parameter allows you to disable certain functions because of security reasons. We recommend you to specify the following functions as the parameter value: popen, exec, system, passthru, proc_open, shell_exec, apache_setenv, putenv, dl, expect_popen, pcntl_exec."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini log_errors",
"name" : "Log_errors parameter",
"fullDescription" : {
"text" : "Defines a log to store error messages."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini session.use_strict_mode",
"name" : "Session.use_strict_mode directive",
"fullDescription" : {
"text" : "The directive defines if a strong mode is used for session IDs. If this mode is enabled, the module does not allow not-initialized sessions IDs."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "Cross-site Scripting",
"name" : "Cross-Site Scripting",
"fullDescription" : {
"text" : "The application does not sufficiently validate user input that allows attackers to to execute arbitrary code in the context of victim's browser bypassing the Same Origin Policy (SOP)."
},
"properties" : {
"tags" : [ "vulnerability" ]
}
}, {
"id" : "php.ini open_basedir",
"name" : "Open_basedir parameter",
"fullDescription" : {
"text" : "The parameter defines a list of folders which files can be opened by PHP. In case a script tries to open a file, for example via fopen () or gzopen (), the system checks file location. If the file is located outside the specified folder, PHP rejects file open."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini enable_dl",
"name" : "Enable_dl parameter",
"fullDescription" : {
"text" : "The parameter defines if it is possible to dynamically load extensions via dl() function. You can enable or disable dynamic loading for every virtual server or folder."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini expose_php",
"name" : "Expose_php parameter",
"fullDescription" : {
"text" : "The parameter defines if it is possible to detect PHP on a server, including PHP version sent in HTTP header (for example, X-Powered-By: PHP/5.3.7). Up to PHP 5.5.0 it also includes logo IDs, so if added to a link on a PHP site, logo is displayed (for example, http://www.php.net/?=PHPE9568F34-D428-11d2-A769-00AA001ACF42)."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "DC-FP-CVE-2016-10045",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2016-10045)",
"fullDescription" : {
"text" : "The isMail transport in PHPMailer before 5.2.20 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code by leveraging improper interaction between the escapeshellarg function and internal escaping performed in the mail function in PHP. NOTE: this vulnerability exists because of an incorrect fix for CVE-2016-10033."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "Arbitrary File Deletion",
"name" : "Arbitrary File Deletion",
"fullDescription" : {
"text" : "A web application can use user input to generate a path to a deleting file. Exploiting the vulnerability, an attacker can delete specific files, for example script source code or configuration file."
},
"properties" : {
"tags" : [ "vulnerability" ]
}
}, {
"id" : "DC-FP-CVE-2017-5223",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2017-5223)",
"fullDescription" : {
"text" : "An issue was discovered in PHPMailer before 5.2.22. PHPMailer's msgHTML method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to convert relative image URLs into attachments using a script-provided base directory. If no base directory is provided, it resolves to /, meaning that relative image URLs get treated as absolute local file paths and added as attachments. To form a remote vulnerability, the msgHTML method must be called, passed an unfiltered, user-supplied HTML document, and must not set a base directory."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "php.ini magic_quotes_gpc",
"name" : "Magic_quotes_gpc parameter",
"fullDescription" : {
"text" : "The parameter defines magic_quotes mode for operations Get, Post, Cookie. If magic_quotes is enabled, all single and double quotes, backslash and NUL are automatically escaped by backslash."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "php.ini cgi.fix_pathinfo",
"name" : "Cgi.fix_pathinfo parameter",
"fullDescription" : {
"text" : "This option provides PATH_INFO/PATH_TRANSLATED correct path support in CGI. If the value is 1, PHP CGI modifies its path according to the specification, that leads to possible code execution."
},
"properties" : {
"tags" : [ "configuration" ]
}
}, {
"id" : "DC-FP-CVE-2016-10033",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2016-10033)",
"fullDescription" : {
"text" : "The mailSend function in the isMail transport in PHPMailer before 5.2.18 might allow remote attackers to pass extra parameters to the mail command and consequently execute arbitrary code via a \\\" (backslash double quote) in a crafted Sender property."
},
"properties" : {
"tags" : [ "sca" ]
}
}, {
"id" : "DC-FP-CVE-2021-3603",
"name" : "Vulnerable component phpmailer 5.2.17 (CVE-2021-3603)",
"fullDescription" : {
"text" : "PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the $patternselect parameter to validateAddress() is set to 'php' (the default, defined by PHPMailer::$validator), and the global namespace contains a function called php, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names."
},
"properties" : {
"tags" : [ "sca" ]
}
} ]
}
},
"results" : [ {
"ruleId" : "96",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Hardcoded Password"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 2,
"startColumn" : 1,
"endLine" : 2,
"endColumn" : 1,
"snippet" : {
"text" : "$password = 'P@ssw0rd';"
}
}
}
} ],
"properties" : {
"tags" : [ "WEAKNESS" ]
}
}, {
"ruleId" : "php.ini assert.active",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Assert.active parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "assert.active = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini max_input_time",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Max_input_time directive"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "max_input_time = 30"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini open_basedir",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Open_basedir parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "open_basedir = some/path"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini session.cookie_httponly",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Session.cookie_httponly parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "session.cookie_httponly = 1"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini session.save_path",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Session.save_path parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "session.save_path = some/path"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini session.use_strict_mode",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Session.use_strict_mode directive"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "session.use_strict_mode = 1"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini disable_functions",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Disable_functions parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "disable_functions = popen, exec, system, passthru, proc_open, shell_exec, apache_setenv, putenv, dl, expect_popen, pcntl_exec"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "Cross-site Scripting",
"kind" : "open",
"message" : {
"text" : "Cross-Site Scripting"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 12,
"startColumn" : 1,
"endLine" : 12,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
}
} ],
"codeFlows" : [ {
"threadFlows" : [ {
"locations" : [ {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 1,
"startColumn" : 1,
"endLine" : 1,
"endColumn" : 1,
"snippet" : {
"text" : "<?php"
}
}
},
"message" : {
"text" : "Entry point"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 12,
"startColumn" : 1,
"endLine" : 12,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
},
"message" : {
"text" : "Taint data entry"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 12,
"startColumn" : 1,
"endLine" : 12,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
},
"message" : {
"text" : "Exit point"
}
}
} ]
} ]
} ],
"properties" : {
"tags" : [ "VULNERABILITY" ]
}
}, {
"ruleId" : "php.ini session.cookie_secure",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Session.cookie_secure directive"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "session.cookie_secure = 1"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini magic_quotes_gpc",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Magic_quotes_gpc parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "magic_quotes_gpc = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini log_errors",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Log_errors parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "log_errors = 1"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini allow_url_fopen",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Allow_url_fopen parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "allow_url_fopen = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini cgi.fix_pathinfo",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Cgi.fix_pathinfo parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "cgi.fix_pathinfo = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini display_errors",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Display_errors parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "display_errors = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini enable_dl",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Enable_dl parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "enable_dl = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "php.ini expose_php",
"kind" : "open",
"level" : "note",
"message" : {
"text" : "Expose_php parameter"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "php.ini",
"uriBaseId" : "SRCROOT"
},
"region" : {
"snippet" : {
"text" : "expose_php = 0"
}
}
}
} ],
"properties" : {
"tags" : [ "CONFIGURATION" ]
}
}, {
"ruleId" : "Cross-site Scripting",
"kind" : "open",
"message" : {
"text" : "Cross-Site Scripting"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "xss.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 2,
"startColumn" : 1,
"endLine" : 2,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
}
} ],
"codeFlows" : [ {
"threadFlows" : [ {
"locations" : [ {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "xss.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 1,
"startColumn" : 1,
"endLine" : 1,
"endColumn" : 1,
"snippet" : {
"text" : "<?php"
}
}
},
"message" : {
"text" : "Entry point"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "xss.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 2,
"startColumn" : 1,
"endLine" : 2,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
},
"message" : {
"text" : "Taint data entry"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "xss.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 2,
"startColumn" : 1,
"endLine" : 2,
"endColumn" : 1,
"snippet" : {
"text" : "echo $_GET['a'];"
}
}
},
"message" : {
"text" : "Exit point"
}
}
} ]
} ]
} ],
"properties" : {
"tags" : [ "VULNERABILITY" ]
}
}, {
"ruleId" : "Deserialization of Untrusted Data",
"kind" : "open",
"level" : "error",
"message" : {
"text" : "Deserialization of Untrusted Data"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 9,
"startColumn" : 1,
"endLine" : 9,
"endColumn" : 1,
"snippet" : {
"text" : "unlink($file);"
}
}
}
} ],
"codeFlows" : [ {
"threadFlows" : [ {
"locations" : [ {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 1,
"startColumn" : 1,
"endLine" : 1,
"endColumn" : 1,
"snippet" : {
"text" : "<?php"
}
}
},
"message" : {
"text" : "Entry point"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 14,
"startColumn" : 1,
"endLine" : 14,
"endColumn" : 1,
"snippet" : {
"text" : "AFD($_GET['file']);"
}
}
},
"message" : {
"text" : "Taint data entry"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 9,
"startColumn" : 1,
"endLine" : 9,
"endColumn" : 1,
"snippet" : {
"text" : "unlink($file);"
}
}
},
"message" : {
"text" : "Exit point"
}
}
} ]
} ]
} ],
"properties" : {
"tags" : [ "VULNERABILITY" ]
}
}, {
"ruleId" : "Arbitrary File Deletion",
"kind" : "open",
"level" : "error",
"message" : {
"text" : "Arbitrary File Deletion"
},
"locations" : [ {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 9,
"startColumn" : 1,
"endLine" : 9,
"endColumn" : 1,
"snippet" : {
"text" : "unlink($file);"
}
}
}
} ],
"codeFlows" : [ {
"threadFlows" : [ {
"locations" : [ {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 1,
"startColumn" : 1,
"endLine" : 1,
"endColumn" : 1,
"snippet" : {
"text" : "<?php"
}
}
},
"message" : {
"text" : "Entry point"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 14,
"startColumn" : 1,
"endLine" : 14,
"endColumn" : 1,
"snippet" : {
"text" : "AFD($_GET['file']);"
}
}
},
"message" : {
"text" : "Taint data entry"
}
}
}, {
"location" : {
"physicalLocation" : {
"artifactLocation" : {
"uri" : "misc.php",
"uriBaseId" : "SRCROOT"
},
"region" : {
"startLine" : 9,
"startColumn" : 1,
"endLine" : 9,
"endColumn" : 1,
"snippet" : {
"text" : "unlink($file);"
}
}
},
"message" : {
"text" : "Exit point"
}
}
} ]
} ]
} ],
"properties" : {
"tags" : [ "VULNERABILITY" ]
}
}, {
"ruleId" : "96",
"kind" : "open",
"level" : "note",
"message" : {