subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
time.sleep(2) subprocess.Popen([FOOBAR, "/stop"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) time.sleep(1) subprocess.Popen([FOOBAR, "/play", url], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) def stop_foobar():- Confidence
- 88% confidence
- Finding
- This subprocess call passes a user-influenced URL directly to an external player process. While it does not use a shell, it can still cause the application to open arbitrary local or remote resources, enabling SSRF-like network access, unexpected protocol handling, or abuse of the media player's parser if a crafted URL or playlist is supplied.
