subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] try: result = subprocess.run( scrapling_cmd, capture_output=True, text=True,- Confidence
- 91% confidence
- Finding
- The code executes an external `scrapling` binary via `subprocess.run` using a user-controlled URL as input. Although it avoids `shell=True`, invoking an external program expands the trust boundary: a compromised or unexpected binary, or a downstream tool that interprets the URL unsafely, can lead to arbitrary code execution or unsafe network access from the agent environment.
