subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env["API_TIMEOUT_MS"] = "3000000" env["CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"] = "1" result = subprocess.run( ["claude", "--print", "--no-session-persistence", "--dangerously-skip-permissions", prompt], cwd=WORK_DIR,- Confidence
- 92% confidence
- Finding
- The code forwards untrusted queue-supplied prompts directly into an external agent process that is launched with elevated bypass flags. Even though shell injection is avoided by using an argument list, this is still dangerous because the downstream tool is explicitly allowed to act on attacker-controlled instructions without normal permission checks.
