subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
results = [] for job in jobs: completed = subprocess.run( job["args"], check=False, capture_output=True,- Confidence
- 87% confidence
- Finding
- This code executes externally constructed OpenClaw CLI commands that embed user-controllable fields such as job name, agent, session, channel, target, and script path. Although shell injection is avoided by passing a list, the skill still performs privileged side effects—installing scheduled jobs and delivery routes—well beyond a passive briefing skill, enabling persistence or unwanted message routing if invoked with attacker-influenced inputs.
