-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.json
2190 lines (2190 loc) · 178 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": "/",
"name": "",
"templated": false
},
"self": {
"href": "/scans/c23b378e-bcee-4ca6-8b5c-2f53202e2da6/findings",
"name": "",
"templated": false
},
"help": {
"href": "https://help.veracode.com/reader/tS9CaFwL4_lbIEWWomsJoA/ovfZGgu96UINQxIuTqRDwg",
"name": "",
"templated": false
},
"create": {
"href": "",
"name": "",
"templated": false
},
"start": {
"href": "",
"name": "",
"templated": false
},
"details": {
"href": "",
"name": "",
"templated": false
},
"upload": {
"href": "",
"name": "",
"templated": false
},
"cancel": {
"href": "",
"name": "",
"templated": false
}
},
"scan_id": "c23b378e-bcee-4ca6-8b5c-2f53202e2da6",
"scan_status": "SUCCESS",
"message": "Scan successful. Results size: 153091 bytes",
"modules": [
"JS files within verademo-python.zip",
"Python files within verademo-python.zip"
],
"modules_count": 2,
"findings": [
{
"title": "hashlib.md5",
"issue_id": 1000,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Use of a Broken or Risky Cryptographic Algorithm",
"cwe_id": "327",
"display_text": "\u003cspan\u003eThis function uses the hashlib.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=\"https://cwe.mitre.org/data/definitions/327.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/models.py",
"line": 29,
"function_name": "create"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "SECRET_KEY",
"issue_id": 1001,
"gob": "B",
"severity": 3,
"issue_type_id": "s",
"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. SECRET_KEY\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=\"https://cwe.mitre.org/data/definitions/259.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "verademo-python/settings.py",
"line": 24
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.choice",
"issue_id": 1002,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/fortune/fortuneData.py",
"line": 105,
"function_name": "FortuneData"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.choice",
"issue_id": 1003,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/fortune/fortuneData.py",
"line": 160,
"function_name": "RiddleData"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "httplib2.Http",
"issue_id": 1004,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Certificate Validation",
"cwe_id": "295",
"display_text": "\u003cspan\u003eIn this codepath (httplib2.Http), strict verification of the SSL/TLS certificate chain is disabled. Failing to validate the certificate chain leaves the connection vulnerable to man-in-the-middle attacks.\u003c/span\u003e \u003cspan\u003eAlways enable strict validation of certificates when using SSL/TLS.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/295.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 63,
"function_name": "reset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "httplib2.Http.add_credentials",
"issue_id": 1005,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Use of Hard-coded Credentials",
"cwe_id": "798",
"display_text": "\u003cspan\u003eThe application contains hard-coded information that may contain credentials to an external service. The use of hard-coded credentials significantly increases the possibility that the account being protected will be compromised. httplib2.Http.add_credentials\u003c/span\u003e \u003cspan\u003eStore credentials out-of-band from the application code. Follow best practices for protecting credentials stored in locations such as configuration or properties files.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/798.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 64,
"function_name": "reset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.choice",
"issue_id": 1006,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 111,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.randint",
"issue_id": 1007,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 128,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.randint",
"issue_id": 1008,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 147,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.randint",
"issue_id": 1009,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 151,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.randint",
"issue_id": 1010,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 155,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "random.randint",
"issue_id": 1011,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Insufficient Entropy",
"cwe_id": "331",
"display_text": "\u003cspan\u003eStandard random number generators do not provide a sufficient amount of entropy when used for security purposes. Attackers can brute force the output of pseudorandom number generators such as rand().\u003c/span\u003e \u003cspan\u003eIf this random number is used where security is a concern, such as generating passwords, session keys, authentication etc, use a trusted cryptographic random number generator instead. The new secrets module introduced in Python 3.6, is used for generating such cryptographically strong random number generators.\u003c/span\u003e \u003cspan\u003eReferences:\u003ca href=\"https://cwe.mitre.org/data/definitions/331.html\"\u003eCWE\u003c/a\u003e \u003cBR\u003e\u003ca href=\"https://docs.python.org/3/library/secrets.html#module-secrets\"\u003esecrets module\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://cryptography.io/en/latest/\"\u003ecryptography.io\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/resetController.py",
"line": 159,
"function_name": "processReset"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "hashlib.md5",
"issue_id": 1012,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Use of a Broken or Risky Cryptographic Algorithm",
"cwe_id": "327",
"display_text": "\u003cspan\u003eThis function uses the hashlib.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=\"https://cwe.mitre.org/data/definitions/327.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 105,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "cryptography.hazmat.primitives.asymmetric.rsa.generate_private_key",
"issue_id": 1013,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Inadequate Encryption Strength",
"cwe_id": "326",
"display_text": "\u003cspan\u003eThe key size specified for this algorithm is not large enough to protect it from brute force attacks.\u003c/span\u003e \u003cspan\u003eFor symmetric algorithms other than DES, use a key size \u003e= 128 bits, for RSA use a key size \u003e= 2048 bits, and for 3DES use a key size of 192 bits (168 effective).\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/326.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 127,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "hashlib.md5",
"issue_id": 1014,
"gob": "B",
"severity": 3,
"issue_type_id": "sink",
"issue_type": "Use of a Broken or Risky Cryptographic Algorithm",
"cwe_id": "327",
"display_text": "\u003cspan\u003eThis function uses the hashlib.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=\"https://cwe.mitre.org/data/definitions/327.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 412,
"function_name": "processRegisterFinish"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.DEBUG",
"issue_id": 1015,
"gob": "B",
"severity": 2,
"issue_type_id": "t",
"issue_type": "Information Exposure Through Debug Information",
"cwe_id": "215",
"display_text": "\u003cspan\u003eEnabling django.DEBUG() property exposes debug information that may expose sensitive information which an attacker can use to fingerprint the application. This information can be used by an attacker in executing other more sophisticated attacks and can also enable the attacker to target known vulnerabilities in application components.\u003c/span\u003e\u003cspan\u003eMake sure, () property is disabled, in production configurations.\u003c/span\u003e\u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/215.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "verademo-python/settings.py",
"line": 27
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.ALLOWED_HOSTS",
"issue_id": 1016,
"gob": "B",
"severity": 3,
"issue_type_id": "t",
"issue_type": "Permissive List of Allowed Inputs",
"cwe_id": "183",
"display_text": "\u003cspan\u003eThe django.ALLOWED_HOSTS() property is configured with at least one value such as using wildcards(*), which might allow this application to be accessed by an untrusted domain. This could open up your application to same kinds of attacks as XSS, or arbitrary execution of untrusted javascript on your servers.\u003c/span\u003e\u003cspan\u003eMake sure, domains allowed to communicate with your applications, are carefully allowlisted and configured accordingly.\u003c/span\u003e\u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/183.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "verademo-python/settings.py",
"line": 30
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1017,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 120,
"function_name": "feed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.http.HttpResponse",
"issue_id": 1018,
"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 django.http.HttpResponse() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with user-supplied input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim's 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://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html. In addition, as a best practice, always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href=\"https://docs.veracode.com/r/review_cleansers\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 173,
"function_name": "morefeed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1019,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 257,
"function_name": "blab"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1020,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 139,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1021,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 125,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.http.HttpResponse",
"issue_id": 1022,
"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 django.http.HttpResponse() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with user-supplied input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim's 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://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html. In addition, as a best practice, always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href=\"https://docs.veracode.com/r/review_cleansers\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 197,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1023,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 196,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1024,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 192,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "urllib.request.Request",
"issue_id": 1025,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Server-Side Request Forgery ('SSRF')",
"cwe_id": "918",
"display_text": "\u003cspan\u003eSSRF attacks works when an attacker can pass a URL to access other upstream resources. This happens when resource urls aren't validated for expected destination. Attackers can craft a vulnerable URL to access variety of sensitive information like AWS metadata, database services and other web enabled services.\u003c/span\u003e \u003cspan\u003eAs a mitigation, create a list of allowed hosts and protocols and validate every request against it. As far as possible, don't allow URLs coming directly from user to be passed on these APIs.\u003c/span\u003e\u003cspan\u003eReferences : \u003ca href=\"https://cwe.mitre.org/data/definitions/918.html\"CWE\u003e 918\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://owasp.org/www-community/attacks/Server_Side_Request_Forgery\"SSRF\u003e Attacks\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/homeController.py",
"line": 15,
"function_name": "home"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "urllib.request.urlopen",
"issue_id": 1026,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Server-Side Request Forgery ('SSRF')",
"cwe_id": "918",
"display_text": "\u003cspan\u003eSSRF attacks works when an attacker can pass a URL to access other upstream resources. This happens when resource urls aren't validated for expected destination. Attackers can craft a vulnerable URL to access variety of sensitive information like AWS metadata, database services and other web enabled services.\u003c/span\u003e \u003cspan\u003eAs a mitigation, create a list of allowed hosts and protocols and validate every request against it. As far as possible, don't allow URLs coming directly from user to be passed on these APIs.\u003c/span\u003e\u003cspan\u003eReferences : \u003ca href=\"https://cwe.mitre.org/data/definitions/918.html\"CWE\u003e 918\u003c/a\u003e\u003cBR\u003e\u003ca href=\"https://owasp.org/www-community/attacks/Server_Side_Request_Forgery\"SSRF\u003e Attacks\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/homeController.py",
"line": 16,
"function_name": "home"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.shortcuts.redirect",
"issue_id": 1027,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "URL Redirection to Untrusted Site ('Open Redirect')",
"cwe_id": "601",
"display_text": "\u003cspan\u003eThis call to django.shortcuts.redirect() contains a URL redirection to untrusted site flaw. Writing unsanitized user-supplied 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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible. \u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/601.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 96,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1028,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 168,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.shortcuts.redirect",
"issue_id": 1029,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "URL Redirection to Untrusted Site ('Open Redirect')",
"cwe_id": "601",
"display_text": "\u003cspan\u003eThis call to django.shortcuts.redirect() contains a URL redirection to untrusted site flaw. Writing unsanitized user-supplied 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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible. \u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/601.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 93,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1030,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 89,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1031,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 111,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1032,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 106,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1033,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 147,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1034,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 143,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "pickle.loads",
"issue_id": 1035,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Deserialization of Untrusted Data",
"cwe_id": "502",
"display_text": "\u003cspan\u003eThis call to pickle.loads() has an inherent bug where the deserialized object is not validated as serializable and can lead to code execution, if an attacker can control the input stream. \u003c/span\u003e \u003cspan\u003eIf available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/502.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 69,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1036,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 71,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1037,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 109,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1038,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 57,
"function_name": "login"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.http.HttpResponse",
"issue_id": 1039,
"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 django.http.HttpResponse() contains a cross-site scripting (XSS) flaw. The application populates the HTTP response with user-supplied input, allowing an attacker to embed malicious content, such as Javascript code, which will be executed in the context of the victim's 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://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html. In addition, as a best practice, always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/79.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/xss/\"\u003eOWASP\u003c/a\u003e \u003ca href=\"https://docs.veracode.com/r/review_cleansers\"\u003eSupported Cleansers\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 199,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1040,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 186,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1041,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 185,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1042,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/userController.py",
"line": 179,
"function_name": "showPasswordHint"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1043,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 110,
"function_name": "feed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1044,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 43,
"function_name": "feed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1045,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 75,
"function_name": "feed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1046,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 51,
"function_name": "feed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "django.db.connection.cursor.execute",
"issue_id": 1047,
"gob": "B",
"severity": 4,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')",
"cwe_id": "89",
"display_text": "\u003cspan\u003eThis database query contains a SQL injection flaw. The call to django.db.connection.cursor.execute() constructs a dynamic SQL query using a variable derived from user-supplied input. An attacker could exploit this flaw to execute arbitrary SQL queries against the database. \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 user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/89.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/SQL_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 162,
"function_name": "morefeed"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "logging.Logger.info",
"issue_id": 1048,
"gob": "B",
"severity": 3,
"issue_type_id": "taint",
"issue_type": "Improper Output Neutralization for Logs",
"cwe_id": "117",
"display_text": "\u003cspan\u003eThis call to logging.Logger.info() could result in a log forging attack. Writing unsanitized user-supplied 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's 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. \u003c/span\u003e \u003cspan\u003eAvoid directly embedding user input in log files when possible. Sanitize user-supplied 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. Only create a custom blocklist when absolutely necessary. Always validate user-supplied input to ensure that it conforms to the expected format, using centralized data validation routines when possible.\u003c/span\u003e \u003cspan\u003eReferences: \u003ca href=\"https://cwe.mitre.org/data/definitions/117.html\"\u003eCWE\u003c/a\u003e \u003ca href=\"https://owasp.org/www-community/attacks/Log_Injection\"\u003eOWASP\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 336,
"function_name": "blabbers"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{
"title": "eval",
"issue_id": 1049,
"gob": "B",
"severity": 5,
"issue_type_id": "taint",
"issue_type": "Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')",
"cwe_id": "95",
"display_text": "\u003cspan\u003eThis call to eval() contains user-supplied input. If this input could be modified by an attacker, arbitrary code could be executed. \u003c/span\u003e \u003cspan\u003eValidate all user-supplied 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=\"https://cwe.mitre.org/data/definitions/95.html\"\u003eCWE\u003c/a\u003e\u003c/span\u003e\n",
"files": {
"source_file": {
"file": "application/views/blabController.py",
"line": 348,
"function_name": "blabbers"
}
},
"flaw_match": {},
"stack_dumps": {}
},
{