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
CVE-2026-117517 — PoC and lab for CVE-2026-117517, a Tomcat LoadBalancerDrainingValve open redirect via ;jsessionid and leading slashes, with vuln vs fixed differential harness. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2026-117517
Vulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPapers & ResearchLabs & Practice
GitHubgooglesky/cve-2026-117517

CVE-2026-117517

PoC and lab for CVE-2026-117517, a Tomcat LoadBalancerDrainingValve open redirect via ;jsessionid and leading slashes, with vuln vs fixed differential harness.

View Repository
2 days agoNot yet reviewed

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.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    707
  • 3

    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.

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

    402
  • 5

    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.

    349
  • 6

    ARTEX

    baarai/artex

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

    341

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-117517 — Apache Tomcat: open redirect in LoadBalancerDrainingValve (incomplete fix of CVE-2026-25854)

License: MIT Research status: validated

CVECVE-2026-117517
ComponentApache Tomcat — org.apache.catalina.valves.LoadBalancerDrainingValve
Affected11.0.19–11.0.27, 10.1.53–10.1.61, 9.0.116–9.0.123
Fixed in11.0.29 / 10.1.62 / 9.0.124 — genuine vendor fix
CWECWE-601 (URL Redirection to Untrusted Site / Open Redirect)
ImpactWhen a node is in the DISABLED (draining) activation state, a crafted request URI is redirected to an attacker-controlled host — phishing / credential theft against users of a load-balanced Tomcat cluster
VectorNetwork — request URI carrying a ;jsessionid parameter plus leading double slashes
Trigger/;jsessionid=x//evil.example/phish

The original fix for CVE-2026-25854 added collapseLeadingSlashes(), but applied it before stripping the ;jsessionid path parameter:

// 11.0.27
String uri = collapseLeadingSlashes(request.getRequestURI());   // one leading slash -> unchanged
if (uri.contains(";" + sessionURIParamName + "=")) {
    uri = uri.replaceFirst(";" + sessionURIParamName + "=[^;/]*", "");  // leaves //evil.example/...
}
response.sendRedirect(uri, _redirectStatusCode);

The fix reorders the operations — strip the session parameter first, then collapse leading slashes — so the redirect stays same-host.


1. Root cause

/;jsessionid=x//evil.example/phish has a single leading slash, so collapseLeadingSlashes() leaves it intact. Removing ;jsessionid=x afterwards exposes the //evil.example/phish protocol-relative URL, which sendRedirect issues to the client. Reordering the two steps closes the bypass.

2. Reproduction environment

serviceimagerole
tomcat-vulncve-2026-117517:vulntomcat-embed-core 11.0.27
tomcat-fixedcve-2026-117517:fixedtomcat-embed-core 11.0.29
poccve-2026-117517-poc:localstdlib-only Python driver

A Java 17 harness invokes the real LoadBalancerDrainingValve.invoke() with the request in DIS draining state and no valid session, using Proxy-based Context/Valve/Log stand-ins. A Response subclass captures the raw sendRedirect argument so the protocol-relative redirect is observable before Tomcat's absolute-URL normalisation.

3. Running the environment

./run-lab.sh build     # Maven artifacts 11.0.27 / 11.0.29 + harness
./run-lab.sh up        # cve117517lab network: tomcat-vuln / tomcat-fixed
./run-lab.sh sweep
./run-lab.sh down

4. The PoC

poc/poc.py (stdlib only):

  • check — jsessionid bypass URI; exit 1 on a protocol-relative redirect, 0 when collapsed; 3 no worker, 2 unreachable.
  • exploit — narrated stages with the raw redirect target.
  • probe — jsessionid bypass / plain double-slash / benign matrix.
  • mitigation — 11.0.29 / 10.1.62 / 9.0.124.

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

python3 exploit/exploit.py --host=tomcat-vuln
# exit 1 on confirmed open redirect, 0 on a safe target

5. Expected results

URItomcat-vuln (11.0.27)tomcat-fixed (11.0.29)
/;jsessionid=x//evil.example/phishraw redirect //evil.example/phishraw redirect /evil.example/phish (same host)
//evil.example/xcollapsed (single leading slash rule)collapsed
/app/pagenormalnormal

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

6. Environment preconditions

  • Podman (or Docker); bounded containers on the isolated cve117517lab network.
  • The valve redirects only when the load-balancer activation attribute is DIS and the requested session is invalid — the harness sets both.

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

The fixed line collapses leading slashes after stripping the session parameter, so the jsessionid bypass yields a same-host relative redirect. Plain double-slash and benign controls behave consistently on both builds. No remaining ordering bypass was found in the valve's URI rewriting.

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/pom.xml           upstream tomcat-embed-core selector
lab/harness/Harness.java  driver invoking the real valve
lab/service.py        HTTP wrapper (POST /redirect)
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-117517
  • Prior CVE (incomplete fix) — https://www.cve.org/CVERecord?id=CVE-2026-25854
  • Apache announcement — https://lists.apache.org/thread.html/jshmkv50msc5lgwwqzt2b98w3t2n2v7w
  • Fixed releases — https://tomcat.apache.org/tomcat-11.0-doc/changelog.html
Download Tool