subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("Executing FFmpeg...") try: process = subprocess.Popen( ffmpeg_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,- Confidence
- 78% confidence
- Finding
- Although subprocess.Popen is called without a shell, the code feeds ffmpeg a filter graph built from partially user-controlled values such as subtitle paths, resolution, and production-plan fields. In a post-production skill that processes attacker-supplied media and metadata, this creates a meaningful attack surface for ffmpeg misuse, unexpected file access via filters, or denial-of-service through malformed/hostile inputs.
