Skip to content
STAGE33R

Guides · Server software · 6 steps · reviewed

Webmin: update it, restrict who can reach port 10000 and turn on two-factor

Webmin is a root-level control panel, so a flaw or a leaked password is a full server compromise. The 2019 backdoor in the release packages (CVE-2019-15107) showed why it must be updated and not exposed to everyone.

  1. Check the version

    Compare it with the current release and the security notices. Anything older is a reason to update today.

    dpkg -s webmin | grep Version || rpm -q webmin
  2. Update from the official repository

    Use the repository so updates arrive with the rest of the system, then review the config after the update.

    sudo apt update && sudo apt install --only-upgrade webmin
  3. Restrict access by IP

    In Webmin Configuration open IP Access Control and allow only your own addresses, then also firewall the port.

    sudo ufw allow from YOUR_IP to any port 10000 proto tcp
    sudo ufw deny 10000/tcp
  4. Turn on two-factor authentication

    Enable it in Webmin Configuration, Two-Factor Authentication, and test with a second session open.

  5. Use HTTPS with a real certificate

    Keep SSL on and install a valid certificate so the login is not intercepted or trained to ignore warnings.

  6. Remove modules and users you do not need

    Each module and each Webmin user is access to root. Delete what is not in use and give the rest the least rights.

Common mistakes

  • Closing port 10000 from the firewall before you have another way in.
  • Leaving Webmin on an old release because it still works.
  • Sharing the root login for several admins.

How to undo it

Remove the firewall rule or IP restriction from the console, and reinstall the previous package version if an update causes a problem.

Sources

Commands are for Debian and Ubuntu unless noted. Test on a copy first and keep a backup: you are responsible for changes on your own systems.