Skip to content
Account takeover Write-up Intermediate

Unauthorized Admin Account Access via Google Authentication

The Google authentication flow accepted a client-supplied email parameter, allowing an attacker to change it to an administrator's email and gain access to that admin account. This could lead to unauthorised access to sensitive areas and potential data breaches.

Sahil Mehra Follow

Published on nullr3x.medium.com

In this blog we will talk about a weakness that enables an attacker to gain access, to admin accounts through Google Authentication. This incident emphasizes the importance of disclosure.

Sahil Mehra, on nullr3x.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server trusted a client-controlled email parameter in the OAuth callback instead of verifying the identity from Google's token.

Impact

An attacker could gain unauthorised access to admin accounts, potentially leading to data breaches, system changes, reputational harm, and financial losses.

What the attacker needed

Ability to intercept HTTP requests; knowledge of an admin email address

How it was found

  1. Go to the registration page.
  2. Click Sign in With Google to start authentication.
  3. Intercept the authorization request.
  4. Change the auth[email] parameter to an official admin email address.
  5. Forward the request to gain access to the admin account.

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 write-up has not been written yet. The Original tab links to the source.

When you sign in with Google, the website should trust Google to tell it who you are, not trust information sent by your browser. Here, the website accepted an email address that the user could edit in the request, so someone could pretend to be an administrator. This is like a club letting you write your own name on the guest list.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.