Description
This module exploits a template injection vulnerability in the MotionEye Frontend.
MotionEye Frontend versions 0.43.1b4 and prior are vulnerable to OS Command Injection in configuration parameters such as image_file_name. Unsanitized user input is written to MotionEye Frontend configuration files, allowing remote authenticated attackers with admin access to achieve code execution.
Successful exploitation will result in the command executing as the user running the web server, potentially exposing sensitive data or disrupting survey operations.
An attacker can execute arbitrary system commands in the context of the user running the web server.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/linux/http/motioneye/auth_rce_cve_2025_60787msf undefined(auth_rce_cve_2025_60787) > show actions ...actions...msf undefined(auth_rce_cve_2025_60787) > set ACTION < action-name >msf undefined(auth_rce_cve_2025_60787) > show options ...show and set options...msf undefined(auth_rce_cve_2025_60787) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub