forked from wasptree/Veracode-pipeline-scan-action
-
Notifications
You must be signed in to change notification settings - Fork 23
/
results.json
5272 lines (5272 loc) · 400 KB
/
results.json
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
{
"_links": {
"root": {
"href": "/"
},
"self": {
"href": "/scans/5574b5d1-1e17-451b-9975-dc130ab98c97/findings"
},
"help": {
"href": "https://help.veracode.com/reader/tS9CaFwL4_lbIEWWomsJoA/ovfZGgu96UINQxIuTqRDwg"
}
},
"scan_id": "5574b5d1-1e17-451b-9975-dc130ab98c97",
"scan_status": "SUCCESS",
"message": "Scan successful. Results size: 347884 bytes",
"modules": [
"verademo.war",
"JS files within verademo.war"
],
"modules_count": 2,
"findings": [
{
"title": "eval",
"issue_id": 1003,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Directives in Dynamically Evaluated Code (\u0027Eval Injection\u0027)",
"cwe_id": "95",
"display_text": "\u003cspan\u003eThis call to eval() contains untrusted input or potentially untrusted data. If this input could be modified by an attacker, arbitrary JS code could be executed. \u003c/span\u003e \u003cspan\u003eValidate all untrusted and untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. In general, avoid executing code derived from untrusted input.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/95.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "WEB-INF/views/login.jsp",
"line": 39,
"function_name": "!main",
"qualified_function_name": "!main",
"function_prototype": "!main() : void",
"scope": "UNKNOWN"
}
},
"flaw_match": {
"procedure_hash": "3915450586",
"prototype_hash": "211846691",
"flaw_hash": "3524018929",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "4199849900",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "489697663",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/95.html"
},
{
"title": "jQueryResult.attr",
"issue_id": 1000,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
"cwe_id": "80",
"display_text": "\u003cspan\u003eThis call to jQueryResult.attr() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with untrusted input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim\u0027s browser. XSS vulnerabilities are commonly exploited to steal or manipulate cookies, modify presentation of content, and compromise confidential information, with new attack vectors being discovered on a regular basis. \u003c/span\u003e \u003cspan\u003eUse contextual escaping on all untrusted data before using it to construct any portion of an HTTP response. The escaping method should be chosen based on the specific use case of the untrusted data, otherwise it may not protect fully against the attack. For example, if the data is being written to the body of an HTML page, use HTML entity escaping; if the data is being written to an attribute, use attribute escaping; etc. Both the OWASP Java Encoder library and the Microsoft AntiXSS library provide contextual escaping methods. For more details on contextual escaping, see https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md. In addition, as a best practice, always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href\u003d\"https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/IiF_rOE79ANbwnZwreSPGA\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "WEB-INF/views/profile.jsp",
"line": 248,
"function_name": "lambda_3",
"qualified_function_name": "lambda_3",
"function_prototype": "lambda_3(: any, : any, : any, ...) : any",
"scope": "UNKNOWN"
}
},
"flaw_match": {
"procedure_hash": "460510356",
"prototype_hash": "3760276193",
"flaw_hash": "3224440831",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "2948331053",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "80696732",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/80.html"
},
{
"title": "jQueryResult.append",
"issue_id": 1002,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
"cwe_id": "80",
"display_text": "\u003cspan\u003eThis call to jQueryResult.append() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with untrusted input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim\u0027s browser. XSS vulnerabilities are commonly exploited to steal or manipulate cookies, modify presentation of content, and compromise confidential information, with new attack vectors being discovered on a regular basis. \u003c/span\u003e \u003cspan\u003eUse contextual escaping on all untrusted data before using it to construct any portion of an HTTP response. The escaping method should be chosen based on the specific use case of the untrusted data, otherwise it may not protect fully against the attack. For example, if the data is being written to the body of an HTML page, use HTML entity escaping; if the data is being written to an attribute, use attribute escaping; etc. Both the OWASP Java Encoder library and the Microsoft AntiXSS library provide contextual escaping methods. For more details on contextual escaping, see https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md. In addition, as a best practice, always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href\u003d\"https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/IiF_rOE79ANbwnZwreSPGA\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "WEB-INF/views/profile.jsp",
"line": 253,
"function_name": "lambda_2",
"qualified_function_name": "lambda_2",
"function_prototype": "lambda_2(: any, : any, ...) : any",
"scope": "UNKNOWN"
}
},
"flaw_match": {
"procedure_hash": "967856201",
"prototype_hash": "2659999086",
"flaw_hash": "3103718343",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "2323626286",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "438364638",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/80.html"
},
{
"title": "jQueryResult.append",
"issue_id": 1001,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
"cwe_id": "80",
"display_text": "\u003cspan\u003eThis call to jQueryResult.append() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with untrusted input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim\u0027s browser. XSS vulnerabilities are commonly exploited to steal or manipulate cookies, modify presentation of content, and compromise confidential information, with new attack vectors being discovered on a regular basis. \u003c/span\u003e \u003cspan\u003eUse contextual escaping on all untrusted data before using it to construct any portion of an HTTP response. The escaping method should be chosen based on the specific use case of the untrusted data, otherwise it may not protect fully against the attack. For example, if the data is being written to the body of an HTML page, use HTML entity escaping; if the data is being written to an attribute, use attribute escaping; etc. Both the OWASP Java Encoder library and the Microsoft AntiXSS library provide contextual escaping methods. For more details on contextual escaping, see https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.md. In addition, as a best practice, always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href\u003d\"https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/IiF_rOE79ANbwnZwreSPGA\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "WEB-INF/views/feed.jsp",
"line": 175,
"function_name": "lambda_1",
"qualified_function_name": "lambda_1",
"function_prototype": "lambda_1(: any, : any, ...) : any",
"scope": "UNKNOWN"
}
},
"flaw_match": {
"procedure_hash": "4141575645",
"prototype_hash": "1826537584",
"flaw_hash": "3132762339",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "3"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/80.html"
},
{
"title": "java.lang.Runtime.exec",
"issue_id": 1244,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
"cwe_id": "78",
"display_text": "\u003cspan\u003eThis call to java.lang.Runtime.exec() contains a command injection flaw. The argument to the function is constructed using untrusted input. If an attacker is allowed to specify all or part of the command, it may be possible to execute commands on the server with the privileges of the executing process. The level of exposure depends on the effectiveness of input validation routines, if any. The first argument to exec() contains tainted data. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eValidate all untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. When using blocklists, be sure that the sanitizing routine performs a sufficient number of iterations to remove all instances of disallowed characters. Most APIs that execute system commands also have a \"safe\" version of the method that takes an array of strings as input rather than a single string, which protects against some forms of command injection.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/78.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/Command_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/ToolsController.java",
"line": 56,
"function_name": "ping",
"qualified_function_name": "com.veracode.verademo.controller.ToolsController.ping",
"function_prototype": "java.lang.String ping(java.lang.String)",
"scope": "com.veracode.verademo.controller.ToolsController"
}
},
"flaw_match": {
"procedure_hash": "3149804519",
"prototype_hash": "2923252499",
"flaw_hash": "3051621651",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "221330682",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1487712924",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/78.html"
},
{
"title": "java.lang.Runtime.exec",
"issue_id": 1245,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
"cwe_id": "78",
"display_text": "\u003cspan\u003eThis call to java.lang.Runtime.exec() contains a command injection flaw. The argument to the function is constructed using untrusted input. If an attacker is allowed to specify all or part of the command, it may be possible to execute commands on the server with the privileges of the executing process. The level of exposure depends on the effectiveness of input validation routines, if any. The first argument to exec() contains tainted data. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eValidate all untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. When using blocklists, be sure that the sanitizing routine performs a sufficient number of iterations to remove all instances of disallowed characters. Most APIs that execute system commands also have a \"safe\" version of the method that takes an array of strings as input rather than a single string, which protects against some forms of command injection.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/78.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/Command_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/ToolsController.java",
"line": 59,
"function_name": "ping",
"qualified_function_name": "com.veracode.verademo.controller.ToolsController.ping",
"function_prototype": "java.lang.String ping(java.lang.String)",
"scope": "com.veracode.verademo.controller.ToolsController"
}
},
"flaw_match": {
"procedure_hash": "3149804519",
"prototype_hash": "2923252499",
"flaw_hash": "1314945025",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "3320331067",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1835631409",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/78.html"
},
{
"title": "java.lang.Runtime.exec",
"issue_id": 1246,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
"cwe_id": "78",
"display_text": "\u003cspan\u003eThis call to java.lang.Runtime.exec() contains a command injection flaw. The argument to the function is constructed using untrusted input. If an attacker is allowed to specify all or part of the command, it may be possible to execute commands on the server with the privileges of the executing process. The level of exposure depends on the effectiveness of input validation routines, if any. The first argument to exec() contains tainted data from the variables (new String\\[...\\]). The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eValidate all untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. When using blocklists, be sure that the sanitizing routine performs a sufficient number of iterations to remove all instances of disallowed characters. Most APIs that execute system commands also have a \"safe\" version of the method that takes an array of strings as input rather than a single string, which protects against some forms of command injection.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/78.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/Command_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/ToolsController.java",
"line": 91,
"function_name": "fortune",
"qualified_function_name": "com.veracode.verademo.controller.ToolsController.fortune",
"function_prototype": "java.lang.String fortune(java.lang.String)",
"scope": "com.veracode.verademo.controller.ToolsController"
}
},
"flaw_match": {
"procedure_hash": "2161030689",
"prototype_hash": "3827778930",
"flaw_hash": "3753823106",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "4165693487",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "3322588175",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/78.html"
},
{
"title": "java.lang.Runtime.exec",
"issue_id": 1243,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)",
"cwe_id": "78",
"display_text": "\u003cspan\u003eThis call to java.lang.Runtime.exec() contains a command injection flaw. The argument to the function is constructed using untrusted input. If an attacker is allowed to specify all or part of the command, it may be possible to execute commands on the server with the privileges of the executing process. The level of exposure depends on the effectiveness of input validation routines, if any. The first argument to exec() contains tainted data from the variable cmd. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eValidate all untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. When using blocklists, be sure that the sanitizing routine performs a sufficient number of iterations to remove all instances of disallowed characters. Most APIs that execute system commands also have a \"safe\" version of the method that takes an array of strings as input rather than a single string, which protects against some forms of command injection.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/78.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/Command_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/ToolsController.java",
"line": 94,
"function_name": "fortune",
"qualified_function_name": "com.veracode.verademo.controller.ToolsController.fortune",
"function_prototype": "java.lang.String fortune(java.lang.String)",
"scope": "com.veracode.verademo.controller.ToolsController"
}
},
"flaw_match": {
"procedure_hash": "2161030689",
"prototype_hash": "3827778930",
"flaw_hash": "3707028537",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "2620704574",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/78.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1015,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sqlQuery. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 166,
"function_name": "processLogin",
"qualified_function_name": "com.veracode.verademo.controller.UserController.processLogin",
"function_prototype": "java.lang.String processLogin(java.lang.String, java.lang.String, java.lang.String, java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "1665904725",
"prototype_hash": "839857025",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1017,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sql. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 251,
"function_name": "showPasswordHint",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showPasswordHint",
"function_prototype": "java.lang.String showPasswordHint(java.lang.String)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "14368270",
"prototype_hash": "649289062",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1016,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sql. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 316,
"function_name": "processRegister",
"qualified_function_name": "com.veracode.verademo.controller.UserController.processRegister",
"function_prototype": "java.lang.String processRegister(java.lang.String, javax.servlet.http.HttpServletRequest, org.springframework.ui.Model)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "3365427062",
"prototype_hash": "2646652268",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.execute",
"issue_id": 1010,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.execute() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to execute() contains tainted data from the variable query. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 384,
"function_name": "processRegisterFinish",
"qualified_function_name": "com.veracode.verademo.controller.UserController.processRegisterFinish",
"function_prototype": "java.lang.String processRegisterFinish(java.lang.String, java.lang.String, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.springframework.ui.Model)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "1551041351",
"prototype_hash": "992078440",
"flaw_hash": "3765405848",
"flaw_hash_count": 2,
"flaw_hash_ordinal": 1,
"cause_hash": "153293750",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "2866949028",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1018,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sqlMyEvents. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 495,
"function_name": "showProfile",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showProfile",
"function_prototype": "java.lang.String showProfile(java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "4036894148",
"prototype_hash": "931230983",
"flaw_hash": "3392777041",
"flaw_hash_count": 3,
"flaw_hash_ordinal": 2,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.PreparedStatement.executeQuery",
"issue_id": 1027,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.PreparedStatement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. executeQuery() was called on the myInfo object, which contains tainted data. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 506,
"function_name": "showProfile",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showProfile",
"function_prototype": "java.lang.String showProfile(java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "4036894148",
"prototype_hash": "931230983",
"flaw_hash": "1480817290",
"flaw_hash_count": 3,
"flaw_hash_ordinal": 3,
"cause_hash": "2866949028",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "4"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.PreparedStatement.executeQuery",
"issue_id": 1026,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.PreparedStatement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. executeQuery() was called on the blabberQuery object, which contains tainted data. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/BlabController.java",
"line": 490,
"function_name": "showBlabbers",
"qualified_function_name": "com.veracode.verademo.controller.BlabController.showBlabbers",
"function_prototype": "java.lang.String showBlabbers(java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest)",
"scope": "com.veracode.verademo.controller.BlabController"
}
},
"flaw_match": {
"procedure_hash": "1426715244",
"prototype_hash": "364381741",
"flaw_hash": "1480817290",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "2866949028",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "4"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1014,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sqlQuery. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/RemoveAccountCommand.java",
"line": 40,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.RemoveAccountCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.RemoveAccountCommand"
}
},
"flaw_match": {
"procedure_hash": "2052213374",
"prototype_hash": "27480697",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.execute",
"issue_id": 1009,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.execute() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to execute() contains tainted data from the variable sqlQuery. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/RemoveAccountCommand.java",
"line": 47,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.RemoveAccountCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.RemoveAccountCommand"
}
},
"flaw_match": {
"procedure_hash": "2052213374",
"prototype_hash": "27480697",
"flaw_hash": "239218340",
"flaw_hash_count": 6,
"flaw_hash_ordinal": 4,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "3"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.execute",
"issue_id": 1011,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.execute() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to execute() contains tainted data from the variable sqlQuery. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/RemoveAccountCommand.java",
"line": 51,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.RemoveAccountCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.RemoveAccountCommand"
}
},
"flaw_match": {
"procedure_hash": "2052213374",
"prototype_hash": "27480697",
"flaw_hash": "239218340",
"flaw_hash_count": 6,
"flaw_hash_ordinal": 6,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "3"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1013,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sqlQuery. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/ListenCommand.java",
"line": 40,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.ListenCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.ListenCommand"
}
},
"flaw_match": {
"procedure_hash": "1600354578",
"prototype_hash": "2344031398",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.execute",
"issue_id": 1008,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.execute() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to execute() contains tainted data from the variable sqlQuery. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/ListenCommand.java",
"line": 47,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.ListenCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.ListenCommand"
}
},
"flaw_match": {
"procedure_hash": "1600354578",
"prototype_hash": "2344031398",
"flaw_hash": "239218340",
"flaw_hash_count": 4,
"flaw_hash_ordinal": 4,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "3"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.executeQuery",
"issue_id": 1012,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.executeQuery() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to executeQuery() contains tainted data from the variable sqlQuery. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/IgnoreCommand.java",
"line": 40,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.IgnoreCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.IgnoreCommand"
}
},
"flaw_match": {
"procedure_hash": "592522510",
"prototype_hash": "154563142",
"flaw_hash": "3392777041",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "5"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.sql.Statement.execute",
"issue_id": 1007,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to java.sql.Statement.execute() constructs a dynamic SQL query using a variable derived from untrusted input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. The first argument to execute() contains tainted data from the variable sqlQuery. The tainted data originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, and java.sql.Statement.executeQuery.\u003c/span\u003e \u003cspan\u003eAvoid dynamically constructing SQL queries. Instead, use parameterized prepared statements to prevent the database from interpreting the contents of bind variables as part of the query. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/commands/IgnoreCommand.java",
"line": 47,
"function_name": "execute",
"qualified_function_name": "com.veracode.verademo.commands.IgnoreCommand.execute",
"function_prototype": "void execute(java.lang.String)",
"scope": "com.veracode.verademo.commands.IgnoreCommand"
}
},
"flaw_match": {
"procedure_hash": "592522510",
"prototype_hash": "154563142",
"flaw_hash": "239218340",
"flaw_hash_count": 4,
"flaw_hash_ordinal": 4,
"cause_hash": "1176028798",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "3"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/89.html"
},
{
"title": "java.io.ObjectInput.readObject",
"issue_id": 1241,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Deserialization of Untrusted Data",
"cwe_id": "502",
"display_text": "\u003cspan\u003eThe serialized-object data stream used in the call to java.io.ObjectInput.readObject() appears to have been constructed with untrusted data. Attacker manipulation of this stream has the ability to cause the creation of objects of arbitrary Serializable types. Paired with a weakness in another class\u0027s constructor, this could result in a denial of service, code execution, or data corruption vulnerability. readObject() was called on the in object, which contains tainted data. The tainted data originated from an earlier call to javax.servlet.http.HttpServletRequest.getCookies.\u003c/span\u003e \u003cspan\u003eAvoid passing untrusted data; if the data is untrusted, consider switching to a safer serialization scheme such as JSON.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/502.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/utils/UserFactory.java",
"line": 44,
"function_name": "createFromRequest",
"qualified_function_name": "com.veracode.verademo.utils.UserFactory.createFromRequest",
"function_prototype": "User createFromRequest(javax.servlet.http.HttpServletRequest)",
"scope": "com.veracode.verademo.utils.UserFactory"
}
},
"flaw_match": {
"procedure_hash": "1712511862",
"prototype_hash": "2826266596",
"flaw_hash": "3455680234",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "2866949028",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1522093433",
"cause_hash2_ordinal": "4"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/502.html"
},
{
"title": "javax.servlet.http.HttpServletResponse.addCookie",
"issue_id": 1073,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of CRLF Sequences in HTTP Headers (\u0027HTTP Response Splitting\u0027)",
"cwe_id": "113",
"display_text": "\u003cspan\u003eThis call to javax.servlet.http.HttpServletResponse.addCookie() contains an HTTP response splitting flaw. Writing untrusted input into an HTTP header allows an attacker to manipulate the HTTP response rendered by the browser, to inject additional headers or an entire response body into the response stream. Injecting headers can be used to trick various security mechanisms in browsers into allowing XSS style attacks. Injecting entire response bodies can not only cause XSS attacks to succeed but may even poison the cache of any intermediary proxies between the clients and the application server. The first argument to addCookie() contains tainted data from the variables (new Cookie(...)). The tainted data originated from an earlier call to java.util.Base64$Encoder.encode.\u003c/span\u003e \u003cspan\u003eEscape, encode, or remove carriage return and line feed characters from untrusted data before inclusion in HTTP response headers. Whenever possible, use a security library such as ESAPI that provides safe versions of addHeader(), etc. that will automatically remove unexpected carriage returns and line feeds and can be configured to use HTML entity encoding for non-alphanumeric data. Alternatively, some of the XSS escaping functions from the OWASP Java Encoder project will also sanitize CRLF sequences. Only create a custom blocklist when absolutely necessary. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/113.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/HTTP_Response_Splitting\"\u003eOWASP\u003c/a\u003e \u003ca href\u003d\"https://help.veracode.com/reader/4EKhlLSMHm5jC8P8j3XccQ/IiF_rOE79ANbwnZwreSPGA\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/utils/UserFactory.java",
"line": 96,
"function_name": "updateInResponse",
"qualified_function_name": "com.veracode.verademo.utils.UserFactory.updateInResponse",
"function_prototype": "javax.servlet.http.HttpServletResponse updateInResponse(User, javax.servlet.http.HttpServletResponse)",
"scope": "com.veracode.verademo.utils.UserFactory"
}
},
"flaw_match": {
"procedure_hash": "3762992136",
"prototype_hash": "3816343651",
"flaw_hash": "3905295364",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "3492435991",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1188248202",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/113.html"
},
{
"title": "java.security.MessageDigest.getInstance",
"issue_id": 1240,
"gob": "B",
"severity": 3,
"issue_type_id": "crypto",
"issue_type": "Use of a Broken or Risky Cryptographic Algorithm",
"cwe_id": "327",
"display_text": "\u003cspan\u003eThis function uses the MD5() function, which uses a hash algorithm that is considered weak. In recent years, researchers have demonstrated ways to breach many uses of previously-thought-safe hash functions such as MD5. \u003c/span\u003e \u003cspan\u003eConsider using a stronger algorithm in order to prevent attackers from being able to manipulate hash results. If this algorithm is being used to hash passwords, then consider using a strong computationally-hard algorithm such as PBKDF2 or bcrypt instead of a plain hashing algorithm.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/327.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/utils/User.java",
"line": 103,
"function_name": "md5",
"qualified_function_name": "com.veracode.verademo.utils.User.md5",
"function_prototype": "java.lang.String md5(java.lang.String)",
"scope": "com.veracode.verademo.utils.User"
}
},
"flaw_match": {
"procedure_hash": "2017827845",
"prototype_hash": "3600292871",
"flaw_hash": "1900691328",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "1787533810",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "0",
"cause_hash2_ordinal": "0"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/327.html"
},
{
"title": "JDBC_PASSWORD initializer",
"issue_id": 1006,
"gob": "B",
"severity": 3,
"issue_type_id": "crypto",
"issue_type": "Use of Hard-coded Password",
"cwe_id": "259",
"display_text": "\u003cspan\u003eThis variable assignment uses a hard-coded password that may compromise system security in a way that cannot be easily remedied. The use of a hard-coded password significantly increases the possibility that the account being protected will be compromised. Moreover, the password cannot be changed without patching the software. If a hard-coded password is compromised in a commercial product, all deployed instances may be vulnerable to attack. In some cases, this finding may indicate a reference to a password (e.g. the name of a key in a properties file) rather than an actual password. JDBC_PASSWORD initializer\u003c/span\u003e \u003cspan\u003eStore passwords out-of-band from the application code. Follow best practices for protecting credentials stored in locations such as configuration or properties files. An HSM may be appropriate for particularly sensitive credentials.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/259.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/utils/Constants.java",
"line": 1,
"function_name": "UNKNOWN",
"qualified_function_name": "UNKNOWN",
"function_prototype": "UNKNOWN",
"scope": "UNKNOWN"
}
},
"flaw_match": {
"procedure_hash": "1052258512",
"prototype_hash": "0",
"flaw_hash": "2189615053",
"flaw_hash_count": 2,
"flaw_hash_ordinal": 2,
"cause_hash": "0",
"cause_hash_count": 0,
"cause_hash_ordinal": 0,
"cause_hash2": "0",
"cause_hash2_ordinal": "0"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/259.html"
},
{
"title": "hardcodepasswdset",
"issue_id": 1238,
"gob": "B",
"severity": 3,
"issue_type_id": "crypto",
"issue_type": "Use of Hard-coded Password",
"cwe_id": "259",
"display_text": "\u003cspan\u003eThis variable assignment uses a hard-coded password that may compromise system security in a way that cannot be easily remedied. The use of a hard-coded password significantly increases the possibility that the account being protected will be compromised. Moreover, the password cannot be changed without patching the software. If a hard-coded password is compromised in a commercial product, all deployed instances may be vulnerable to attack. In some cases, this finding may indicate a reference to a password (e.g. the name of a key in a properties file) rather than an actual password. hardcodepasswdset\u003c/span\u003e \u003cspan\u003eStore passwords out-of-band from the application code. Follow best practices for protecting credentials stored in locations such as configuration or properties files. An HSM may be appropriate for particularly sensitive credentials.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/259.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/utils/Constants.java",
"line": 13,
"function_name": "!ctor",
"qualified_function_name": "com.veracode.verademo.utils.Constants.!ctor",
"function_prototype": "void !ctor()",
"scope": "com.veracode.verademo.utils.Constants"
}
},
"flaw_match": {
"procedure_hash": "3844508335",
"prototype_hash": "4146034803",
"flaw_hash": "1879343762",
"flaw_hash_count": 1,
"flaw_hash_ordinal": 1,
"cause_hash": "3691195164",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "0",
"cause_hash2_ordinal": "0"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/259.html"
},
{
"title": "showLogin",
"issue_id": 1001,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)",
"cwe_id": "601",
"display_text": "\u003cspan\u003eThis call to showLogin() contains a URL redirection to untrusted site flaw. Writing untrusted input into a URL value could cause the web application to redirect the request to the specified URL, leading to phishing attempts to steal user credentials.\u003c/span\u003e \u003cspan\u003eAlways validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/601.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 82,
"function_name": "showLogin",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showLogin",
"function_prototype": "java.lang.String showLogin(java.lang.String, java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "4166923562",
"prototype_hash": "869084474",
"flaw_hash": "1919273320",
"flaw_hash_count": 2,
"flaw_hash_ordinal": 1,
"cause_hash": "1738708127",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1738708127",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/601.html"
},
{
"title": "showLogin",
"issue_id": 1002,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "URL Redirection to Untrusted Site (\u0027Open Redirect\u0027)",
"cwe_id": "601",
"display_text": "\u003cspan\u003eThis call to showLogin() contains a URL redirection to untrusted site flaw. Writing untrusted input into a URL value could cause the web application to redirect the request to the specified URL, leading to phishing attempts to steal user credentials.\u003c/span\u003e \u003cspan\u003eAlways validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/601.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 95,
"function_name": "showLogin",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showLogin",
"function_prototype": "java.lang.String showLogin(java.lang.String, java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "4166923562",
"prototype_hash": "869084474",
"flaw_hash": "1919273320",
"flaw_hash_count": 2,
"flaw_hash_ordinal": 2,
"cause_hash": "1738708127",
"cause_hash_count": 1,
"cause_hash_ordinal": 1,
"cause_hash2": "1738708127",
"cause_hash2_ordinal": "1"
},
"flaw_details_link": "https://downloads.veracode.com/securityscan/cwe/v4/java/601.html"
},
{
"title": "org.apache.log4j.Category.info",
"issue_id": 1217,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to org.apache.log4j.Category.info() could result in a log forging attack. Writing untrusted data into a log file allows an attacker to forge log entries or inject malicious content into log files. Corrupted log files can be used to cover an attacker\u0027s tracks or as a delivery mechanism for an attack on a log viewing or processing utility. For example, if a web administrator uses a browser-based utility to review logs, a cross-site scripting attack might be possible. The first argument to info() contains tainted data. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.\u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize untrusted data used to construct log entries by using a safe logging mechanism such as the OWASP ESAPI Logger, which will automatically remove unexpected carriage returns and line feeds and can be configured to use HTML entity encoding for non-alphanumeric data. Alternatively, some of the XSS escaping functions from the OWASP Java Encoder project will also sanitize CRLF sequences. Only create a custom blocklist when absolutely necessary. Always validate untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href\u003d\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href\u003d\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e \u003ca href\u003d\"https://docs.veracode.com/r/review_cleansers?tocId\u003dnYnZqAenFFZmB75MQrZwuA\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e",
"files": {
"source_file": {
"file": "com/veracode/verademo/controller/UserController.java",
"line": 114,
"function_name": "showLogin",
"qualified_function_name": "com.veracode.verademo.controller.UserController.showLogin",
"function_prototype": "java.lang.String showLogin(java.lang.String, java.lang.String, org.springframework.ui.Model, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)",
"scope": "com.veracode.verademo.controller.UserController"
}
},
"flaw_match": {
"procedure_hash": "4166923562",
"prototype_hash": "869084474",