Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
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
工具/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.

查看仓库
12天前尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

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.

下载工具

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    926
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    699
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT 平台,可将 Shadowserver 报告导入 MongoDB,并将其重放为交互式地图、分析、发现、公告和高管仪表板。

    428
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer是一个开源的特权访问管理(PAM)平台,为DevOps和IT团队提供通过Web浏览器按需安全访问SSH、RDP、Kubernetes、数据库和RemoteApp端点的能力。

    397
  • 5

    SafeLine

    chaitin/safeline

    自托管WAF和反向代理,可过滤恶意HTTP流量、阻止SQL注入、XSS和机器人攻击,具备速率限制和动态HTML/JS加密功能。

    347
  • 6

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    337

探索所有工具

浏览我们的工具集合

查看所有工具 →