Rapid7 Vulnerability & Exploit Database

Webmin Package Updates RCE

Back to Search

Webmin Package Updates RCE

Disclosed
07/26/2022
Created
08/29/2022

Description

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.

Author(s)

  • Christophe De La Fuente
  • Emir Polat

Platform

Linux,Unix

Architectures

cmd, x86, x64, aarch64

Development

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/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

;