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-11800 — Python PoC for CVE-2026-11800: forges HS256 JWT assertions signed with a Keycloak IdP public key to bypass authentication and impersonate federated users. | Kitploit
Tools/GitHubGitHub/sickwell/cve-2026-11800
Vulnerability AnalysisExploitationWeb Application ExploitationCryptographyPenetration TestingIdentity & Access Management (IAM)Authentication
GitHubsickwell/cve-2026-11800

CVE-2026-11800

Python PoC for CVE-2026-11800: forges HS256 JWT assertions signed with a Keycloak IdP public key to bypass authentication and impersonate federated users.

View Repository
10 days agoNot yet reviewed
Share

CVE-2026-11800 — Keycloak JWT Authorization Grant Algorithm Confusion (Auth Bypass)

Unauthenticated authentication bypass in Keycloak, fixed in 26.6.4 (GHSA-j97h-3f8r-mrjr, CWE-347).

The bug

A Keycloak realm with an OIDC identity provider configured with a hardcoded public key (useJwksUrl=false) and the JWT authorization grant enabled accepted symmetric HS256 client assertions whose HMAC secret is the IdP's public key bytes (raw base64 DER — exactly the publicKeySignatureVerifier value). Since the "secret" is public material, an attacker holding only a valid confidential client's credentials can forge an assertion for any federated user identity and receive a valid access token — no user credentials, no private key, no IdP access.

Two code factors, both fixed in 26.6.4:

  • validateSignatureAlgorithm() did not reject symmetric algorithms when the signature verifier was a hardcoded public key;
  • HardcodedPublicKeyLoader contained an HMAC branch (Base64Url.decode(publicKeySignatureVerifier) used directly as the shared secret).

What the PoC does

exploit.py — pure Python 3 stdlib, zero dependencies:

  1. discovery: GET /realms/<realm>/.well-known/openid-configuration
  2. resolve the IdP public key → raw DER bytes
  3. forge an HS256 assertion (iss = IdP issuer, sub = federated user id) signed with the public key bytes as HMAC secret
  4. POST token_endpoint with grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer → HTTP 200, access token for the impersonated user
  5. negative control: the same request signed with a random secret → HTTP 400 invalid_grant / Invalid signature (proves the server verifies the HMAC against the public key bytes)
  6. impersonation proof: userinfo called with the forged token → HTTP 200, body of the impersonated user

Verified end-to-end against quay.io/keycloak/keycloak:26.6.3.

Requirements on the target

  • Keycloak ≤ 26.6.3
  • realm with an OIDC IdP: publicKeySignatureVerifier set, useJwksUrl=false, jwtAuthorizationGrantEnabled=true, jwtAuthorizationGrantAssertionSignatureAlg not pinned
  • a confidential client with oauth2.jwt.authorization.grant.enabled=true and the IdP allow-listed (client_id/client_secret are attacker inputs)
  • the IdP's public key (public material — its JWKS or website), the IdP issuer, and the sub of a federated user

Usage

Insert the target host/port (and deployment values) into the CONFIG block of exploit.py, then:

python3 exploit.py http://target:8080

Supply the IdP public key via one of:

  • IDP_PUBKEY_B64 — raw base64 DER (the exact publicKeySignatureVerifier value) or a PEM block
  • IDP_PUBKEY_FILE — path to a PEM file
  • KC_ADMIN_USER / KC_ADMIN_PASS env vars — key fetched from the Keycloak Admin REST API (lab mode)

Fix

  • upgrade to Keycloak 26.6.4+ (rejects the forged assertion with Invalid signature algorithm)
  • pin jwtAuthorizationGrantAssertionSignatureAlg to an asymmetric algorithm
  • prefer JWKS (useJwksUrl=true) over hardcoded keys

References

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-11800
  • GHSA-j97h-3f8r-mrjr: https://github.com/advisories/GHSA-j97h-3f8r-mrjr
  • Upstream fix: keycloak/keycloak PR #50374 — Remove support for symmetric algorithms in JWT public key validators

Legal

For authorized security testing only.

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    383
  • 4

    ARTEX

    baarai/artex

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

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

    309
  • 6

    redforge

    cybersecurity91/redforge

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

    283

Explore all tools

Browse our collection of tools

View all tools →