subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: cmd = [sys.executable, "-m", "http.server", str(current_port)] # Ensure HTTP server runs from workspace directory (dynamic detection) http_process = subprocess.Popen( cmd, cwd=WORKSPACE_DIR, stdout=subprocess.DEVNULL,- Confidence
- 93% confidence
- Finding
- The script launches `python -m http.server` with `cwd=WORKSPACE_DIR`, which exposes the entire detected workspace over HTTP rather than only the generated flight map. In this skill context, the workspace may contain unrelated project files, prompts, configs, or secrets, so the server scope exceeds the claimed functionality and can leak sensitive local data.
