Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
CVE-2026-18963 — Ferramenta de deteção e verificação para CVE-2026-18963, uma bypass do estado de reset-credentials do Keycloak. Realiza fingerprinting de versão, enumeração de realm/client/user e testa se a pré-condição do action-token é aplicada, para avaliações autorizadas. | Kitploit
Ferramentas/GitHubGitHub/alt3kx/cve-2026-18963
ReconhecimentoAnálise de VulnerabilidadesExploraçãoColeta de InformaçõesSegurança WebTestes de PenetraçãoAutenticação
GitHubalt3kx/cve-2026-18963

CVE-2026-18963

Ferramenta de deteção e verificação para CVE-2026-18963, uma bypass do estado de reset-credentials do Keycloak. Realiza fingerprinting de versão, enumeração de realm/client/user e testa se a pré-condição do action-token é aplicada, para avaliações autorizadas.

Ver Repositório
há 13h 38mAinda não revisado

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar
Site

Detector de Bypass do Estado Reset-Credentials CVE-2026-18963 do Keycloak

https://github.com/user-attachments/assets/005fab89-339a-4e4e-881c-da6a626f6c9e

root@kitploit:~
python3 kc-resetforge.py -h


usage: kc-resetforge.py [-h] [--target TARGET] [--targets-file TARGETS_FILE] [--port PORT] [--realm REALM]
                        [--client-id CLIENT_ID] [--username USERNAME] [--new-password NEW_PASSWORD] [--skip-enum]
                        [--enum-only] [--kc-version] [--kc-reset-link] [--corpus-dir CORPUS_DIR] [--label LABEL]
                        [--enum-realms] [--no-enum-realms] [--enum-clients] [--no-enum-clients] [--enum-users]
                        [--no-enum-users] [--realm-wordlist REALM_WORDLIST] [--client-wordlist CLIENT_WORDLIST]
                        [--user-wordlist USER_WORDLIST] [--enum-users-client-id ENUM_USERS_CLIENT_ID]
                        [--verify-login] [--no-verify-login] [--verify-client-id VERIFY_CLIENT_ID]
                        [--timeout TIMEOUT] [--request-delay REQUEST_DELAY] [--output-dir OUTPUT_DIR]
                        [--proxy PROXY] [-d] [-y] [--json-out JSON_OUT]

CVE-2026-18963 Keycloak recon + exploit framework (own infra only)

