Skip to content
Account takeover Write-up Beginner

How I earned $500 from Google - Flaw in Authentication

The registration form did not verify that the email address entered belonged to the person registering, so an attacker could enter a victim's already-registered email along with new personal details. If the victim then clicked the verification link sent to them, those attacker-supplied details were written into the victim's account.

Hemant Patidar Follow

Published on medium.com

Bounty$500 View original

{{media:0}}

Hemant Patidar, on 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target was the Google Cloud Partner Advantage Portal, a partner-facing registration and account portal. The feature at the centre of the report is the self-registration flow, reached through the "Register as a new partner portal user" link on the portal's landing page. The flow lets a new partner user enter their details, submit them, and then confirm the email address through a verification email.

Hemant Patidar
Hemant Patidar From the original on medium.com

The researcher classifies the issue as broken authentication, which he defines in the write-up as any situation where the login functionality of an application can be subverted or bypassed, and notes that it appears in the OWASP top ten web application vulnerabilities list. His own summary line for the report is "Insufficient Security Configurability | Flaw in Authentication".

Setup

No special tooling, accounts or versions are described. The precondition is simply that the victim's email address is already registered on the portal, and that the victim will open the verification email and click the verification link.

Finding it

While going through the signup process with the user registration form, the researcher noticed that the system does not verify the registered email when it is entered by someone else. In other words, the form accepted an email address that already belonged to an existing account, and the flow continued as if it were a fresh registration. That mismatch between "this address is already taken" and "the form happily proceeds" is what made the flow look wrong.

The second half of the observation is what turns it into an account takeover: the verification email that follows, when the victim clicks it, applies the details that were entered during the registration to the victim's existing account rather than creating a separate one.

Exploitation

Step 1: Open the registration form

Go to the portal and click the registration link for a new partner portal user:

Text
https://www.partneradvantage.goog/
Text
https://www.partneradvantage.goog/GCPPRM/s/partnerselfregistration?language=en_US

The second URL is the self-registration endpoint, with a language parameter set to en_US.

Step 2: Submit the victim's email with attacker-chosen details

Fill in all the fields of the form, using the victim's email address, which is already registered, together with whatever other details the attacker wants written into the victim's account, then submit.

Image for post
Image for post From the original on medium.com

The important part is that the system does not verify the registered email when it is entered by someone else.

Step 3: The victim verifies, and the details are applied

The victim then receives an email asking them to verify. If the victim clicks the verification link, the details entered in step 2 are changed in the victim's account.

Image for post
Image for post From the original on medium.com

This is the crux of the bug: the verification step confirms that the victim controls the mailbox, but the data being confirmed is the attacker's data, not the victim's.

Step 4: Result

The researcher's own words for the outcome: the details in someone else's account have been changed.

Root cause

The registration flow does not verify the registered email at the point where it is entered by someone else. The system accepts an email address that already belongs to an existing account. When the legitimate owner clicks the link, the flow treats that click as consent to apply the submitted details to the existing account, so the verification step ends up authorising the attacker's changes rather than protecting the account.

In the researcher's framing, the impact is that an attacker can fill in the data first, before the original account owner enters the system. The report does not describe the server-side code or the exact check that was missing, so the precise implementation mistake is not stated.

Impact

The attacker can modify personal details in another user's account, provided the victim's email is already registered and the victim clicks the verification link in the email that follows. The researcher frames the business impact in terms of data being modified and control of the account being assumed, and notes that an attacker can populate the data before the original owner ever uses the system. No further impact, such as access to partner data or downstream systems, is demonstrated in the report.

Fix

The report does not state what Google changed. Whether the fix was applied on the server side is not described.

Timeline

Date Event
Jul 20, 2020 Bug reported to Google
Jul 21, 2020 Status changes to Won't Fix (Not Reproducible); researcher explained how to reproduce the bug and its impact
Aug 3, 2020 Accepted (reopened)
Aug 10, 2020 Bounty awarded, $500
Image for post
Image for post From the original on medium.com

This was the researcher's first bounty from Google; he notes that he has reported other minor issues and received Hall of Fame recognition.

Image for post
Image for post From the original on medium.com

Variants to test

  1. Duplicate-email registration on other portals. Submit a registration with an email address that already has an account. A positive result is that the form accepts it and sends a verification email instead of rejecting the address as already in use.
  2. Verification applies attacker data. After the victim clicks the verification link, check whether the details submitted during registration (name, phone, address, and so on) appear on the existing account. A positive result is any field changing to the attacker-supplied value.
  3. Pre-registration of an account. Register with a victim's email before the victim ever signs up, then observe whether the victim's later signup or first login inherits the attacker-entered profile data.
  4. Other flows that trust an email click. Password reset, email change, invitation acceptance and profile update flows that send a link to an address the requester does not control are worth the same test: does the click apply data chosen by the requester to an account that already exists?

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

