os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
cmd = cmd.replace(f"OFFSET{i}", f"{offset_val:.2f}") print(f" xfade chain: {n} clips, {n-1} transitions") ret = os.system(cmd) if ret != 0: print(" xfade failed -> fallback to simple concat") return concat_simple(clip_paths, output_path, output_dir)- Confidence
- 98% confidence
- Finding
- The script builds a full shell command string for ffmpeg and executes it with os.system, while interpolating clip paths and output paths derived from project/config data. If an attacker can influence filenames or directories, shell metacharacters can break out of quoting and execute arbitrary commands, which is significantly more dangerous than the otherwise safer subprocess list-based calls used elsewhere.