options:
  -h, --help            show this help message and exit
  --target TARGET       Single target: bare host/IP, host:port, or a full http(s)://host[:port] URL. Scheme and port
                        are auto-detected if omitted (tries https then http; defaults to 443/80 respectively).
                        Mutually exclusive with --targets-file.
  --targets-file TARGETS_FILE
                        Path to a file with one target per line, same flexible formats as --target ('#' comments
                        allowed). Runs recon+exploit against every target in turn.
  --port PORT           Override port for --target (or a fallback for --targets-file lines without their own port).
                        Per-line ports in --targets-file always take precedence.
  --realm REALM         Realm to target. If omitted, auto-selected from recon results.
  --client-id CLIENT_ID
                        OIDC client_id to use. If omitted, auto-selected from recon results.
  --username USERNAME   Username to target. If omitted, auto-selected from recon results.
  --new-password NEW_PASSWORD
                        Password to set for the target user (default: 'Test123!')
  --skip-enum           Skip recon entirely; --realm/--client-id/--username become required.
  --enum-only           Run recon and print results, but do not attempt exploitation.
  --kc-version          Only run the Keycloak version recon phase (fingerprint + corpus match + patch status) and
                        exit - skips realm/client/user enumeration and exploitation entirely. Works with both
                        --target and --targets-file.
  --kc-reset-link       Only check whether the self-service password-reset ('Forgot Password?' /
                        resetPasswordAllowed) flow is exposed, then exit - a single non-destructive GET, no username
                        needed. Auto-discovers realm/client via a light realm+client recon unless --realm/--client-
                        id are given explicitly. Skips exploitation. Works with both --target and --targets-file.
  --corpus-dir CORPUS_DIR
                        Directory of known-version fingerprints for exact version matching (default:
                        kc_version_corpus).
  --label LABEL         Save THIS target's fingerprint into the corpus under this version label instead of matching
                        an unknown version. Use on an instance of known version.
  --enum-realms         Enumerate realm names (default: on during recon).
  --no-enum-realms
  --enum-clients        Enumerate client IDs per realm (default: on during recon).
  --no-enum-clients
  --enum-users          Enumerate usernames per realm (default: on during recon).
  --no-enum-users
  --realm-wordlist REALM_WORDLIST
  --client-wordlist CLIENT_WORDLIST
  --user-wordlist USER_WORDLIST
  --enum-users-client-id ENUM_USERS_CLIENT_ID
                        Client used for the username-enumeration direct-grant probe (default: admin-cli).
  --verify-login        After a password change, confirm the new credentials via a password-grant token request
                        (default: on).
  --no-verify-login
  --verify-client-id VERIFY_CLIENT_ID
                        Client used for the verification password grant.
  --timeout TIMEOUT
  --request-delay REQUEST_DELAY
                        Seconds to wait before each request in the exploit chain (default: 0.4). Keycloak's login-
                        flow state can be timing-sensitive across the reset/restart/selector replay steps; a small
                        delay makes the chain more reliable. 0 to disable.
  --output-dir OUTPUT_DIR
  --proxy PROXY         Route through an HTTP(S) proxy: 'burp' (127.0.0.1:8080 shorthand), a bare host:port, or a
                        full http(s):// URL.
  -d, --debug           Verbose debug logging of requests/responses/enum probes
  -y, --yes             Skip the 'Continue with this target?' prompt. Required for non-interactive use (scripts,
                        --targets-file with multiple targets, CI).
  --json-out JSON_OUT   Write a JSON report of recon + exploit results to this path.

kc-resetforge — CVE-2026-18963 Keycloak recon + exploit tool (own infra only)

Usage
-----
Fully automatic (recon -> auto-pick target -> exploit -> verify):
    python3 kc-resetforge.py --target https://localhost:9990 --proxy burp -d

Recon only:
    python3 kc-resetforge.py --target https://localhost:9990 --enum-only -d

Version + patch-status check only, across many hosts:
    python3 kc-resetforge.py --targets-file targets.txt --kc-version

Skip recon, target directly:
    python3 kc-resetforge.py --target https://localhost:9990 --realm master \
        --client-id account --username admin --skip-enum

Requires: requests, beautifulsoup4, and optionally rich (pip install --break-system-packages)

Resumo da Vulnerabilidade

Detalhes Técnicos

  • Causa raiz: validação inadequada de estado no fluxo reset-credentials. O servidor rastreia em qual etapa uma sessão está, mas não re-verifica de forma independente se a etapa do action-token enviado por e-mail foi realmente concluída antes de permitir que o fluxo avance para a atualização da senha.
  • Pré-condições: nenhuma — não autenticado, sem interação do usuário, sem acesso prévio necessário.
  • Escopo: qualquer realm com "Esqueci a senha" habilitado, anterior à versão 26.7.2.
  • Correção:
    • Keycloak upstream 26.7.2
    • RHBK 26.4 → bundle do operador 26.4.15-1 / imagens 26.4-23
    • RHBK 26.6 → bundle do operador 26.6.6-1 / imagens 26.6-12
    • Mitigação provisória: desabilitar "Esqueci a senha" por realm (Realm Settings → Login → Forgot password)

Sobre Esta Ferramenta

kc-resetforge é uma ferramenta de detecção/verificação. Ela confirma se o fluxo reset-credentials de um alvo aplica corretamente a pré-condição do action-token (corrigido) ou não (vulnerável), para uso em avaliações autorizadas. O artigo vinculado abaixo aborda o mecanismo e a metodologia de reprodução na profundidade apropriada para divulgação pública.

Análise completa: Forging kc-resetforge: Turning CVE-2026-18963 Into a Repeatable Check

Identificação de versão

