How to prevent more than 200 million users from using Google services
The registration process on community.appsheet.com stored user details before email verification, allowing an attacker to pre-register accounts with victims' email addresses. This could block legitimate users from registering or let the attacker control accounts if victims clicked the verification link.
Published on omar0x01.medium.com
when hunting in Google I found that Google own this domain appsheet.com you can check this here https://whois.com/whois/appsheet.com so I started to search for vulnerabilities in it, so I found some bugs and they can associate together to abuse a harmful risk to a company so let’s start first bug let’s see this Proof…
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.
Context
The target is appsheet.com, a domain the researcher confirmed belongs to Google by checking the public WHOIS record:
https://whois.com/whois/appsheet.com
The feature in scope is the registration flow of the AppSheet community site at https://community.appsheet.com. A new user supplies personal information (Email, Name, UserName, Password and Portfolio URL) and registers. The researcher found three separate issues in that flow and combined them into a single abuse scenario.
Setup
No special accounts or roles were needed beyond the ability to reach the public registration form. The researcher used:
- A normal browser to walk through registration on
https://community.appsheet.com. - A Python script (shown in the report but not reproduced here in full) to automate account creation.
- A Tor proxy or any other IP rotation tool to move past the per-IP registration limit.
- Optionally, cloud VPS instances (the report mentions Azure student credit as one way to obtain them) to multiply the number of source IPs.
Finding it
The researcher started from the WHOIS record, then registered on the community site and watched what happened to the data being submitted. Two things stood out:
- The personal information (Email, Name, UserName, Password, Portfolio URL) is written straight into the database at registration time, before the email address is verified. The researcher argues the correct order is to verify the account first and only then persist the user record.
- The registration form has a rate limit that allows 300 new accounts before the source is blocked for some hours, and each new account takes three requests.
A third observation came from the Google sign-in path: users who register with a Google account can still have Name, UserName and App portfolio URL assigned to them by whoever initiates the registration.
Exploitation
Step 1: Denial of service against a victim's email address
Because the record is created before verification, an attacker can register using somebody else's email address. The victim receives a verification message they did not ask for and ignores it. After some hours the verification link expires, and from then on the address cannot be registered at all: the site returns a message saying the email has already been taken.
The second scenario is worse for the victim. If they do click the verification link before it expires, the account is activated with the username and password the attacker chose, so the account ends up under the attacker's control.
The researcher notes that users who register through Google have a separate path, so the email-based denial blocks the normal registration route.
Step 2: Spoofed identity on Google-registered accounts
For accounts created through the Google sign-in route, the attacker can still set Name, UserName and App portfolio URL. The Name field can carry a welcome message and the Portfolio URL field can carry a phishing or other malicious link. Because the new user believes the page comes from Google, that link inherits the trust of the brand.
Step 3: Scaling past the rate limit
The registration form allows 300 new accounts per source before blocking it for some hours, and each account costs three requests. The researcher wrote a Python script to drive the flow and suggests editing it to send requests through a Tor proxy or another IP rotation tool.
The arithmetic in the report:
- Register 300 accounts in roughly 3 minutes, then rotate the IP.
- That blocks 6,000 users from the subdomain's services per hour.
- Over a day: 6,000 users per hour * 24 hours = 108,000 users per day.
- With 31 accounts (the attacker's own plus 30 borrowed from friends) and 2 VPS per account, the monthly figure is 31 accounts * 2 VPS * 108,000 users per day * 30 days = 200,880,000 users per month.
The researcher frames this as a ceiling that grows with the attacker's resources, and notes the same volume can be used to phish users rather than only to block them.
Root cause
The design flaw is that the registration handler persists the full user record (Email, Name, UserName, Password, Portfolio URL) before the email address is verified. Verification is treated as a step after the data is already committed, so an unverified address is effectively reserved by whoever submitted it. The rate limit allows 300 accounts before a block of some hours, and each account costs three requests, so rotating IPs makes it irrelevant. On the Google sign-in path, Name, UserName and App portfolio URL can be assigned to users who register with a Google email, which lets an attacker pre-fill them.
Impact
An attacker can:
- Block arbitrary email addresses from ever registering on
community.appsheet.com, or take over the resulting account if the victim clicks the verification link before it expires. - Pre-fill Name and Portfolio URL on Google-registered accounts with a message and a phishing link that appears to come from Google.
- Scale both effects by rotating IPs, with the report's estimate of up to 200,880,000 affected users per month given the stated assumptions.
The described impact concerns services in the community.appsheet.com subdomain. The email-based denial does not affect users who register through Google, and the Google path is the one exposed to the spoofed profile fields.
Fix
The report does not describe a fix that was applied. Based on the described behaviour, the changes that would address it are:
- Do not persist the user record until the email address has been verified. Hold the pending registration in a short-lived store keyed by a token, and only create the account when the token is consumed.
- On the Google sign-in path, take Name, UserName and Portfolio URL from the identity provider or require the user to set them after first login, rather than accepting them from the registration request.
- Make the rate limit meaningful: tie it to more than the source IP (for example, per email domain, per ASN, or with a proof-of-work or CAPTCHA), and lower the per-source allowance so that 300 accounts from one address is not possible.
Variants to test
- Pre-verification persistence on other sign-up forms. Register with an address you control, do not click the link, and try to register the same address again after expiry. A positive result is an "already taken" response with no account ever verified.
- Attacker-chosen credentials on unverified accounts. Register a victim's address with a password you choose, then have the victim click the link. A positive result is a login with your password on an account tied to their address.
- Profile fields on federated sign-in. Register through Google, GitHub or another provider and see whether Name, username or website fields submitted alongside the request are stored. A positive result is your values appearing on the resulting account.
- Rate-limit accounting per request. Count how many requests one registration costs and how many registrations a single IP gets before the block. A positive result is a high allowance combined with a block that only keys on IP.
- IP rotation bypass. Repeat the registration flow through a proxy pool and confirm the block does not follow the account, the email domain or the browser fingerprint. A positive result is continued registrations after rotation with no other challenge.
What happened, in plain words
A security researcher was looking for bugs in Google's services. He found that Google owns the domain appsheet.com, and he confirmed this by looking up the public WHOIS record for the domain. WHOIS is a public directory that records who owns a domain name; anyone can query it, and it is a common first step when you want to know whether a website really belongs to a company before you start testing it.
https://whois.com/whois/appsheet.com
That line is just the address of a WHOIS lookup page for appsheet.com. Opening it shows the registration details of the domain, which is how the researcher satisfied himself that the site was in scope for Google's bug bounty programme. A bug bounty programme is a scheme where a company pays people for reporting security problems in its systems, but only in systems the company has explicitly said are fair game.
The part of the site he focused on is the community forum at https://community.appsheet.com. AppSheet is a product for building apps without writing code, and the community site is where its users talk to each other. To use the forum you have to create an account, and creating an account is called registration. During registration a new user types in personal information: Email, Name, UserName, Password and Portfolio URL. A Portfolio URL is simply a web address that points to the user's own work or profile page.
The researcher found three separate problems in that registration flow and then showed how they can be chained together into one abuse scenario. Chaining matters because each individual issue might look minor, but together they add up to something a company should care about.
Setting up
Nothing special was needed to start. The researcher did not need a staff account, an admin role or any insider access. He only needed to be able to reach the public registration form, which anyone with a browser can do. The tools he used were:
- A normal web browser, to walk through registration on
https://community.appsheet.comby hand and watch what happened. - A Python script, shown in his report, to create accounts automatically instead of clicking through the form over and over. Python is a programming language often used for small automation tasks; a script is just a text file of instructions the computer runs.
- A Tor proxy, or any other tool that changes the IP address his requests appeared to come from. An IP address is the numeric label a network uses to identify where traffic comes from, a bit like the return address on an envelope. Tor is a network that routes traffic through several relays so the destination sees a different address.
- Optionally, cloud VPS instances. A VPS, or virtual private server, is a rented computer in a data centre that you control remotely; each one gives you another IP address. The report mentions Azure student credit as one way to obtain them, since some cloud providers give students free credit to spend on servers.
Finding it
The researcher started from the WHOIS record, then registered on the community site and paid attention to what happened to the information he submitted. Two things stood out.
First, the personal information (Email, Name, UserName, Password, Portfolio URL) is written straight into the database at the moment of registration, before the email address has been verified. A database is the organised store where a website keeps its records, in this case the list of users. Verification means proving that the person typing the email address actually controls that mailbox, normally by clicking a link sent to it. The researcher's point is about ordering: the correct order is to verify the account first and only then save the user record. Here the record was saved first and verified afterwards.
Second, the registration form has a rate limit that allows 300 new accounts from one source before that source is blocked for some hours. A rate limit is a cap on how often something can be done in a period of time, like a shop that only lets each customer buy two items. The researcher also counted that each new account costs three requests. A request is one message a browser sends to a server asking it to do something, such as "show me this page" or "submit this form".
A third observation came from the Google sign-in path. Besides the normal form, the site lets people register with a Google account, which is called federated sign-in: instead of a new password, you prove who you are through another company you already have an account with. The researcher noticed that users who register this way can still have their Name, UserName and App portfolio URL assigned by whoever starts the registration.
Exploitation
Step 1: Denial of service against a victim's email address
Denial of service, often shortened to DoS, means making a service unusable for the people who should be able to use it. It does not require stealing data; it only requires preventing legitimate use.
Because the user record is created before verification, an attacker can register using somebody else's email address. The victim then receives a verification message they never asked for. Most people ignore unexpected emails like that. After some hours the verification link expires, and from then on the address cannot be registered at all: the site answers with a message saying the email has already been taken. The address is effectively reserved forever by a record nobody ever confirmed.
The second scenario is worse for the victim. If they do click the verification link before it expires, the account is activated with the username and password the attacker chose. The victim has now confirmed an account that the attacker controls, because the attacker set the credentials. Credentials are the pair of username and password used to log in.
The researcher notes that users who register through Google have a separate path, so the email-based denial blocks the normal registration route. In other words, the attack does not stop someone from signing up with Google, it stops them from signing up the ordinary way with their email address.
Step 2: Spoofed identity on Google-registered accounts
Spoofing means pretending to be something you are not. For accounts created through the Google sign-in route, the attacker can still set Name, UserName and App portfolio URL. The Name field can carry a welcome message and the Portfolio URL field can carry a phishing link or another malicious link. Phishing is the practice of luring someone to a fake page or link that looks trustworthy so they hand over information or run something harmful.
The reason this works is trust. The new user believes the page comes from Google, so a link placed there inherits the trust of the brand. If a stranger emails you a link you are suspicious; if the same link appears inside a Google-branded sign-up, you are far more likely to click it.
Step 3: Scaling past the rate limit
The registration form allows 300 new accounts per source before blocking that source for some hours, and each account costs three requests. The researcher wrote a Python script to drive the flow automatically and suggests editing it to send requests through a Tor proxy or another IP rotation tool. IP rotation means switching the address your traffic appears to come from, so the server sees each batch as a new visitor rather than the same one returning.
The arithmetic in the report:
- Register 300 accounts in roughly 3 minutes, then rotate the IP.
- That blocks 6,000 users from the subdomain's services per hour.
- Over a day: 6,000 users per hour * 24 hours = 108,000 users per day.
- With 31 accounts (the attacker's own plus 30 borrowed from friends) and 2 VPS per account, the monthly figure is 31 accounts * 2 VPS * 108,000 users per day * 30 days = 200,880,000 users per month.
The researcher frames this as a ceiling that grows with the attacker's resources, and notes the same volume can be used to phish users rather than only to block them. The number is not a fixed limit; it is what the stated assumptions produce, and more accounts or more servers would raise it.
Root cause
A root cause is the underlying design decision that makes the symptoms possible, as opposed to a single coding mistake.
The design flaw here is that the registration handler saves the full user record (Email, Name, UserName, Password, Portfolio URL) before the email address is verified. Verification is treated as a step after the data is already committed, so an unverified address is effectively reserved by whoever submitted it. The rate limit allows 300 accounts before a block of some hours, and each account costs three requests, so rotating IPs makes it irrelevant. On the Google sign-in path, Name, UserName and App portfolio URL can be assigned to users who register with a Google email, which lets an attacker pre-fill them. The identity provider is the outside company that vouches for the user, here Google.
Impact
An attacker can:
- Block arbitrary email addresses from ever registering on
community.appsheet.com, or take over the resulting account if the victim clicks the verification link before it expires. - Pre-fill Name and Portfolio URL on Google-registered accounts with a message and a phishing link that appears to come from Google.
- Scale both effects by rotating IPs, with the report's estimate of up to 200,880,000 affected users per month given the stated assumptions.
The described impact concerns services in the community.appsheet.com subdomain. A subdomain is a section of a larger domain, like a department inside a company. The email-based denial does not affect users who register through Google, and the Google path is the one exposed to the spoofed profile fields.
Fix
The report does not describe a fix that was applied. Based on the described behaviour, the changes that would address it are:
- Do not save the user record until the email address has been verified. Hold the pending registration in a short-lived store keyed by a token, and only create the account when the token is consumed. A token here is a long random string that acts as a one-time key, so the pending record can only be turned into an account by whoever holds it.
- On the Google sign-in path, take Name, UserName and Portfolio URL from the identity provider or require the user to set them after first login, rather than accepting them from the registration request.
- Make the rate limit meaningful: tie it to more than the source IP (for example, per email domain, per ASN, or with a proof-of-work or CAPTCHA), and lower the per-source allowance so that 300 accounts from one address is not possible. An ASN is a number that identifies a network operator, so counting per ASN groups many IPs together. A CAPTCHA is a puzzle meant to be easy for a person and hard for a script.
Variants to test
These are patterns to look for on other sites, not instructions to attack anyone. Only test systems you own or that explicitly invite testing.
- Pre-verification persistence on other sign-up forms. Register with an address you control, do not click the link, and try to register the same address again after expiry. A positive result is an "already taken" response with no account ever verified.
- Attacker-chosen credentials on unverified accounts. Register a victim's address with a password you choose, then have the victim click the link. A positive result is a login with your password on an account tied to their address.
- Profile fields on federated sign-in. Register through Google, GitHub or another provider and see whether Name, username or website fields submitted alongside the request are stored. A positive result is your values appearing on the resulting account.
- Rate-limit accounting per request. Count how many requests one registration costs and how many registrations a single IP gets before the block. A positive result is a high allowance combined with a block that only keys on IP.
- IP rotation bypass. Repeat the registration flow through a proxy pool and confirm the block does not follow the account, the email domain or the browser fingerprint. A browser fingerprint is the collection of small details a browser reveals, such as its version and fonts, which can identify it even when the IP changes. A positive result is continued registrations after rotation with no other challenge.
Glossary
- ASN: a number that identifies the network operator an IP address belongs to, grouping many addresses together.
- Bug bounty programme: a scheme where a company pays people for reporting security problems in systems it has authorised them to test.
- CAPTCHA: a small puzzle meant to be easy for a human and hard for an automated script.
- Credentials: the username and password pair used to log in.
- Database: the organised store where a website keeps its records, such as its list of users.
- Denial of service (DoS): making a service unusable for the people who should be able to use it.
- Federated sign-in: logging in or registering through another company's account, such as Google, instead of a new password.
- Fingerprint (browser): the combination of details a browser reveals that can identify it even when its IP address changes.
- Identity provider: the outside company that vouches for a user's identity during federated sign-in.
- IP address: the numeric label a network uses to identify where traffic comes from.
- IP rotation: switching the address your traffic appears to come from, so a server sees each batch as a new visitor.
- Phishing: luring someone to a fake page or link that looks trustworthy so they hand over information or run something harmful.
- Portfolio URL: a web address pointing to a user's own work or profile page.
- Python: a programming language often used for small automation tasks.
- Rate limit: a cap on how often something can be done in a period of time.
- Registration: the process of creating a new account on a site.
- Request: one message a browser sends to a server asking it to do something.
- Root cause: the underlying design decision that makes a set of symptoms possible.
- Script: a text file of instructions a computer runs.
- Spoofing: pretending to be something or someone you are not.
- Subdomain: a section of a larger domain, like a department inside a company.
- Token: a long random string that acts as a one-time key, proving the holder is allowed to perform an action.
- Tor: a network that routes traffic through several relays so the destination sees a different address.
- Verification: proving that a person controls an email address, usually by clicking a link sent to it.
- VPS (virtual private server): a rented computer in a data centre that you control remotely, each giving you another IP address.
- WHOIS: a public directory that records who owns a domain name.