Skip to content
Account takeover Write-up Beginner

[ BUG BOUNTY ] Flaw in Authentication ( Hall of Fame Google )

The registration process did not verify the email address, so an attacker could sign up using someone else's email and enter the system without verification. The attacker could then perform actions using that email, and the victim would later find their account already accessed.

Danang Tri Atmaja Follow

Published on medium.com

#### Danang Tri Atmaja

Danang Tri Atmaja, 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 is a Google subdomain, https://learndigital.withgoogle.com/digitalgarage, found during subdomain and directory reconnaissance. The site offers account registration, and from the look of the page there are two methods for account registration forms to enter the system. The researcher's concern is the email registration path: the system does not verify the registered email address, so an account can be created with an email address the registrant does not control and used inside the system without any verification step.

The report classifies the issue as "Insufficient Security Configurability | Flaw in Authentication" and links the attack scenario to the OWASP Top 10 2014 entry I8, Insufficient Security Configurability.

Setup

The researcher used the following tools:

Sub-domain search:

  1. Knockpy, described in the linked article https://medium.com/hacker-toolbelt/knokpy-5c6745e53770
  2. Sublist3r, https://github.com/aboul3la/Sublist3r

Directory search:

  1. Dirsearch, https://github.com/maurosoria/dirsearch

Browser and OS recorded for the proof of concept:

  1. Firefox
  2. Firefox Private

Version: 63.0.1

Finding it

Reconnaissance came first: subdomain enumeration with Knockpy and Sublist3r, then directory search with Dirsearch. This produced a Google subdomain, and the researcher settled on https://learndigital.withgoogle.com/digitalgarage as the target.

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

Looking at the site, the researcher saw that there are two methods for account registration forms to enter the system.

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

That reminded the researcher of an earlier proof of concept of his own, published as https://medium.com/@danangtriatmaja/bug-bounty-allowing-register-with-official-domain-cfe605d83b63, where the registration process does not verify the registered email. His stated bug bounty tip is that the security impact is that email addresses can be signed in using the main domain without verification, and that this can be used to perform an action with an official email or another address. In his words: "sometimes you can try this method to registration with email officially or other and enter the system without verification".

Exploitation

The report gives two cases: one from the attacker side, one from the victim side.

Case #1: registering with the victim's email (attacker side)

  1. Go to http://learndigital.withgoogle.com/.
  2. Go to the registration page and choose sign in with email officially.
  3. Input the official email of the victim, example: gmail.com.
  4. Input Name, fill a password, confirm password, click Signup, done.
  5. Input First Name and Last Name.
  6. Choose email preference and complete, finish.

The researcher's note on this stage: you have successfully entered the system using the email that you registered without going through the verification process, and you can do any activities using this email.

Case #2: the victim's view

  1. The victim goes to http://learndigital.withgoogle.com/.
  2. The victim goes to the registration page and chooses sign in with Gmail.
  3. The victim inputs email and password through Gmail.
  4. The victim then sees that his account has been entered by someone unknown.

The report states that a video was recorded for the proof of concept, but the video content itself is not reproduced here.

Root cause

The registration flow accepts an email address and a password and lets the registrant into the system without any verification of ownership of that address. The report shows the legitimate owner arriving later through the Gmail sign-in path and finding the account already entered by someone unknown. The report frames this as insufficient security configurability and a flaw in authentication; the underlying mistake is the missing verification step at registration, which is what allows an unverified address to become a working account.

Impact

As the researcher puts it, the impact is that email addresses can be signed in using the main domain without verification, and an attacker can perform actions with an official email or another address. The business impact considered in the report is that data can be modified and control of the account assumed, and that the attacker can fill in the data first before the original account owner enters the system.

Fix

The report does not describe a fix or a change made to the site.

Timeline

  1. 14 June 2019: report the issue
  2. 17 June 2019: not severe enough for us to track it as a security bug
  3. 19 June 2019: explain the security impact of this bug
  4. 27 June 2019: triaged
  5. 31 July 2019: valid issue
Image for post
Image for post From the original on medium.com
Image for post
Image for post
Image for post
Image for post

Variants to test

  • Registration forms that accept an email and password without a verification mail or link: a positive result is being able to log in and use the account immediately after signup with an address you do not control.
  • Sites offering both a native email registration and a third-party sign-in (here, Gmail): a positive result is that the native registration for an address blocks or hijacks the later third-party sign-in for the same address, as in Case #2.
  • Pre-filling profile data (name, preferences) during registration: a positive result is that the attacker's data persists in the account the legitimate owner later reaches.
  • Subdomains found through enumeration that expose their own registration flows: a positive result is the same missing verification on a host that shares identity with the main product.

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 was looking around Google's websites for weaknesses, the way someone might walk around a large building trying every door to see which ones are unlocked. During that walk he found a Google subdomain, a smaller site that belongs to Google but lives at its own address, called https://learndigital.withgoogle.com/digitalgarage. That site lets people create accounts. It offered two ways to sign up, and one of them was a plain email-and-password form.

