Add Keycloak reset credentials flow account takeover module (CVE-2026-18963) - #21851
Open
M4xSec wants to merge 1 commit into
Open
Add Keycloak reset credentials flow account takeover module (CVE-2026-18963)#21851M4xSec wants to merge 1 commit into
M4xSec wants to merge 1 commit into
Conversation
Adds auxiliary/admin/http module for CVE-2026-18963. Keycloak 26.7.0 and 26.7.1 ship a broken "try another way" credential selector in the reset-credentials (Forgot Password) flow. The selector stores an authentication session note that is not scoped to the current authenticator execution, so an attacker can drive the email reset authenticator to success without ever submitting the one-time token that Keycloak mailed to the account owner. The flow then advances to the update-password screen, letting an unauthenticated attacker set a new password for any account in a realm that has Forgot Password enabled. Fixed in Keycloak 26.7.2. Tested against Keycloak 26.7.1. Signed-off-by: venexy <predator0x300@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Auxiliary module for CVE-2026-18963. Keycloak 26.7.0 and 26.7.1 ship a broken
"try another way" credential selector in the reset-credentials (Forgot Password)
flow. The selector stores an authentication-session note that is not scoped to the
current authenticator execution, so an attacker can drive the email reset
authenticator to
success()without ever submitting the one-time token Keycloakmailed to the account owner. The flow then advances to the update-password screen,
letting an unauthenticated attacker set a new password for any account in a realm
that has Forgot Password enabled.
Version is not disclosed over HTTP, so
checkconfirms the reset-credentials flowis reachable rather than fingerprinting a build;
runproves the finding by settinga password and logging in with it.
Fixed in Keycloak 26.7.2.
Verification
use auxiliary/admin/http/keycloak_reset_credentials_atoset RHOSTS,REALM,VICTIMcheckreports the reset-credentials flow is enabledrunTested against Keycloak 26.7.1.