subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if check_port_in_use(GATEWAY_PORT): kill_process_on_port(GATEWAY_PORT) proc = subprocess.Popen( ["openclaw", "gateway", "start"], cwd=OPENCLAW_DATA, stdout=subprocess.DEVNULL,- Confidence
- 93% confidence
- Finding
- The process launch uses `shell=True` while passing a command resolved via the shell/PATH rather than an absolute trusted executable path. In this skill, the working directory and environment-derived paths are configurable, so a local attacker who can influence PATH, shell resolution, or deployment context may cause execution of an unintended program with the watchdog's privileges.
