subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
""" try: full_cmd = f"agent-browser {command}" result = subprocess.run( full_cmd, shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- The code builds a shell command from a string and executes it with shell=True, which allows shell metacharacters in the command argument to alter execution. In this file, command is later composed from URL and JavaScript extraction content, so untrusted or misconfigured input could lead to command injection and arbitrary command execution on the host.
