subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) concat_file = out / "voice-concat.txt" concat_file.write_text(concat_text, encoding="utf-8") subprocess.run( [ "ffmpeg", "-hide_banner", "-loglevel", "error", "-y", "-f", "concat", "-safe", "0", "-i", str(concat_file),- Confidence
- 87% confidence
- Finding
- The code generates an ffmpeg concat manifest from user-influenced paths and then runs ffmpeg with '-safe 0', which disables path safety checks and permits absolute and otherwise unsafe paths. If an attacker can control manifest line IDs or the audio directory contents, they may cause ffmpeg to read unintended local files or special file paths during media processing, which is more dangerous in an automation skill that processes external assets.
