subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"--max-chars", "5000" ] result = subprocess.run( cmd, capture_output=True, text=True,- Confidence
- 86% confidence
- Finding
- The script invokes an external CLI (`openclaw web-fetch`) on a user-supplied URL. Although `subprocess.run` is used with a list and `shell=False` semantics, which avoids classic shell injection, this still delegates untrusted input to another executable whose behavior and URL handling are outside this script's control, creating a command/unsafe tool invocation boundary.
