subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
test_cmd = ["yt-dlp", "--cookies-from-browser", browser, "--no-warnings", "-F", url] try: subprocess.run(test_cmd, capture_output=True, timeout=30) cmd.extend(["--cookies-from-browser", browser]) print(f" ↳ 使用 {browser} cookies") break- Confidence
- 86% confidence
- Finding
- This subprocess invocation probes local browser cookie stores via yt-dlp using a user-supplied URL, which is a sensitive operation beyond simple video download. While it is not command injection, it causes local secret material to be accessed and potentially used for outbound authenticated requests without explicit consent or tight host validation.
