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
Tools/GitHubGitHub/abraxas/webmin-chooser-chroot
Vulnerability AnalysisExploitationInformation GatheringWeb SecurityPenetration TestingLabs & Practice
GitHubabraxas/webmin-chooser-chroot

webmin-chooser-chroot

Webmin 2.670 - Medium 5.3 - Remote - Path listing - chooser chroot prefix lists names outside jail

View Repository
7 days agoNot yet reviewed
Share

Abraxas Labs - webmin-chooser-chroot

webmin-chooser-chroot

A signed-in Webmin user who is only supposed to pick files inside one folder can still see names of files outside it. They open the file picker, pass a chroot path that starts with their folder then walks up, and the listing leaves the jail. Names, sizes, and dates only. Not file contents. This only bites when that picker root is not the whole disk.

Class: Path listing Reach: Remote (signed-in user whose chooser root is not /)

Webmin 2.670 (3a2b2b86) - Webmin

I logged in as a user whose chooser root was /lab/jail. file=../ stayed in the jail. chroot=/lab/jail/../ listed a filename I had planted one directory up. The File Manager search path on this tag already stays inside allowed_paths. This is the other window.

IDno CVE yet
ClassPath listing (chooser.cgi chroot prefix plus ..)
ReachRemote (signed-in user whose global chooser root is not /)
CWECWE-22
CVSSMedium: 5.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
ProductWebmin
Affected2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b)
Authsession cookie; chooser root set to a directory other than /
LicenseGNU Affero GPL v3.0
Labloopback 127.0.0.1:18510. Compose webminh21.

What an attacker can do

Needs a Webmin login whose file-chooser root is a real jail (home, or an explicit directory). Default root=/ already lists the disk and is not this bug. chooser.cgi is not under a module, so module ACL is not the gate. fileunix still defaults to root, so the listing often runs as root even for a limited Webmin user.

PrivilegeMethod / sinkRecon / integrity / availabilityLab-proven or inferred
List the jail onlyGET /chooser.cgi?frame=1&type=0Recon of names inside rootLab-proven. allowed.txt present, witness absent
Walk with file=../chooser.cgi:84 rejects .. in filen/a (negative)Lab-proven. stayed in jail
List outside the jailGET /chooser.cgi?frame=1&type=0&chroot=/lab/jail/../Recon: names, sizes, mtimes outside rootLab-proven. witness filename listed
List other homes / root-only dirssame sink, fileunix=rootRecon of names the Unix user can statInferred. lab listed /lab, not /root
Read file bodieschooser columnsn/aClosed. names, sizes, mtimes only

Stays closed on this leftover

AxisMethod / sinkWhy it is closed
Reconfile=../chooser.cgi:84
ReconFile Manager search / listingfilemin/search.cgi filters to allowed_paths on this tag
Reconhelp.cgi ..miniserv simplifies PATH_INFO before read_help_file
ReconDefault root=/already lists everything; not this bug
IntegrityFile write, extract, shellnot this CGI
ReconUnauthenticated chooserneeds a session

The picker is the "..." button from file_chooser_button. In ordinary words: the popup that is supposed to stay in one folder still has a second path argument, and that one is not canonicalized.

How I found it

chooser.cgi:62-64 treats chroot as inside the jail when it is a string prefix of root, then sets $rootdir undef. allowed_dir treats undef as empty and returns 1. .. is rejected only in file. opendir uses $in{'chroot'}.$dir as-is.

Wrong turns: treating the 2.670 File Manager listing fix as this CGI; stopping after file=../ came back clean; calling default root=/ a finding.

Lab

python3 webmin-chooser-chroot-Abraxas-Labs.py

or:

cd lab
./run.sh

Clones webmin/webmin tag 2.670 (3a2b2b8671c0669c129f5275b3dd1853106ae02b) into lab/src and reuses webmin-lab:2.670 when present. Loopback only.

SUCCESS WEBMIN-H21-CHOOSER how=live chroot-prefix-escape=yes file-dotdot-rejected=yes WEBMIN-H21-CHOOSER

The fix

Canonicalize chroot (resolve_links or equivalent). Reject .. in chroot the same way file already does. Do not clear $rootdir on a string prefix. Keep the jail so allowed_dir still runs is_under_directory on the real path.

References

  • github.com/webmin/webmin 3a2b2b8671c0669c129f5275b3dd1853106ae02b
  • chooser.cgi
  • file_chooser_button
  • CWE-22
  • webmin.com/security

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.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    795
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    520
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    439
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    346
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    267
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    264

Explore all tools

Browse our collection of tools

View all tools →