The application allows users to upload files without proper validation or type checking. An attacker can exploit this by uploading a malicious file, such as a PHP script disguised as a video file (e.g., .php), which will be executed on the server when accessed through the provided URL.
The application allows an attacker to execute arbitrary commands via the FFmpeg command line tool. The 'ffmpeg_command' is constructed using user-controlled input and executed without proper validation or sanitization, leading to Command Injection. An attacker can exploit this by crafting a malicious string that changes the course of script execution, potentially gaining unauthorized access or executing system commands.
The application exposes a sensitive endpoint without proper authentication. An attacker can directly access this endpoint and perform actions that they should not be able to, such as uploading or processing videos without authorization.