subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if platform.system() == 'Windows': os.startfile(url) elif platform.system() == 'Darwin': # macOS subprocess.Popen(['open', url]) else: # Linux subprocess.Popen(['xdg-open', url])- Confidence
- 92% confidence
- Finding
- The code opens a URL supplied by a remote service using the OS default handler via `open`. Although arguments are passed safely as a list and there is no shell injection, this is still a dangerous execution side effect because untrusted remote output can trigger browser launches or invoke registered handlers for non-web schemes, leading to phishing, unwanted application launches, or local handler abuse.
