subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
] for cmd in cmds: try: subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) return cmd[0] except Exception: continue- Confidence
- 95% confidence
- Finding
- The code launches a local application (`brave-browser` or `xdg-open`) on a URL derived from remote search results. This creates a local side effect outside the stated search/reporting scope and can cause the host to open untrusted content, potentially invoking handlers for dangerous URI schemes or exposing the user to phishing/malicious sites. In agent/automation contexts, automatic opening of externally sourced URLs is significantly riskier than merely returning links.
