Tainted flow: 'OPENCLAW_BIN' from os.environ.get (line 17, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
"""Trova agenti usando subagents list e sessions_list""" try: # Usa subagents per trovare agenti result = subprocess.run( [OPENCLAW_BIN, "tool", "subagents", "action", "list"], capture_output=True, text=True, timeout=30 )- Confidence
- 88% confidence
- Finding
- OPENCLAW_BIN is sourced from an environment variable and then executed as the program path in many subprocess calls. If an attacker can influence the environment, they can replace the intended binary with an arbitrary executable and gain code execution in the skill's trust context.
