subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"--max-chars", "5000" ] result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 83% confidence
- Finding
- The script invokes an external CLI with a user-influenced URL, which expands the trust boundary and introduces dependency on whatever binary named 'openclaw' is on PATH. Although shell injection is mitigated by passing an argument list rather than a shell string, this still enables execution of an unexpected or trojaned binary and sends untrusted URLs to a subprocess with network-fetch capability.
