subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) # ffmpeg: WAV → OGG Opus (Telegram-compatible) subprocess.run( [ "ffmpeg", "-y", "-i", str(wav_path),- Confidence
- 65% confidence
- Finding
- This ffmpeg invocation writes to a user-controlled output path and uses the executable name from PATH rather than an absolute path. In a hostile local environment, PATH hijacking could cause execution of a malicious ffmpeg binary, and arbitrary file overwrite is also possible because -y forces replacement of an existing file.
