subprocess module call
- Category
- Dangerous Code Execution
- Confidence
- 92% confidence
- Finding
The code passes a user-influenced URL into an external downloader, causing the skill to fetch arbitrary remote content and process it locally. Although shell injection is mitigated by using an argument list and
--, this still expands the attack surface to SSRF-like outbound access, retrieval of untrusted media, and exposure to vulnerabilities inyt-dlpor downstream codecs.- Content
python video_file = frame_dir / "video.mp4" try: subprocess.run([ ytdlp, "--", url, # positional isolation prevents option injection "--format", "bestvideo[height<=720][ext=mp4]+bestaudio[ext=m4a]/best[height<=720][ext=mp4]/best[height<=720]", "--output", str(video_file),