The problem he found was simple to describe: when you signed up with an email address, the site never checked that the address actually belonged to you. The site never checked that the address actually belonged to you. You typed an address, chose a password, and you were in. That means anyone could type in someone else's email address, create an account with it, and start using the site as if that address were theirs. In the report's second case, the real owner signs in with Gmail and finds the account has been entered by someone unknown.

This kind of weakness is called a flaw in authentication. Authentication is the part of a system that answers the question "who are you?", and here the answer was being taken on trust without any proof. The researcher reported it to Google, and after some back and forth it was accepted as a valid issue. The report below walks through how he found the site, how the attack works from both sides, and why it matters.

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

The tools and the approach

Before touching the site itself, the researcher did what is called reconnaissance, usually shortened to recon. Recon means gathering information about a target before trying anything: what addresses exist, what pages are on them, what the site is built from. Think of it as studying the map of a building before you start opening doors, rather than rattling every handle blindly.

He used two kinds of search.

Sub-domain search, which means looking for the smaller sites that sit under a company's main domain name. A domain is the part of a web address after the https://, like withgoogle.com. A subdomain is a name placed in front of it, like learndigital.withgoogle.com, and each one can be a separate application with its own behaviour. The tools he listed were:

  1. Knockpy, described in the linked article https://medium.com/hacker-toolbelt/knokpy-5c6745e53770
  2. Sublist3r, https://github.com/aboul3la/Sublist3r

Directory search, which means looking for pages and folders on a site that are not linked from the front page. The tool he listed was:

  1. Dirsearch, https://github.com/maurosoria/dirsearch

These tools work by trying long lists of known names and seeing which ones answer. It is the digital equivalent of trying common room numbers in a hotel to see which doors exist.

For the proof of concept, meaning the demonstration that the bug really works, he recorded the browser and operating system he used:

  1. Firefox
  2. Firefox Private

Version: 63.0.1

Firefox Private is the private browsing mode, which does not keep your history. Recording it matters because a bug report should say exactly where it was observed, so that someone else can try to reproduce it under the same conditions.

Finding it

The order of work was: enumerate subdomains with Knockpy and Sublist3r, then search directories with Dirsearch. That process turned up a Google subdomain, and the researcher settled on this one as his target:

Text
https://learndigital.withgoogle.com/digitalgarage

This is a web address. https means the connection is encrypted, learndigital.withgoogle.com is the subdomain, and /digitalgarage is a path on it, the way a folder name locates a section of a site.

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

Looking at the site, he noticed that there are two methods for account registration forms to enter the system. In other words, the sign-up page offered more than one route in. Two doors into the same building.

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

That reminded him of an earlier proof of concept of his own, published at https://medium.com/@danangtriatmaja/bug-bounty-allowing-register-with-official-domain-cfe605d83b63, where the registration process does not verify the registered email. His stated bug bounty tip is that the security impact is that email addresses can be signed in using the main domain without verification, and that this can be used to perform an action with an official email or another address. In his words: "sometimes you can try this method to registration with email officially or other and enter the system without verification".

To unpack that: a verification step is the confirmation email most sites send after you sign up, containing a link or a code. Clicking it proves you can read mail sent to that address, which is a reasonable proxy for owning it. When that step is missing, the site has no way to tell the difference between you typing your own address and you typing a stranger's.

Exploitation

The report describes two cases: one from the attacker's side, one from the victim's side. Reading both together is what makes the impact clear.

Case #1: registering with the victim's email (attacker side)

  1. Go to http://learndigital.withgoogle.com/.
  2. Go to the registration page and choose sign in with email officially.
  3. Input the official email of the victim, example: gmail.com.
  4. Input Name, fill a password, confirm password, click Signup, done.
  5. Input First Name and Last Name.
  6. Choose email preference and complete, finish.

Step by step, in plain words:

  1. The attacker opens the site's home page. This is just the normal front door.
  2. He goes to the registration page and picks the option to sign up with an email address, rather than through a Google account. This is the door with no lock on it.
  3. He types in the victim's email address. The example given in the report is gmail.com, which is a domain name rather than a full address; the point is that the field accepts an address the attacker does not own.
  4. He fills in a name, a password and the password confirmation, and clicks Signup. At this point a normal site would send a confirmation email and wait. This one does not.
  5. He fills in first name and last name, completing the profile.
  6. He picks his email preferences and finishes. The account is now fully usable.

The researcher's note on this stage: you have successfully entered the system using the email that you registered without going through the verification process, and you can do any activities using this email. In other words, the account is live and behaves like any other account, even though the address on it belongs to someone else.

