Skip to content

Authenticator configuration secrets persisted in admin events and exposed to view-events #52730

Description

@ahus1

Describe the bug

When detailed admin-event representations are enabled, creating or updating an authenticator configuration stores secret authenticator properties in cleartext in the admin-event representation. StripSecretsUtils has no registered formatter for AuthenticatorConfigRepresentation, so secret-bearing values (e.g., reCAPTCHA secret.key) are not removed before the representation is serialized into the event store. An administrator holding only realm-management:view-events can retrieve these secrets through the admin-events API, even though that account lacks permission to read or manage authenticator configurations directly.

Version

main

Expected behavior

StripSecretsUtils should strip secret properties from AuthenticatorConfigRepresentation before it is serialized into admin events, preventing secret values from being persisted in the event store.

Actual behavior

StripSecretsUtils has no registered formatter for AuthenticatorConfigRepresentation. For unmapped classes, stripSecrets() returns the representation unchanged. Secret properties such as reCAPTCHA secret.key are persisted in cleartext in admin events and exposed to any administrator with view-events permission. Because the secret is persisted in the event store, it remains accessible even after the authenticator configuration is changed.

Acknowledgement

Thank you to Aymen (@e1024x) for reporting this issue. As this requires an authenticated administrator with view-events permission and detailed admin events must be explicitly enabled, this is considered a defense-in-depth hardening issue and handled publicly.


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

Activity

  1. added
    priority/important
    area/admin/fine-grained-permissions
    on Sep 14, 2026
  2. added theissue type on Sep 14, 2026
  3. self-assigned this
    on Oct 8, 2026
  4. vramik commented on Oct 15, 2026

    @vramik
    Contributor

    Reported issue was already fixed by #51005 and the remaining weakness is the defense-in-depth for CredetialRepresentation.

  5. added a commit that references this issue on Oct 15, 2026
    28e4208
  6. added 2 commits that reference this issue on Oct 22, 2026
    a59ffa5
    39b310b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/fine-grained-permissionskind/weaknesspriority/importantrelease/27.0.0team/core-iam

Fields

No fields configured for weakness.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions