subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) try: subprocess.run(cmd, check=True, stderr=subprocess.DEVNULL if quiet else None) if not quiet: print(f" 💾 {out_file}", file=sys.stderr) except subprocess.CalledProcessError as e:- Confidence
- 78% confidence
- Finding
- This ffmpeg invocation embeds an expression string into the -af filter argument using speaker-derived timestamp ranges. Although the timestamps are numeric, building filter expressions dynamically and passing attacker-influenced media-derived structures into ffmpeg can become dangerous if upstream values are corrupted or if future changes allow non-numeric content, because ffmpeg filtergraphs are their own mini-language.
