subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
f.write(f"file '{wav_path}'\n") f.write(f"file '{silence_path}'\n") subprocess.run([ "ffmpeg", "-f", "concat", "-safe", "0", "-i", concat_list, "-c:a", "libopus", "-b:a", "64k", "-ar", "48000", ogg_path, "-y"- Confidence
- 68% confidence
- Finding
- Although shell injection is not present, this ffmpeg concat invocation consumes a concat manifest built from temp file paths using -safe 0. Because tempfile.mktemp is used elsewhere to create predictable paths before opening them, a local attacker could race or precreate path targets and influence what ffmpeg reads. In a skill that automatically processes and exfiltrates audio, that increases the danger of unintended local file access or processing of attacker-supplied files.
