8000 UPDATE_EMAIL confirmation can be triggered without session_code · Issue #55530 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

UPDATE_EMAIL confirmation can be triggered without session_code #55530

Description

@rmartinc

UpdateEmail action bypasses the execution_code parameter when the post is submitted to update the email required action. This was introduced in https://github.com/keycloak/keycloak-private/commit/d6da8492068a5e7f0ece7c6558d7c9b590b75052.

The execution code is detected as null by SessionCodeChecks, but it is the same flow is used, do it is managed as a refresh and the flow is executed normally.

Later the UpdateEmail.requiredActionChallenge() required actions looks for an email form parameter in the current request. This is done to allow other actions (like the update profile) use the same email attribute and do not show the email input page again to the user (the email changed in the update profile is verified directly).

The combination of the two situations allows sending the email for the verification without any user presentation of the email and without session_code. It needs the initiated auth session and correct data thought. But this behavior is an unwanted effect for sure and a weakness.

Thanks to Benjamin Schmitz for detecting this issue.


This issue was originally tracked in the private repository. Migrated by @rmartinc.

Activity

  1. added
    area/authentication
    priority/important
    on Nov 25, 2026
  2. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/authenticationbackport/26.8kind/weaknesspriority/importantteam/core-authn

Fields

No fields configured for weakness.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

0