subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: venv_python = Path(__file__).resolve().parents[3] / ".venv" / "bin" / "python3" script = Path(__file__).resolve().parents[3] / "scripts" / "nightly_pipeline.py" subprocess.run([str(venv_python), str(script), "--autoresearch-only"], timeout=7200) except Exception: pass- Confidence
- 94% confidence
- Finding
- The /trigger-autoresearch endpoint lets a remote caller start a long-running local pipeline subprocess with no visible authentication, authorization, or abuse controls. Even though the command itself is fixed, exposing server-side job execution over an API can enable denial of service, unintended retraining/research runs, and repeated resource exhaustion on a personal-data-heavy system.
