subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
pass # Call agent result = subprocess.run( [ 'openclaw', 'agent', '--agent', agent_id,- Confidence
- 94% confidence
- Finding
- This subprocess call launches an external agent and passes untrusted task name/description/feedback directly as the agent prompt. While there is no shell injection because arguments are passed as a list, this is still a real security issue because attacker-controlled task content can perform prompt injection against the downstream agent and induce unauthorized actions, data access, or write-back operations.
