Oauth Misconfiguration Lead To Account Takeover
An OAuth login flow on Reddit allowed an attacker who knew a victim's email address to sign in to the victim's account, bypassing verification. The reporter claims this leads to account takeover.
- Disclosed after 5 months
Summary: OAuth is a commonly used authorization framework that enables websites and web applications to request limited access to a user's account on another application. Crucially, OAuth allows the user to grant this access without exposing their login credentials to the requesting application. This means users can fine-tune which data they want to share rather than having to hand over full control of their account to a third party.
The basic OAuth process is widely used to integrate third-party functionality that requires access to certain data from a user's account. For example, an application might use OAuth to request access to your email contacts list so that it can suggest people to connect with. However, the same mechanism is also used to provide third-party authentication services, allowing users to log in with an account that they have with a different websites.
Steps To Reproduce:
- Signup with oauth method in reddit.com
- Then logout the account
- Then login with the same Gmail account
- What happens here is, now the attacker can easily log in using the victim's account which bypasses the verification methods.
For fixing this issue: Either don't let user enter with oauth when there's already another account created with the same email or let the user enter but let him know someone else has already created an account and if it was him or not then ask him to change the password.
Impact
Only one thing we need here and that is email address. Just by knowing that we can takeover victim's account so the impact here is quite high. Imagine email address is something you can even get if you ask so its not a hard task. But since the oauth does not authenticates the real user attackers can easily takeover the account.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application linked an OAuth identity to an existing account by matching email address without verifying that the person completing the OAuth flow actually owned that email or the original account.
Impact
An attacker who knows a victim's email address could take over the victim's account, according to the reporter.
What the attacker needed
Victim has an account with a known email; attacker knows the victim's email address; attacker can complete OAuth with that email
The fix
The application should either prevent OAuth sign-in when an account with the same email already exists, or warn the user and require a password change if the existing account was not theirs.
How it was found
- Sign up on Reddit using the OAuth method.
- Log out of the account.
- Log in again with the same Gmail account.
- Observe that the attacker can now log in to the victim's account, bypassing verification.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
OAuth is a way to log in to a site using another account, such as a Gmail account, without sharing your password. The report says that if someone already had an account with a certain email, another person could use OAuth with that same email and get into the first person's account. That would let an attacker take over an account just by knowing the email address.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.