Attacker can trick other into logging in as themselves
The OAuth callback endpoint did not validate the state parameter, so an attacker could force a victim to log in to the attacker's account by sending a crafted callback link. The attacker could then monitor the victim's activity within that account.
- Triaged in 3 hours
- Fixed in 13 days
- Disclosed after 13 days
Hi Team,
This bug is similar to bug report https://hackerone.com/reports/2228 as this bug also allows a user to be logged in as the attacker. An attacker can escalate this to attach his account with the victims profile and monitor his activities.
Login CSRF is a type of attack where the attacker can force the user to log in to the attacker’s account on a website and thus reveal information about what the user is doing while logged in.
An attacker could exploit this bug as follows: 1: Attacker initiates google OAuth process with mixmax.com 2: Attacker allows access to mixmax app 3: Attacker records and drops redirection to mixmax.com (in order not to consume token) 4: Attacker directs victim to https://app.mixmax.com/_oauth/google/callback?state={state}&code={ode} 5: A white page see to victim and in backend, Victim is now logged in as attacker.
To mitigate this vulnerability,state parameter is solution for this but in this case state parameter is not getting validated on server side.
Let me know if any additional info is needed.
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
Impact
The victim could be logged in as the attacker, allowing the attacker to monitor the victim's activity in that account.
What the attacker needed
Attacker has an account; Victim clicks a crafted link
The fix
The server should validate the OAuth state parameter on the callback.
How it was found
- Attacker starts the Google OAuth flow with the site.
- Attacker approves access to the app.
- Attacker captures the redirect back to the site and stops it before the token is used.
- Attacker sends the victim a link to the OAuth callback containing the state and code.
- The victim sees a blank page and is logged in as the attacker.
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.
When you log in with Google, the website sends you to Google and then back with a special code. A hidden value called 'state' is meant to make sure the response belongs to your login attempt. Here the site never checked that value, so an attacker could prepare a login link for their own account and trick someone into using it.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.