forked from viveksabbani/CAP6614_Final_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPython-project-4-scan.json
140 lines (140 loc) · 4.41 KB
/
Python-project-4-scan.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
{
"errors": [],
"generated_at": "2024-11-26T18:53:43Z",
"metrics": {
".\\Python-project-4\\safe_eval.py": {
"CONFIDENCE.HIGH": 1,
"CONFIDENCE.LOW": 0,
"CONFIDENCE.MEDIUM": 0,
"CONFIDENCE.UNDEFINED": 0,
"SEVERITY.HIGH": 0,
"SEVERITY.LOW": 0,
"SEVERITY.MEDIUM": 1,
"SEVERITY.UNDEFINED": 0,
"loc": 23,
"nosec": 0,
"skipped_tests": 0
},
".\\Python-project-4\\safe_subprocess.py": {
"CONFIDENCE.HIGH": 3,
"CONFIDENCE.LOW": 0,
"CONFIDENCE.MEDIUM": 0,
"CONFIDENCE.UNDEFINED": 0,
"SEVERITY.HIGH": 0,
"SEVERITY.LOW": 3,
"SEVERITY.MEDIUM": 0,
"SEVERITY.UNDEFINED": 0,
"loc": 12,
"nosec": 0,
"skipped_tests": 0
},
".\\Python-project-4\\unsafe_regex.py": {
"CONFIDENCE.HIGH": 0,
"CONFIDENCE.LOW": 0,
"CONFIDENCE.MEDIUM": 0,
"CONFIDENCE.UNDEFINED": 0,
"SEVERITY.HIGH": 0,
"SEVERITY.LOW": 0,
"SEVERITY.MEDIUM": 0,
"SEVERITY.UNDEFINED": 0,
"loc": 13,
"nosec": 0,
"skipped_tests": 0
},
"_totals": {
"CONFIDENCE.HIGH": 4,
"CONFIDENCE.LOW": 0,
"CONFIDENCE.MEDIUM": 0,
"CONFIDENCE.UNDEFINED": 0,
"SEVERITY.HIGH": 0,
"SEVERITY.LOW": 3,
"SEVERITY.MEDIUM": 1,
"SEVERITY.UNDEFINED": 0,
"loc": 48,
"nosec": 0,
"skipped_tests": 0
}
},
"results": [
{
"code": "26 \n27 return eval(compile(tree, filename=\"\", mode=\"eval\"))\n28 \n",
"col_offset": 11,
"end_col_offset": 56,
"filename": ".\\Python-project-4\\safe_eval.py",
"issue_confidence": "HIGH",
"issue_cwe": {
"id": 78,
"link": "https://cwe.mitre.org/data/definitions/78.html"
},
"issue_severity": "MEDIUM",
"issue_text": "Use of possibly insecure function - consider using safer ast.literal_eval.",
"line_number": 27,
"line_range": [
27
],
"more_info": "https://bandit.readthedocs.io/en/1.7.10/blacklists/blacklist_calls.html#b307-eval",
"test_id": "B307",
"test_name": "blacklist"
},
{
"code": "2 \n3 import subprocess\n4 \n",
"col_offset": 0,
"end_col_offset": 17,
"filename": ".\\Python-project-4\\safe_subprocess.py",
"issue_confidence": "HIGH",
"issue_cwe": {
"id": 78,
"link": "https://cwe.mitre.org/data/definitions/78.html"
},
"issue_severity": "LOW",
"issue_text": "Consider possible security implications associated with the subprocess module.",
"line_number": 3,
"line_range": [
3
],
"more_info": "https://bandit.readthedocs.io/en/1.7.10/blacklists/blacklist_imports.html#b404-import-subprocess",
"test_id": "B404",
"test_name": "blacklist"
},
{
"code": "9 try:\n10 result = subprocess.run(['ls', '-la', directory], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n11 print(result.stdout.decode())\n",
"col_offset": 17,
"end_col_offset": 117,
"filename": ".\\Python-project-4\\safe_subprocess.py",
"issue_confidence": "HIGH",
"issue_cwe": {
"id": 78,
"link": "https://cwe.mitre.org/data/definitions/78.html"
},
"issue_severity": "LOW",
"issue_text": "Starting a process with a partial executable path",
"line_number": 10,
"line_range": [
10
],
"more_info": "https://bandit.readthedocs.io/en/1.7.10/plugins/b607_start_process_with_partial_path.html",
"test_id": "B607",
"test_name": "start_process_with_partial_path"
},
{
"code": "9 try:\n10 result = subprocess.run(['ls', '-la', directory], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n11 print(result.stdout.decode())\n",
"col_offset": 17,
"end_col_offset": 117,
"filename": ".\\Python-project-4\\safe_subprocess.py",
"issue_confidence": "HIGH",
"issue_cwe": {
"id": 78,
"link": "https://cwe.mitre.org/data/definitions/78.html"
},
"issue_severity": "LOW",
"issue_text": "subprocess call - check for execution of untrusted input.",
"line_number": 10,
"line_range": [
10
],
"more_info": "https://bandit.readthedocs.io/en/1.7.10/plugins/b603_subprocess_without_shell_equals_true.html",
"test_id": "B603",
"test_name": "subprocess_without_shell_equals_true"
}
]
}