Summary
A flaw in Reviactyl's OAuth authentication flow automatically linked social login accounts to existing users based solely on matching email addresses.
An attacker who can control a social identity (e.g., Google, GitHub, Discord) using a victim's email address could gain full access to the victim's Reviactyl account without knowing their password, resulting in account takeover with no prior authentication.
Affected context
The vulnerability appears in Reviactyl's web-based authentication layer where OAuth providers are used for social sign-in.
It affects deployments that:
- Enable social login providers (Google, GitHub, Discord, etc.)
- Automatically link incoming OAuth identities to local accounts by email
- Do not require prior local authentication or an explicit verification step before linking a new social identity
Under these conditions, the integrity of account-bound identities depends solely on the email address asserted by the OAuth provider.
Exploit preconditions
- Attack surface: Public web interface of the Reviactyl panel's login/registration pages.
- Required access: Ability to authenticate to a supported social provider using an email address that matches an existing Reviactyl user's email (e.g., by registering a new social account with that address or compromising an existing social account).
- Trigger point: Initiating the OAuth login flow with the controlled social account and completing the callback to Reviactyl.
- Why exploitation is possible: The application trusts the email attribute from the OAuth provider as a sufficient identifier and automatically links the social identity to an existing local account without additional ownership proof, prior session, or confirmation from the rightful account owner.
Why this happens
This issue stems from improper access control and identity binding logic during OAuth account linking.
The application equates "same email address" with "same user" and automatically associates the incoming OAuth identity with the corresponding local account, effectively treating a single attribute as a strong authenticator.
This maps to CWE-284: Improper Access Control, where the system fails to enforce adequate authorization and identity verification before granting access to protected accounts.
In a secure pattern, linking a new identity factor should require an already authenticated session, a second factor, or out-of-band verification, rather than trusting a single, unverified attribute from an external provider.
Potential impact
- Complete takeover of victim accounts, including full control over game servers and management actions.
- Unauthorized configuration changes, such as modifying server settings, permissions, or deployments.
- Potential data exposure for any personal or operational data stored in the panel.
- Abuse of the victim's account to perform further attacks against infrastructure or other users.
- Loss of audit integrity, as actions appear to originate from the compromised victim account.
General mitigation guidance
Effective mitigation usually focuses on strengthening identity binding and account linking flows:
- Require that linking a new OAuth provider to an existing account only be allowed from a session where the user is already authenticated with their primary credential.
- Introduce explicit user consent flows: when an OAuth login email matches an existing account, ask the user to confirm or to log in with their existing method before linking.
- Treat email equality as a heuristic, not an authoritative proof of ownership; rely on multi-factor or step-up authentication when modifying authentication factors.
- Disallow silent auto-linking; instead, surface a clear "link account" action in user settings with verification steps.
- Apply least-privilege principles to identity changes, logging all account-linking events and optionally requiring administrative review in high-risk environments.
How teams detect issues like this
Organizations can detect similar flaws by focusing on authentication and account-linking logic:
- Static analysis and code review targeting:
- Automatic associations between external identities and local accounts based on a single attribute (e.g., email).
- Code paths that modify authentication methods or linked identities without checking for an authenticated session.
- Design and threat modeling reviews for OAuth/OpenID Connect flows, checking:
- Whether new identity factors can be added or changed without strong re-authentication.
- Whether identity linking is triggered implicitly based on data from external providers.
- Automated tests or security checks that simulate OAuth logins with controlled accounts to verify that:
- Existing local accounts are not silently claimed or linked.
- Linking requires explicit user action and authenticated context.
- Centralized logging and anomaly detection on:
- Sudden changes in login methods for existing accounts.
- Multiple accounts being accessed shortly after new social identities are linked.