Case #2: the victim's view

  1. The victim goes to http://learndigital.withgoogle.com/.
  2. The victim goes to the registration page and chooses sign in with Gmail.
  3. The victim inputs email and password through Gmail.
  4. The victim then sees that his account has been entered by someone unknown.

Again in plain words:

  1. The real owner of the address visits the same site, unaware that anything has happened.
  2. He chooses the other door, signing in with his Gmail account. This is the route where Google itself confirms who he is, so it ought to be the trustworthy one.
  3. He enters his email and password with Google, as usual.
  4. He then finds himself inside an account that a stranger has already created and filled in. The site treats the email address as the identity, and that identity was already claimed.

The report states that a video was recorded for the proof of concept, but the video content itself is not reproduced here.

Why it works

The registration flow accepts an email address and a password and lets the registrant into the system without any verification of ownership of that address. The report shows the legitimate owner arriving later through the Gmail sign-in path and finding the account already entered by someone unknown.

A useful comparison is a cloakroom that hands out tickets with names written on them. If the attendant never checks who you are, you can ask for a ticket in someone else's name. When that person arrives to collect their coat, the ticket with their name is already gone, and they are handed whatever the first person left behind.

The report frames this as insufficient security configurability and a flaw in authentication. Insufficient security configurability is an old OWASP Top 10 category, from the 2014 list, entry I8, which the report links to. It covers situations where a system's security settings or checks are not strict enough for what the system is used for. The underlying mistake here is the missing verification step at registration, which is what allows an unverified address to become a working account.

Impact

As the researcher puts it, the impact is that email addresses can be signed in using the main domain without verification, and an attacker can perform actions with an official email or another address. The business impact considered in the report is that data can be modified and control of the account assumed, and that the attacker can fill in the data first before the original account owner enters the system.

That last point is worth spelling out. Because the attacker gets in first, he can put his own details into the profile: names, preferences, anything the site lets a user set. When the real owner later arrives, he inherits a profile that is partly someone else's. Anything the site does with that account, from sending notifications to storing records, now involves a person who should never have had access.

Fix

The report does not describe a fix or a change made to the site.

Timeline

The report includes a timeline of how the disclosure went:

  1. 14 June 2019: report the issue
  2. 17 June 2019: not severe enough for us to track it as a security bug
  3. 19 June 2019: explain the security impact of this bug
  4. 27 June 2019: triaged
  5. 31 July 2019: valid issue

This is a common shape for bug bounty reports. A bounty programme is a company's offer to pay or credit people who report security problems responsibly. Triaged means the report has been looked at and accepted into the queue for investigation. The first answer here was that the issue was not severe enough to track, so the researcher wrote back explaining the security impact, and after that it was triaged and eventually marked as a valid issue.

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

Variants to test

If you want to look for the same kind of weakness elsewhere, these are the patterns to watch for:

  • Registration forms that accept an email and password without a verification mail or link: a positive result is being able to log in and use the account immediately after signup with an address you do not control.
  • Sites offering both a native email registration and a third-party sign-in (here, Gmail): a positive result is that the native registration for an address blocks or hijacks the later third-party sign-in for the same address, as in Case #2.
  • Pre-filling profile data (name, preferences) during registration: a positive result is that the attacker's data persists in the account the legitimate owner later reaches.
  • Subdomains found through enumeration that expose their own registration flows: a positive result is the same missing verification on a host that shares identity with the main product.

Glossary

  • Authentication: the part of a system that establishes who you are, usually through a password, a code or a third-party sign-in.
  • Bug bounty: a programme in which a company invites people to report security problems and rewards or credits them for doing so.
  • Bug bounty tip: a short piece of practical advice shared by a researcher for others doing the same work.
  • Directory search: trying lists of common folder and page names on a site to find ones that are not linked publicly.
  • Domain: the main part of a web address, such as withgoogle.com.
  • Email verification: the step where a site sends a link or code to an address to prove the person signing up can read mail sent there.
  • Flaw in authentication: a weakness in how a system decides who a user is, allowing someone to be treated as a user they are not.
  • Gmail sign-in: signing in to a third-party site using an existing Google account, so that Google confirms your identity.
  • Insufficient security configurability: an OWASP Top 10 2014 category (I8) for systems whose security checks or settings are not strict enough for their use.
  • OWASP Top 10: a widely referenced list of the most common categories of web application security risk.
  • Path: the part of a web address after the domain, locating a section or page, such as /digitalgarage.
  • Proof of concept (PoC): a demonstration that a reported weakness can actually be carried out.
  • Reconnaissance (recon): gathering information about a target before testing it, such as finding subdomains and directories.
  • Subdomain: a name placed in front of a domain, such as learndigital.withgoogle.com, often hosting a separate application.
  • Subdomain enumeration: using tools and wordlists to discover which subdomains exist for a domain.
  • Triaged: the state of a reported issue after it has been reviewed and accepted for investigation by the receiving team.
  • Valid issue: a reported problem that the receiving team has confirmed is real.

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.