Tainted flow: 'cmd' from os.environ.get (line 273, credential/environment) → subprocess.run (code execution)
Medium
- Category
- Data Flow
- Content
raise RuntimeError("openclaw command not found; set OPENCLAW_BIN to the absolute path") cmd = [openclaw_bin, "sessions", "--all-agents", "--json"] proc = subprocess.run( cmd, text=True, stdout=subprocess.PIPE,- Confidence
- 86% confidence
- Finding
- proc = subprocess.run( cmd, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=False, )
