subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
requests.get(f"{API_BASE}/api/config", timeout=2) except: # 启动服务 subprocess.Popen( ["python3", str(PROJECT_DIR / "backend" / "app.py")], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,- Confidence
- 77% confidence
- Finding
- This test unconditionally launches a backend application from a hardcoded absolute local path when the local service probe fails. That creates unexpected local code execution during test runs and couples the skill to arbitrary host state, which is risky in agent-skill ecosystems where tests may be triggered automatically.
