Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
webmin-apache-show-idor — Webmin 2.670 - Medium 6.5 - Remote - IDOR - apache show.cgi reads denied vhost directives | Kitploit
Tools/GitHubGitHub/abraxas/webmin-apache-show-idor
Vulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringWeb SecurityPenetration TestingLabs & Practice
GitHub
abraxas/webmin-apache-show-idor

webmin-apache-show-idor

Webmin 2.670 - Medium 6.5 - Remote - IDOR - apache show.cgi reads denied vhost directives

View Repository
7 days agoNot yet reviewed
Share

Abraxas Labs - webmin-apache-show-idor

webmin-apache-show-idor

You give someone the Apache module in Webmin and only their website. The other virtual hosts are supposed to stay off their list. They still open one URL with the other site's name and read every directive for it: document roots, SSL certificate paths, rewrite rules, proxy backends, SetEnv values. They cannot change that host. They cannot open it in the list. The dump page forgot the check.

Class: IDOR Reach: Remote (Apache module user denied that virtual host)

I sat on apache/show.cgi because virt_index.cgi already refused the same id. The printer never called can_edit_virt. Loopback lab on 2.670 printed WEBMIN-H01-APACHE-IDOR out of the denied vhost and kept the siblings closed.

Webmin 2.670 (3a2b2b86) - Webmin

IDno CVE yet
ClassIDOR
ReachRemote (signed-in Apache module user; virts ACL denies that host)
CWECWE-639
CVSSMedium: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
ProductWebmin
Affected2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b)
Authsigned-in Webmin user granted the apache module, denied that VirtualHost
LicenseGNU Affero GPL v3.0
Lab127.0.0.1:18490 only

This is not unauthenticated. This is not a write. Granting the Apache module is not supposed to mean every vhost. virts is the per-host allow list. The list already uses it.

What an attacker can do

Needs a Webmin login that already has the Apache module, with virts set to their own host. They need the other site's ServerName:port (or its config index). They do not need types=*. They do not get a shell.

PrivilegeMethod / sinkRecon / integrity / availabilityLab-proven or inferred
Dump denied vhost directive names and valuesGET /apache/show.cgi?virt=denied.example:80Recon (config)Lab-proven. Witness WEBMIN-H01-APACHE-IDOR in the <pre> body. Deny string absent
Same dump by config indexGET /apache/show.cgi?virt=<idx>ReconSource. get_virtual_config accepts a decimal index (apache-lib.pl:542)
Dump a Directory section under a swapped virtGET /apache/show_dir.cgiReconSource. show_dir.cgi:7 never calls can_edit_virt
Own vhost still worksGET /apache/show.cgi?virt=allowed.example:80n/aLab-proven. Own ServerAdmin, no witness
Negative: list page on the denied idGET /apache/virt_index.cgi?virt=denied.example:80n/aLab-proven. You cannot edit this virtual server. No witness
Negative: save on the denied idGET /apache/save_virt.cgi?virt=denied.example:80n/aLab-proven. Same deny string. No witness

Stays closed on this leftover

AxisMethod / sinkWhy it is closed
Reconvirt_index.cgi, show_virt.cgi, dir_index.cgican_edit_virt at line 8
Integrityedit_virt.cgi, save_virt.cgi, edit_dir.cgi, save_dir.cgisame helper
Integritymanual_save.cgi splice of the blocktypes must be *. Lab user is types=0 1 2 3 4 5
ReconFile Manager prefix listingfixed in 2.670. Not this path
Integrityunauthenticated write, host RCEout of class

The leak is the file bodies of the vhost config directives (names and values). It is not the bytes of SSLCertificateKeyFile unless that key is inline in the config.

How I found it

I pinned webmin/webmin 2.670. The policy at webmin.com/security says fine-grained ACLs are the control once a module is granted. get_virtual_list_rows already greps through can_edit_virt. virt_index.cgi:8 and save_virt.cgi:8 error the same id. show.cgi loads virt at line 19 and prints at line 68. Nothing on that path calls the helper.

Wrong turns: treating Apache-module-granted as out of policy (the virts ACL is the control); filing show_virt.cgi (it checks); walking the UI from the list (denied hosts are not linked; the query string is enough); treating manual_save.cgi as the write (needs types=*); refiling File Manager listing.

Lab

Docker, git, python3.

python3 webmin-apache-show-idor-Abraxas-Labs.py

or:

cd lab
./run.sh

Clones webmin/webmin tag 2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b) into lab/src, builds webmin-lab:2.670, plants two vhosts and a virts-limited user, then hits loopback http://127.0.0.1:18490. The launcher chdirs into lab/ and execs run.sh.

IOC image=webmin-lab:2.670 label-version=2.670
IOC webmin-version=2.670
IOC plant witness=1 allowed-only=1 acl-virts=1
IOC login=limited sid=1
IOC allowed-show status=200 witness=0 own=1
IOC denied-virt-index status=200 denied=1 witness=0
IOC denied-save-virt status=200 denied=1 witness=0
IOC denied-show status=200 witness=1 denied-text=0
SUCCESS WEBMIN-H01-APACHE-SHOW WEBMIN-H01-APACHE-IDOR

The fix

Call can_edit_virt on show.cgi after get_virtual_config, the same two lines virt_index.cgi already has. Do the same on show_dir.cgi.

($conf, $v) = &get_virtual_config($in{'virt'});
&can_edit_virt($v) || &error($text{'virt_ecannot'});

Until then, do not treat "I hid the vhost from the list" as "I hid the directives."

References

  • github.com/webmin/webmin tag 2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b)
  • apache/show.cgi (show.cgi:19, :68, :120)
  • can_edit_virt (apache-lib.pl:1882) · get_virtual_config (apache-lib.pl:542)
  • Siblings that refuse: virt_index.cgi · show_virt.cgi · edit_virt.cgi · save_virt.cgi
  • CWE-639

License

GNU Affero GPL v3.0. See LICENSE. Loopback lab only. No warranty.

Abraxas Labs [email protected]

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools →