This module exploits an arbitrary command injection in Webmin versions prior to 1.997. Webmin uses the OS package manager (`apt`, `yum`, etc.) to perform package updates and installation. Due to a lack of input sanitization, it is possibe to inject arbitrary command that will be concatenated to the package manager call. This exploit requires authentication and the account must have access to the Software Package Updates module.
Linux,Unix
cmd, x86, x64, aarch64
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/webmin_package_updates_rce
msf exploit(webmin_package_updates_rce) > show targets
...targets...
msf exploit(webmin_package_updates_rce) > set TARGET < target-id >
msf exploit(webmin_package_updates_rce) > show options
...show and set options...
msf exploit(webmin_package_updates_rce) > exploit
Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.
– Jim O’Gorman | President, Offensive Security