Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-29000 — Proof-of-concept exploit for CVE-2026-29000, an authentication bypass in pac4j-jwt via nested PlainJWT with alg:none inside a JWE container. | Kitploit
Tools/GitHubGitHub/otuva/cve-2026-29000
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingAuthentication
GitHubotuva/cve-2026-29000

CVE-2026-29000

Proof-of-concept exploit for CVE-2026-29000, an authentication bypass in pac4j-jwt via nested PlainJWT with alg:none inside a JWE container.

View Repository
15 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-29000: pac4j-jwt Authentication Bypass POC

This repository contains a proof-of-concept (POC) for an authentication bypass vulnerability in pac4j-jwt (CVE-2026-29000). The vulnerability allows an attacker to bypass signature verification by nesting a PlainJWT (using alg: none) inside a JWE (JSON Web Encryption) container.

Overview

The attack works by exploiting the server's willingness to decrypt a JWE encrypted with its public key and subsequently trust the inner JWT without validating its signature, provided it uses the none algorithm.

Prerequisites

Ensure you have Python 3 installed along with the required dependencies:

root@kitploit:~
pip install requests jwcrypto

Usage

1. Generate a Forged Token

Use exp.py to fetch the target's public key from the JWKS endpoint, craft a malicious token with ROLE_ADMIN privileges, and wrap it in a JWE.

root@kitploit:~
python3 exp.py <TARGET_URL> --user admin --role ROLE_ADMIN

Example:

root@kitploit:~
python3 exp.py http://localhost:8080

2. Interact with the API

Once you have the forged token, use app.py to interact with protected API endpoints.

root@kitploit:~
python3 app.py <TARGET_URL> <FORGED_TOKEN>

Test a specific endpoint:

root@kitploit:~
python3 app.py http://localhost:8080 <FORGED_TOKEN> --endpoint /api/users

Files

  • exp.py: The main exploit script that fetches JWKS, crafts a PlainJWT, and forges a JWE.
  • app.py: A utility script to test the forged token against discovered API endpoints (/api/dashboard, /api/users, /api/settings).

Disclaimer

This POC is for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal.

Download Tool