Description
This module attempts to gain root privileges on systems running Serv-U FTP Server versions prior to 15.1.7.
The `Serv-U` executable is setuid `root`, and uses `ARGV[0]` in a call to `system()`, without validation, when invoked with the `-prepareinstallation` flag, resulting in command execution with root privileges.
This module has been tested successfully on Serv-U FTP Server version 15.1.6 (x64) on Debian 9.6 (x64).
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/local/servu/ftp_server_prepareinstallation_priv_escmsf undefined(ftp_server_prepareinstallation_priv_esc) > show actions ...actions...msf undefined(ftp_server_prepareinstallation_priv_esc) > set ACTION < action-name >msf undefined(ftp_server_prepareinstallation_priv_esc) > show options ...show and set options...msf undefined(ftp_server_prepareinstallation_priv_esc) > 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