
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.
| CVE | CVE-2026-104099 |
| Component | fabio — proxy/http_proxy.go::HTTPProxy.ServeHTTP (route selection / ACL gates) |
| Affected | >= 1.7.0, < 1.7.3 (confirmed at HEAD b841544) |
| Fixed in | 1.7.3 — commit f00ce1a (Merge commit from fork, GHSA-4hrh-34w3-5ww8) |
| CWE | CWE-862 (Missing Authorization), CWE-22 (Improper Limitation of a Pathname) |
| Impact | Route 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 |
| Vector | Unauthenticated HTTP request with an unnormalized path (/admin/../admin, /admin/%2e%2e/admin) |
| Trigger | Any 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)
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.
| service | image | role |
|---|---|---|
fb-vuln | cve-2026-104099:vuln | real fabio @ e23df7bc (parent of fix), built with Go 1.26 |
fb-fixed | cve-2026-104099:fixed | real fabio @ f00ce1a (fix, release 1.7.3) |
poc | cve-2026-104099-poc:local | stdlib-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.
./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
poc/poc.py (stdlib only):
/admin/../admin returns 200 with the protected
body, 0 when the ACL returns 403; 3 no worker, 2 unreachable/indeterminate.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
| request | fb-vuln (e23df7bc) | fb-fixed (f00ce1a, 1.7.3) |
|---|---|---|
/admin/../admin | 200 — PROTECTED-SECRET (ACL bypass) | 403 — access denied |
/admin/%2e%2e/admin | 200 — PROTECTED-SECRET | 403 — access denied |
/admin | 403 — access denied | 403 — 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.
cve104099lab
network; Go 1.26 toolchain in the lab images; upstream source fetched from
the pinned commits at build time.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.
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)
proxy/http_integration_test.go::TestProxyPathNormalization