Summary
SuperTokens Core can accept a valid WebAuthn passkey assertion from one tenant when it is submitted to another tenant's sign-in endpoint within the same application. In multi-tenant deployments with a shared user pool, this may let a user authenticate in a tenant where they have no membership.
Affected context
The issue affects multi-tenant SuperTokens Core deployments that use WebAuthn with a shared user pool. The relevant credential lookups are scoped to the application rather than the requested tenant, and the sign-in flow does not verify that the authenticating user belongs to that tenant.
Exploit preconditions
- Attack surface: A tenant's WebAuthn sign-in endpoint within a multi-tenant application
- Required access: A valid passkey belonging to the attacker in another tenant of the same application
- Trigger point: WebAuthn sign-in using that passkey against the target tenant
- Why exploitation is possible: Credential lookups are not constrained to the requested tenant, and tenant membership is not checked during sign-in
Why this happens
The authentication flow performs application-scoped WebAuthn credential lookups without enforcing the requested tenant as part of the lookup, then accepts the sign-in without checking tenant membership. This is an authorization enforcement failure mapped to CWE-863: Incorrect Authorization; the insufficient tenant-specific restriction is also related to CWE-1220: Insufficient Granularity of Access Control.
Potential impact
- A user may authenticate in a tenant where they have no membership
- The user could gain access to tenant-scoped features or information available to authenticated users
- Tenant isolation boundaries may be weakened
General mitigation guidance
Defensive patterns should ensure that authentication and authorization decisions are scoped to the tenant requested by the user.
- Bind credential lookups and WebAuthn verification to the specific tenant
- Verify tenant membership before completing sign-in or granting a session
- Treat tenant identifiers and credential references as untrusted until validated together
- Apply least privilege and keep tenant-specific data and authorization policies isolated
How teams detect issues like this
Review authentication code for credential lookups that use application scope without tenant constraints, and for sign-in paths that omit tenant-membership checks. Add tests and policy checks that verify a credential from one tenant cannot authenticate in another. Static analysis and automated code review can help flag authorization decisions that do not incorporate the relevant tenant context.

