OAuth2/OIDC account takeover in AshAuthentication via email-based user matching
team-alembic ash_authentication
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ash_authentication Hex |
|
|
Original description
Authentication Bypass by Spoofing vulnerability in team-alembic AshAuthentication allows account takeover of local users via OAuth2/OIDC sign-in.
AshAuthentication's OAuth2 and OIDC family strategies matched the local user by email address (an upsert on the email field, or a user-defined sign-in filter) rather than by the OpenID Connect iss/sub claim combination. Per OpenID Connect Core §5.7, only iss/sub uniquely and stably identifies an end-user; other claims, including email, MUST NOT be used as unique identifiers.