What happened, in plain words

A security researcher found a flaw in the sign-up page of a Google website for business partners. The page let anyone type in an email address that already belonged to an existing account, fill in new personal details, and submit. The system did not stop this. It then sent a verification email to that address. If the real owner of the address clicked the link in that email, the details the stranger had typed were written into the owner's existing account. In other words, a stranger could change someone else's account details, as long as the owner clicked a link that looked like a normal verification email.

The researcher reported it to Google and was paid a $500 bounty. This article walks through what he did, step by step, and explains every term along the way.

Hemant Patidar
Hemant Patidar From the original on medium.com

The product and the feature

The target was the Google Cloud Partner Advantage Portal. "Google Cloud" is Google's collection of business computing services (servers, storage, databases and so on). "Partner" here means other companies that work with Google to sell or support those services. The portal is the website those partner companies use to register and manage their accounts.

The feature at the centre of the report is self-registration: a form on the portal where a new partner user can create an account without needing an existing account or an invitation. You reach it through a link labelled "Register as a new partner portal user" on the portal's landing page.

The flow works like this: you type your details, you submit them, and then the system sends you an email with a link to prove the address belongs to you. That email step is called email verification, and its purpose is to confirm ownership of the address. Think of it like a hotel checking your ID at check-in: the booking is only confirmed once you prove you are the person named on it.

What "broken authentication" means

The researcher classifies the issue as broken authentication. In his write-up he defines it as any situation where the login functionality of an application can be subverted or bypassed. He also notes that it appears in the OWASP top ten web application vulnerabilities list.

A quick unpacking of those terms:

  • Authentication is the process of proving who you are. Logging in with an email and password is authentication. So is clicking a link in a verification email, because that click proves you can read messages sent to that address.
  • Broken authentication means that proof can be faked, skipped or misused. If a system accepts a claim of identity without actually checking it, that is broken authentication.
  • OWASP (Open Web Application Security Project) is a non-profit community that publishes free guidance on web security. Its "top ten" is a well-known list of the most common categories of web application vulnerabilities.

The researcher's own one-line summary for the report is:

Text
Insufficient Security Configurability | Flaw in Authentication

That line is just a label: it says the security settings of the system were not strict enough, and the flaw sits in the authentication logic.

Setup

The report describes no special tools, no accounts and no software versions. That is worth pausing on, because it tells you how simple the bug was to reach. The only preconditions were:

  1. The victim's email address is already registered on the portal.
  2. The victim will open the verification email and click the verification link inside it.

In web terms, an unauthenticated visitor is someone with no account session, no login, no cookie proving who they are.

Finding it

While going through the sign-up process with the user registration form, the researcher noticed that the system does not verify the registered email when it is entered by someone else. In plain words: the form accepted an email address that already belonged to an existing account, and the flow carried on as if this were a brand-new registration.

That mismatch is the first clue. A well-built registration form should notice that the address is already taken and refuse, or at least ask the person to log in instead. This one did not. The form happily proceeded.

The second half of the observation is what turns a strange behaviour into an account takeover. The verification email that follows, when the victim clicks it, applies the details that were entered during the registration to the victim's existing account, rather than creating a separate new account. So the verification click, which is supposed to protect the account, ends up authorising changes chosen by a stranger.

Exploitation

Step 1: Open the registration form

Go to the portal and click the registration link for a new partner portal user. The two URLs involved are:

Text
https://www.partneradvantage.goog/
Text
https://www.partneradvantage.goog/GCPPRM/s/partnerselfregistration?language=en_US

Line by line:

  • The first URL is the portal's landing page. It is the front door, the page a partner company would normally visit first.
  • The second URL is the self-registration endpoint. An endpoint is simply a specific address on a web server that does a specific job. This one is the page that serves the registration form.
  • The part after the question mark, language=en_US, is a query parameter. Parameters are little pieces of information passed in the URL, usually as name equals value pairs. Here the name is language and the value is en_US, which tells the server to show the page in US English. Parameters are like options you tick on an order form: they do not change what you are ordering, just how it is presented.
  • No authentication is required to reach this endpoint. Anyone can open it in a browser.

Step 2: Submit the victim's email with attacker-chosen details

Fill in all the fields of the form, using the victim's email address, which is already registered, together with whatever other details the attacker wants written into the victim's account, then submit.

Image for post
Image for post From the original on medium.com

The important part is that the system does not verify the registered email when it is entered by someone else. So the request is accepted even though the address is already in use. Think of a bank that lets you open a "new" account using someone else's existing account number, and never checks whether that number is already on file.

Step 3: The victim verifies, and the details are applied

