Webmin 1.890 Exploit – What Happened?
The Webmin source code was maliciously modified so that version 1.890 shipped with a backdoor allowing anyone who knew about it to run commands as root; versions 1.900 to 1.920 carried similar code that only worked when changing expired passwords was enabled. The build server had been compromised and the modified file was carried forward through backups.
webmin.com
Published on webmin.com
This page explains how to report security issues in Webmin and Usermin and lists published advisories. Install the latest stable release for current fixes.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the project's build server was compromised and a modified script was shipped from a local build directory rather than from checked-in source, with the file timestamp altered to hide the change.
Impact
Anyone aware of the backdoor could execute commands as root on a default Webmin 1.890 install; on 1.900 to 1.920 it only worked if the admin had enabled changing of expired passwords.
What the attacker needed
Webmin 1.890 default install; or 1.900-1.920 with expired-password change enabled; network access to Webmin's port
The fix
The malicious code was removed and version 1.930 was released, with the build process changed to use only checked-in code from GitHub and all passwords and keys rotated.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A backdoor is hidden code that lets someone get in without permission. Here, an attacker broke into the server that builds Webmin and quietly changed one file so the released program would run any command the attacker sent, as the all-powerful root user. Users had no way to notice from the normal download.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.