Summary
Fider's OAuth identity-linking flow can allow an unauthenticated attacker to sign in as an existing user when an OAuth account presents a matching email address that has not been verified. If that identity is linked to the victim's account, the attacker may gain persistent access, including to an administrator account.
Affected context
The vulnerability affects Fider's OAuth identity-linking flow. It becomes risky when the flow treats an email match as proof of ownership without confirming that the OAuth provider has verified the address. An attacker may be able to exploit this condition using a Google account with an unverified copy of an existing Fider user's email.
Exploit preconditions
- Attack surface: Fider's OAuth sign-in and identity-linking flow
- Required access: No existing Fider authentication is required; the attacker needs control of an OAuth account presenting an email that matches a victim's account
- Trigger point: The OAuthToken handler processes the identity and links it to an existing account
- Why exploitation is possible: The flow may rely on an email match without verifying that the OAuth provider has confirmed ownership of that email
Why this happens
The underlying issue is insufficient authentication of an external identity during account linking. Treating a matching but unverified email as proof of ownership can allow an attacker-controlled OAuth identity to be bound to another user's account. This maps to CWE-287: Improper Authentication, because the application does not adequately verify the identity before granting access.
Potential impact
- An attacker may gain access to a victim's Fider account
- An attacker could retain access through a linked OAuth identity and persistent sessions
- A compromised account may expose private feedback or account data
- Account takeover could affect tenant administrators and may enable further unauthorized actions
General mitigation guidance
Defensive patterns focus on establishing ownership before linking external identities:
- Require the OAuth provider to assert that an email address is verified before using it for account matching
- Require the user to authenticate to the existing account before linking a new identity
- Use explicit confirmation and clear notifications when identities are linked or changed
- Keep external identity identifiers distinct from email-based account matching
- Apply least privilege to accounts and limit the effects of a compromised session
How teams detect issues like this
High-level detection approaches include:
- Review identity-linking logic for account matching based solely on email addresses
- Use static analysis and code review to identify OAuth flows that do not check provider verification claims
- Monitor audit logs for unexpected identity links, changes to authentication methods, and unusual sign-ins
- Enforce policies requiring verified identity claims and reauthentication for sensitive account changes
Automated code review tools may help flag risky authentication and account-linking patterns.

