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/googlesky/cve-2026-104099
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingLabs & Practice
GitHubgooglesky/cve-2026-104099

CVE-2026-104099

Proof-of-concept and lab for CVE-2026-104099: unnormalized request paths bypass fabio route ACL and basic-auth gates, with differential vuln/fixed harness and exploit script.

View Repository
1 day agoNot yet reviewed
Share

CVE-2026-104099 — fabio: unnormalized request paths bypass route access control

License: MIT Research status: validated

CVECVE-2026-104099
Componentfabio — proxy/http_proxy.go::HTTPProxy.ServeHTTP (route selection / ACL gates)
Affected>= 1.7.0, < 1.7.3 (confirmed at HEAD b841544)
Fixed in1.7.3 — commit f00ce1a (Merge commit from fork, GHSA-4hrh-34w3-5ww8)
CWECWE-862 (Missing Authorization), CWE-22 (Improper Limitation of a Pathname)
ImpactRoute selection used the raw, un-normalized request path, and the per-route ACL and basic-auth gates hang off that selection. A dot-segment, encoded-dot, or double-slash variant of a protected path selects a different route, skips both gates, and is forwarded to a backend that normalizes and serves the protected resource. Unauthenticated; complete bypass of the access control the operator configured. In Kubernetes, an untrusted image or a malicious client can reach routes intended to be restricted
VectorUnauthenticated HTTP request with an unnormalized path (/admin/../admin, /admin/%2e%2e/admin)
TriggerAny protected prefix reachable through a catch-all route → backend serves the protected resource

The vulnerable handler forwarded the raw path to Lookup:

// proxy/http_proxy.go — pre-fix
t := p.Lookup(r)          // r.URL.Path is the raw, un-normalized path
if t.AccessDeniedHTTP(r) { ... }   // ACL hangs off the SELECTED route

The fix normalizes before routing:

// fixed (commit f00ce1a)
r.URL.Path = normalizePath(r.URL.Path)   // url.Parse + path.Clean, trailing slash kept
t := p.Lookup(r)

1. Root cause

fabio selects a route from r.URL.Path as received, then applies that route's ACL and basic-auth gates. Go's HTTP server does not clean paths before passing them to a custom handler, and r.URL.Path is already percent-decoded, so /admin/../admin and /admin/%2e%2e/admin both reach Lookup with dotted segments intact. Neither matches a route configured for the exact protected path /admin, so a catch-all route without ACLs is selected. The proxy forwards the raw path upstream; the backend cleans it to /admin and serves the protected resource. The fix derives a normalized path from url.Parse plus path.Clean (preserving a trailing slash) and assigns it to r.URL.Path before Lookup, so routing and both gates see the same path the backend will serve.

2. Reproduction environment

serviceimagerole
fb-vulncve-2026-104099:vulnreal fabio @ e23df7bc (parent of fix), built with Go 1.26
fb-fixedcve-2026-104099:fixedreal fabio @ f00ce1a (fix, release 1.7.3)
poccve-2026-104099-poc:localstdlib-only Python driver

Both sides compile the actual upstream proxy.HTTPProxy at their pinned commit. The only harness-supplied pieces are the Lookup callback — an operator-style route config: exact /admin → route.Target with a deny-all ACL, everything else → an unguarded target — and a backend that normalizes with path.Clean and serves PROTECTED-SECRET for /admin.

3. Running the environment

./run-lab.sh build     # builds both sides from pinned upstream commits (Go 1.26)
./run-lab.sh up        # cve104099lab network: fb-vuln / fb-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — exit 1 when /admin/../admin returns 200 with the protected body, 0 when the ACL returns 403; 3 no worker, 2 unreachable/indeterminate.
  • exploit — narrated chain: protected route with ACL → attacker dot- segment path → catch-all route selected → backend normalizes and serves the protected resource. Also exercises the percent-encoded variant.
  • probe — traversal, encoded-dot and direct paths with status/body.
  • mitigation — 1.7.3 / commit f00ce1a / normalization before Lookup.

A standalone full-chain exploit ships at exploit/exploit.py:

python3 exploit/exploit.py --host=fb-vuln
# exit 1 on confirmed ACL bypass, 0 on a safe target

5. Expected results

requestfb-vuln (e23df7bc)fb-fixed (f00ce1a, 1.7.3)
/admin/../admin200 — PROTECTED-SECRET (ACL bypass)403 — access denied
/admin/%2e%2e/admin200 — PROTECTED-SECRET403 — access denied
/admin403 — access denied403 — access denied

Captured runs: evidence/check-*-run.txt, evidence/exploit-*-run.txt, evidence/probe-*-run.txt, evidence/mitigation-*-run.txt, evidence/exploit-standalone-run.txt, evidence/exploit-standalone-fixed-run.txt, evidence/versions.txt, evidence/0day-sweep.txt.

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve104099lab network; Go 1.26 toolchain in the lab images; upstream source fetched from the pinned commits at build time.
  • Real-world exploitation requires an untrusted client able to reach a fabio listener where the protected route coexists with a catch-all route and the backend normalizes paths before serving.

7. Additional findings (0-day sweep on the fixed line)

The normalization is applied before route selection and therefore before the per-route ACL and basic-auth gates. The direct path /admin remains denied on both builds, confirming the protected route itself is unaffected. Within the vectors exercised here — dot-segment, percent-encoded dot-segment and direct paths — no residual bypass was observed on the fixed line.

8. Repository layout

README.md             this write-up
run-lab.sh            environment driver (build / up / sweep / down)
Makefile              convenience targets
poc/poc.py            the PoC (check / exploit / probe / mitigation)
exploit/exploit.py    standalone full-chain exploit
lab/harness.go        operator-style Lookup + normalizing backend
lab/lab.Dockerfile    builds the real fabio proxy at each pinned commit
lab/service.py        HTTP wrapper (POST /request), child-process isolation
evidence/             captured runs of every mode on both sides
TRACKING.md           excluded (working record)

9. References

  • CVE record — https://www.cve.org/CVERecord?id=CVE-2026-104099
  • GitHub advisory — https://github.com/fabiolb/fabio/security/advisories/GHSA-4hrh-34w3-5ww8
  • Fix commit — https://github.com/fabiolb/fabio/commit/f00ce1a446a4b7a3bccbefbb7bfe4a5e0e3fd817
  • Upstream regression test — proxy/http_integration_test.go::TestProxyPathNormalization
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.

    901
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    861
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    668
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    448
  • 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.

    414
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    401

Explore all tools

Browse our collection of tools

View all tools →