kc-resetforge.py não pode perguntar ao Keycloak "qual é a sua versão?", não existe um endpoint pré-autenticação que responda a isso. Em vez disso, ele gera uma impressão digital do alvo (campos de resposta, hashes de ativos estáticos, favicon) e a compara com um corpus de impressões digitais que você já rotulou com uma versão conhecida. Nenhuma entrada no corpus para aquela impressão digital = sem versão exata, por design, não é um bug.

Construa o corpus uma vez para cada versão à qual você tem acesso:

root@kitploit:~
python3 kc-resetforge.py --target https://known-26.6.2-host --kc-version --label 26.6.2
python3 kc-resetforge.py --target https://known-26.7.2-host --kc-version --label 26.7.2
[snip]

My Lab:
python3 kc-resetforge.py --target https://localhost:9990 --kc-version --label 26.6.2
python3 kc-resetforge.py --target https://localhost:9991 --kc-version --label 26.6.3
python3 kc-resetforge.py --target https://localhost:9992 --kc-version --label 26.6.4
python3 kc-resetforge.py --target https://localhost:9993 --kc-version --label 26.7.0
python3 kc-resetforge.py --target https://localhost:9994 --kc-version --label 26.7.1
python3 kc-resetforge.py --target https://localhost:9995 --kc-version --label 26.7.2

Recon:
python3 kc-resetforge.py --targets-file targets.txt --kc-version --kc-reset-link --proxy 127.0.0.1:8080
[snip]

[*] Proxying through: http://127.0.0.1:8080
[+] Run Summary
Targets scanned

┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━┓
┃Target                 ┃ Keycloak Version ┃ Patch      ┃ Reset Link ┃ Result ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━┩
│https://localhost:9990 │ 26.6.2           │ VULNERABLE │ ENABLED    │ checked│
│https://localhost:9991 │ 26.6.3           │ VULNERABLE │ ENABLED    │ checked│
│https://localhost:9992 │ 26.6.4           │ VULNERABLE │ ENABLED    │ checked│
│https://localhost:9993 │ 26.7.0           │ VULNERABLE │ ENABLED    │ checked│
│https://localhost:9994 │ 26.7.1           │ VULNERABLE │ ENABLED    │ checked│
│https://localhost:9995 │ 26.7.2           │ PATCHED    │ ENABLED    │ checked│
└───────────────────────┴──────────────────┴────────────┴────────────┴────────┘

As entradas são salvas ao lado do script, em kc_version_corpus/, para que persistam independentemente do diretório a partir do qual você executa a ferramenta, não exclua essa pasta.

Verifique o que está no corpus:

root@kitploit:~
ls kc_version_corpus/

Uma vez rotulado, todo escaneamento futuro corresponde automaticamente a ele:

root@kitploit:~
python3 kc-resetforge.py --target https://target --kc-version
python3 kc-resetforge.py --targets-file targets.txt --kc-version

Créditos

Descoberta da Vulnerabilidade

  • James Paremain (creditado no aviso da Red Hat)

Ferramenta

  • Alex Hernandez aka (@_alt3kx_)

Referências

  • https://access.redhat.com/security/cve/CVE-2026-18963
  • https://www.keycloak.org/2026/08/keycloak-2672-released
  • https://thehackernews.com/2026/08/critical-keycloak-password-reset-flaw.html
  • https://github.com/keycloak/keycloak/issues/51833

Aviso Legal

Este projeto é fornecido estritamente para:

  • Avaliações de segurança autorizadas
  • Testes defensivos
  • Pesquisa educacional

Não execute esta ferramenta contra qualquer sistema que você não possua ou para o qual não tenha autorização escrita explícita para testar. O uso não autorizado contra infraestrutura de terceiros é ilegal e está fora do propósito pretendido deste projeto. O mantenedor não assume nenhuma responsabilidade por uso indevido.

Baixar ferramenta
CampoValor
CVECVE-2026-18963
SeveridadeCrítica
CVSS9.1
CWECWE-640 (Mecanismo Fraco de Recuperação de Senha)
ComponenteKeycloak — fluxo de autenticação reset-credentials
ImpactoAssunção de conta não autenticada, sem interação (incluindo contas de administrador)
Versão CorrigidaKeycloak 26.7.2 (upstream) / RHBK 26.4.15-1, 26.6.6-1