You are affected if all of the following are true:
@better-auth/sso at any version in >= 1.2.10, < 1.6.11, or any current next pre-release.sso() and organization() plugins.providersLimit is at its default (10) or any non-zero value, so SSO provider registration is enabled for authenticated users.You are at the highest risk if any of these also hold:
organizationProvisioning.defaultRole or organizationProvisioning.getRole returns admin or higher for SSO-provisioned users. The bug then becomes unauthorized admin creation in the org.domainVerification.enabled is false (the default). The malicious provider is immediately usable.Fix:
@better-auth/sso@1.6.11 or later.The SSO plugin's POST /sso/register endpoint lets any member of an organization attach a new SSO provider to that organization. It checks that the caller has a membership row, but it does not check whether the caller has an administrative role for the organization.
This creates an authorization mismatch for the same resource. Other org-linked SSO provider management endpoints treat those providers as admin-managed: list, get, update, and delete require the caller to be an organization owner or admin. The create path is less restrictive, so a regular member can attach an attacker-controlled OIDC or SAML identity provider to an organization they do not administer. After registration, downstream organization provisioning can add IdP-asserted users from /sso/callback/{providerId} into the target organization, defaulting to role member.
1.6.11Exploitability
AV:NAC:LPR:LUI:NScope
S:UImpact
C:LI:HA:N7.1/CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:NAccess Control
Configuration
Other