The victim then receives an email asking them to verify. If the victim clicks the verification link, the details entered in step 2 are changed in the victim's account.

Image for post
Image for post From the original on medium.com

This is the crux of the bug. The verification step confirms that the victim controls the mailbox. But the data being confirmed is the attacker's data, not the victim's. The victim thinks they are confirming something about their own account; in reality they are approving a stranger's edits.

Step 4: Result

The researcher's own words for the outcome: the details in someone else's account have been changed.

Root cause

The registration flow does not verify the registered email at the point where it is entered by someone else. The system accepts an email address that already belongs to an existing account. When the legitimate owner clicks the link, the flow treats that click as consent to apply the submitted details to the existing account. So the verification step ends up authorising the attacker's changes rather than protecting the account.

In the researcher's framing, the impact is that an attacker can fill in the data first, before the original account owner enters the system. The report does not describe the server-side code or the exact check that was missing, so the precise implementation mistake is not stated.

Impact

The attacker can modify personal details in another user's account, provided the victim's email is already registered and the victim clicks the verification link in the email that follows. The researcher frames the business impact in terms of data being modified and control of the account being assumed, and notes that an attacker can populate the data before the original owner ever uses the system. No further impact, such as access to partner data or downstream systems, is demonstrated in the report.

Fix

The report does not state what Google changed. Whether the fix was applied on the server side is not described.

Timeline

Date Event
Jul 20, 2020 Bug reported to Google
Jul 21, 2020 Status changes to Won't Fix (Not Reproducible); researcher explained how to reproduce the bug and its impact
Aug 3, 2020 Accepted (reopened)
Aug 10, 2020 Bounty awarded, $500
Image for post
Image for post From the original on medium.com

A few notes on that table for a newcomer:

  • Won't Fix (Not Reproducible) is a status meaning the receiving team could not make the bug happen on their side, so they closed it. The researcher then wrote back with clearer reproduction steps and an explanation of the impact.
  • Reopened means the report was taken out of the closed state and looked at again. Accepted means the team agreed it was a real, valid bug.
  • A bounty is a cash reward a company pays a researcher for reporting a security problem responsibly. Here it was $500.

This was the researcher's first bounty from Google. He notes that he has reported other minor issues and received Hall of Fame recognition. A Hall of Fame is a public list of researchers a company thanks for their reports; it is recognition rather than money.

Image for post
Image for post From the original on medium.com

Variants to test

If you want to look for similar bugs yourself, here are four variations worth trying. Each one is a small experiment you can run in a browser, and each one has a clear "positive result" to look for.

  1. Duplicate-email registration on other portals. Submit a registration with an email address that already has an account. A positive result is that the form accepts it and sends a verification email, instead of rejecting the address as already in use.
  2. Verification applies attacker data. After the victim clicks the verification link, check whether the details submitted during registration (name, phone, address, and so on) appear on the existing account. A positive result is any field changing to the attacker-supplied value.
  3. Pre-registration of an account. Register with a victim's email before the victim ever signs up, then observe whether the victim's later signup or first login inherits the attacker-entered profile data.
  4. Other flows that trust an email click. Password reset, email change, invitation acceptance and profile update flows that send a link to an address the requester does not control are worth the same test: does the click apply data chosen by the requester to an account that already exists?

Glossary

  • Authentication: the process of proving who you are, such as logging in or clicking a link sent to your email.
  • Broken authentication: a flaw where that proof can be faked, skipped or misused, so the system accepts an identity claim without really checking it.
  • Bounty: a cash reward a company pays a researcher for reporting a security problem responsibly.
  • Endpoint: a specific address on a web server that performs a specific job, such as serving a registration form.
  • Google Cloud: Google's collection of business computing services, such as servers, storage and databases.
  • Google Cloud Partner Advantage Portal: the website where partner companies register and manage their accounts with Google Cloud.
  • Hall of Fame: a public list of researchers a company thanks for their reports; recognition rather than money.
  • OWASP: the Open Web Application Security Project, a non-profit community that publishes free web security guidance, including a well-known top ten list of vulnerability categories.
  • Parameter: a small piece of information passed in a URL, usually as name equals value, such as language=en_US.
  • Query parameter: a parameter that appears after the question mark in a URL.
  • Reopened: a report status meaning a closed report has been taken out of the closed state and looked at again.
  • Self-registration: a sign-up flow where a new user creates an account themselves, without an invitation or an existing account.
  • Unauthenticated: not logged in, with no session or cookie proving who you are.
  • Verification email: an email containing a link that proves the recipient can read messages sent to that address, and therefore owns it.
  • Won't Fix (Not Reproducible): a report status meaning the receiving team could not make the bug happen on their side, so they closed it.

More from Google

View all

The newest disclosed reports for this program.

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.