You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Authenticator configuration secrets persisted in admin events and exposed to view-events #52730
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
vramik commentedon Oct 15, 2026
Reported issue was already fixed by #51005 and the remaining weakness is the defense-in-depth for CredetialRepresentation.
CertificateRepresentation stripping in StripSecretsUtils
CertificateRepresentation stripping in StripSecretsUtils
CertificateRepresentation stripping in StripSecretsUtils