subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Start in background if sys.platform == "win32": subprocess.Popen( cmd, cwd=path, shell=True, creationflags=subprocess.CREATE_NEW_CONSOLE )- Confidence
- 98% confidence
- Finding
- This background process launch uses a shell with a command string that includes user-influenced values such as the port and optional preset. Using shell=True means shell metacharacters in those values can become command injection, allowing arbitrary OS command execution when starting Fooocus.
