Skip to content

[SYNCOPE-1973] Avoid exposing authentication error details that enable user enumeration#1414

Merged
ilgrosso merged 4 commits into
apache:masterfrom
massx1:security-auth-user-enumeration
Jun 15, 2026
Merged

[SYNCOPE-1973] Avoid exposing authentication error details that enable user enumeration#1414
ilgrosso merged 4 commits into
apache:masterfrom
massx1:security-auth-user-enumeration

Conversation

@massx1

@massx1 massx1 commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

This change makes authentication failure details configurable to reduce user enumeration through error messages.

When detailed authentication errors are disabled, failed username/password authentication attempts return a generic error message in RESTHeaders.ERROR_INFO instead of exposing details such as an unknown username, invalid password, or suspended user status.

The default behavior is configured through security.authenticationError.exposeDetails and security.authenticationError.genericMessage.

@ilgrosso

ilgrosso commented Jun 8, 2026

Copy link
Copy Markdown
Member

@massx1 again, this needs a JIRA

@ilgrosso ilgrosso changed the title Avoid exposing authentication error details that enable user enumeration [SYNCOPE-1973] Avoid exposing authentication error details that enable user enumeration Jun 8, 2026
@massx1 massx1 force-pushed the security-auth-user-enumeration branch 2 times, most recently from 68ac029 to eece5d2 Compare June 11, 2026 11:36
@massx1 massx1 force-pushed the security-auth-user-enumeration branch from 1a49f73 to d363e4f Compare June 15, 2026 11:13
@ilgrosso ilgrosso merged commit 9eb39b4 into apache:master Jun 15, 2026
27 of 28 checks passed
@massx1 massx1 deleted the security-auth-user-enumeration branch June 15, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants