subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
subprocess.Popen([self.launcher_exe], cwd=self.comfy_path) else: result.append("✅ 启动ComfyUI核心服务") subprocess.Popen([self.start_bat], cwd=self.comfy_path, shell=True) time.sleep(3) result.append("✅ 启动成功!浏览器访问:http://127.0.0.1:8188") result.append("ℹ️ 绘世启动器可管理内核、插件、模型、一键更新")- Confidence
- 97% confidence
- Finding
- This launches a batch file with shell=True, causing execution to be mediated by the system shell. Because self.start_bat and self.comfy_path are derived from a user-controllable path parameter, an attacker could influence what script is executed or abuse shell parsing behavior, leading to arbitrary command execution in the agent context.
