Rapid7

module

Webmin Package Updates RCE

Disclosed
Jul 26, 2022
Created
Aug 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.

Authors

Christophe De La Fuente
Emir Polat

Platform

Linux,Unix

Architectures

cmd, x86, x64, aarch64

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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.