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-29000-Python-PoC-pac4j-JWT-AuthenticationBypass-Poc — Python proof-of-concept demonstrating an authentication bypass in pac4j JWT by crafting a JWE token with an unsigned inner JWT, allowing privilege escalation without a private key. | Kitploit
Tools/GitHubGitHub/alihussainzada/cve-2026-29000-python-poc-pac4j-jwt-authenticationbypass-poc
Authentication & AuthorizationPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & Education
GitHubalihussainzada/cve-2026-29000-python-poc-pac4j-jwt-authenticationbypass-poc

CVE-2026-29000-Python-PoC-pac4j-JWT-AuthenticationBypass-Poc

Share

Python proof-of-concept demonstrating an authentication bypass in pac4j JWT by crafting a JWE token with an unsigned inner JWT, allowing privilege escalation without a private key.

View Repository
2318 months agoNot yet reviewed

CVE-2026-29000 – pac4j JWT Authentication Bypass (Python PoC)

Python Proof‑of‑Concept for CVE‑2026‑29000, a critical authentication bypass affecting applications using the pac4j JWT module.

The vulnerability allows attackers to authenticate as arbitrary users by sending a malicious JWE token containing an unsigned PlainJWT (alg: none).


🧠 Vulnerability Overview

pac4j applications may use the following token flow:

  1. User authenticates via /api/auth/login
  2. Server returns an encrypted JWT (JWE)
  3. Client sends token as a Bearer token
  4. Server decrypts the JWE and verifies the inner JWT signature

Due to incorrect handling of the JWT parsing logic, when the inner token is a PlainJWT (unsigned token):

  • toSignedJWT() returns null
  • Signature verification is skipped
  • Claims are accepted as trusted

This allows an attacker to:

  • forge arbitrary claims
  • escalate privileges
  • authenticate as admin

⚠️ Impact

An attacker can:

  • Authenticate as any user
  • Assign arbitrary roles
  • Access protected endpoints
  • Achieve full privilege escalation

No private key is required — only the public key exposed via JWKS.


🧪 Proof of Concept

This repository provides a Python PoC that:

  • Fetches the public key from a JWKS endpoint
  • Creates an unsigned JWT
  • Wraps it inside a JWE token
  • Generates a malicious Bearer token

📦 Requirements

Python 3.x

Install dependencies:

pip install jwcrypto requests

🚀 Usage

python3 poc.py \
--jwks http://target:8080/api/auth/jwks \
--user admin \
--role ROLE_ADMIN

Example output:

=== Malicious JWE Token ===

eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4R0NNIiwiY3R5IjoiSldUIn0...

Use it as:

Authorization: Bearer <TOKEN>

⚠️ Disclaimer

This repository is provided for educational and research purposes only. Do not use this code against systems without proper authorization.


👨‍💻 Author

Ali Hussainzada Application Security Researcher | Bug Hunter

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.

    786
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    429
  • 4

    redforge

    cybersecurity91/redforge

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

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

    262
  • 6

    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.

    256

Explore all tools

Browse our collection of tools

View all tools →