Metrics:
Total lines of code: 220
Total lines skipped (#nosec): 0

start_process_with_a_shell: Starting a process with a shell: Seems safe, but may be changed in the future, consider rewriting without shell
Test ID: B605
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 30
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b605_start_process_with_a_shell.html
26	    print("BilboX:",type)
27	    json_obj = {"server_op": type}
28	 
29	    if(type == "shutdown"):
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
start_process_with_partial_path: Starting a process with a partial executable path
Test ID: B607
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 30
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b607_start_process_with_partial_path.html
26	    print("BilboX:",type)
27	    json_obj = {"server_op": type}
28	 
29	    if(type == "shutdown"):
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
start_process_with_a_shell: Starting a process with a shell: Seems safe, but may be changed in the future, consider rewriting without shell
Test ID: B605
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 32
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b605_start_process_with_a_shell.html
28	 
29	    if(type == "shutdown"):
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
start_process_with_partial_path: Starting a process with a partial executable path
Test ID: B607
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 32
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b607_start_process_with_partial_path.html
28	 
29	    if(type == "shutdown"):
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
start_process_with_a_shell: Starting a process with a shell: Seems safe, but may be changed in the future, consider rewriting without shell
Test ID: B605
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 34
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b605_start_process_with_a_shell.html
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
36	        os.system("rundll32.exe user32.dll,LockWorkStation") # logout
37	    return web.json_response(json_obj, content_type='application/json')
start_process_with_partial_path: Starting a process with a partial executable path
Test ID: B607
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 34
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b607_start_process_with_partial_path.html
30	        os.system("shutdown /s") # Shutdown
31	    if(type == "reboot"):
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
36	        os.system("rundll32.exe user32.dll,LockWorkStation") # logout
37	    return web.json_response(json_obj, content_type='application/json')
start_process_with_a_shell: Starting a process with a shell: Seems safe, but may be changed in the future, consider rewriting without shell
Test ID: B605
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 36
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b605_start_process_with_a_shell.html
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
36	        os.system("rundll32.exe user32.dll,LockWorkStation") # logout
37	    return web.json_response(json_obj, content_type='application/json')
38	
39	WEB_DIRECTORY = "./web"
start_process_with_partial_path: Starting a process with a partial executable path
Test ID: B607
Severity: LOW
Confidence: HIGH
CWE: CWE-78
File: /custom_nodes/bilbox-comfyui/__init__.py
Line number: 36
More info: https://bandit.readthedocs.io/en/1.7.9/plugins/b607_start_process_with_partial_path.html
32	        os.system("shutdown /r") # Restart
33	    if(type == "logout"):
34	        os.system("shutdown /l") # logout
35	    if(type == "lock"):
36	        os.system("rundll32.exe user32.dll,LockWorkStation") # logout
37	    return web.json_response(json_obj, content_type='application/json')
38	
39	WEB_DIRECTORY = "./web"