CVE-2026-35511High▾ TwilightAuthorizer: Zero-click account takeover via OAuth identity linking to unverified email accounts
▾ Twilight zone — High severity, or a signal on a lesser flaw
impact 41.3 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
The OAuth callback handler links incoming OAuth identities (Google, GitHub, etc.) to existing accounts matched by email address without verifying that the existing account's email was verified by its original owner. An attacker who pre-registers with a victim's email address (without verifying it) gains persistent password-based access to the victim's account after the victim completes a normal OAuth login. Verified against HEAD (commit 73679fa).
In internal/http_handlers/oauth_callback.go, when an OAuth login occurs for an email that already exists in the database:
Line 125: The existing user is looked up by email:
existingUser, err := h.StorageProvider.GetUserByEmail(ctx, refs.StringValue(user.Email))
Line 164: The OAuth user object is replaced with the existing user:
user = existingUser
Lines 173-176: The OAuth provider is appended to the existing user's signup methods:
signupMethod := existingUser.SignupMethods
if !strings.Contains(signupMethod, provider) {
signupMethod = signupMethod + "," + provider
}
user.SignupMethods = signupMethod
Lines 179-181: If the existing account's email was NOT verified, it is automatically verified:
if user.EmailVerifiedAt == nil {
now := time.Now().Unix()
user.EmailVerifiedAt = &now
}
Line 219: The merged user is saved to the database:
user, err = h.StorageProvider.UpdateUser(ctx, user)
At no point is the existing account's password invalidated or the owner notified that a new OAuth identity was linked.
Attacker signs up with [email protected] using email/password. Attacker sets a known password but does NOT click the email verification link. The account exists in the database with EmailVerifiedAt = nil.
Some time later, the real owner of [email protected] logs in via Google OAuth (a completely normal action).
The OAuth callback at line 125 finds the attacker's existing account by email.
At line 164, the Google OAuth identity is linked to the attacker's account.
At line 179-181, the email is automatically verified (the attacker never verified it, but now it's marked as verified).
At line 175, "google" is appended to the signup methods. The account now has both "basic_auth" and "google" as valid login methods.
The attacker's original password is still valid in the database. It was never cleared, changed, or invalidated.
The attacker logs in with [email protected] and the password they originally set. They now have full access to the victim's account, including any data the victim added via their Google session.
The victim performs no unusual action. They simply log in via their Google account, which is the expected, secure behavior. The attacker staged the account beforehand and gains access without any further interaction.
This is a classic Account Linking vulnerability (cited in OWASP authentication guidelines). The core logic flaw is a trust boundary violation. Authorizer correctly trusts that Google has verified the email address, but it incorrectly extends that trust to validate the password that was set by the unverified attacker. The attacker maintains persistent, password-based backdoor access to the victim's account, even if the victim later revokes Authorizer's OAuth access from their Google account settings. The password was set before Google was ever involved and is never invalidated by the linking process.
Before linking an OAuth identity to an existing account, verify that the existing account's email is already verified:
existingUser, err := h.StorageProvider.GetUserByEmail(ctx, refs.StringValue(user.Email))
if err == nil {
// Account exists. Only link if email is already verified.
if existingUser.EmailVerifiedAt == nil {
// Email not verified by original owner. Do NOT link.
// Either: reject the login, or create a new separate account,
// or delete the unverified account and create a fresh one for the OAuth user.
}
}
Additionally, when linking a new OAuth identity, invalidate any existing password on the account or require the user to re-authenticate via the original method.
Koda Reef
github.com/authorizerdev/authorizer < 0.0.0-20260807033110-66fe488fd2a4Upgrade to a patched release:
github.com/authorizerdev/authorizer 0.0.0-20260807033110-66fe488fd2a4Connected by shared product, vendor, weakness, or advisory.
CVE-2023-49105Critical· 9.8An issue was discovered in ownCloud owncloud/core before 10.13.1
CVE-2019-1946Medium· 6.5A vulnerability in the web-based management interface of Cisco Enterprise NFV Infrastructure Software (NFVIS) could allow an unauthenticated, remote attacker to bypass authentication and get limited access to the web-based management int…
CVE-2020-12812Critical· 9.8An improper authentication vulnerability in SSL VPN in FortiOS 6.4.0, 6.2.0 to 6.2.3, 6.0.9 and below may result in a user being able to log in successfully without being prompted for the second factor of authentication (FortiToken) if t…
CVE-2022-40684Critical· 9.8An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 and 7.0.0 through 7.0.6, FortiProxy version 7.2.0 and version 7.0.0 through 7.0.6 and FortiSwitchManager version 7.2.0 …
CVE-2023-35078Critical· 9.8An authentication bypass vulnerability in Ivanti EPMM allows unauthorized users to access restricted functionality or resources of the application without proper authentication.
CVE-2023-4501Critical· 9.8User authentication with username and password credentials is ineffective in OpenText (Micro Focus) Visual COBOL, COBOL Server, Enterprise Developer, and Enterprise Server (including product variants such as Enterprise Test Server), vers…