subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
f.write(f"file '{safe_path}'\n") try: result = subprocess.run( [ 'ffmpeg', '-y', '-f', 'concat', '-safe', '0', '-i', concat_list_path,- Confidence
- 88% confidence
- Finding
- The code builds an ffmpeg concat manifest from file paths that may be influenced by `output_path`, and then runs `ffmpeg` with `-safe 0`, disabling ffmpeg's path safety checks. Although it does not use a shell, an attacker who can control output filenames or place crafted segment paths could cause ffmpeg to read arbitrary local files or unexpected paths during merge, which is more dangerous in an agent skill that may process user-supplied filenames automatically.
