Skip to content
Access control Disclosed report Beginner

Registration enabled on ███grab.com

A development portal restricted login to whitelisted Google accounts, but an open registration endpoint let anyone create a local account and log in. The resulting token gave access to an API that listed the users allowed to use the portal.

grouptherapy Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 3 days
  • Paid in 44 hours
  • Disclosed after 7 days

Summary by the program

The researcher has identified an under development portal which had login restricted only to whitelisted Google accounts. They then discovered an endpoint which allowed creation of new user accounts, thus bypassing the login restriction and allowing them to access an API call that was leaking a list of users that were allowed to access the portal.

We're thankful to @grouptherapy for this fine bug and short yet easy to reproduce bug report.

The report

Summary: An attacker can register an account on the █████████grab.com service, and access information from the service

Description: While logging in via Google accounts is prohibited, an attacker can register an account through the /login/create endpoint, as per the below request

POST /login/create HTTP/1.1
Host: █████grab.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://███grab.com/
Authorization: Bearer null
Content-Type: application/json
Content-Length: 61
Cookie: G_ENABLED_IDPS=google; G_AUTHUSER_H=0
Connection: close

{"userid":"█████","password":"██████"}

This can then be used to log in via the /login endpoint ,as in the following request:

POST /login HTTP/1.1
Host: █████grab.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://█████grab.com/
Authorization: Bearer null
Content-Type: application/json
Content-Length: 61
Cookie: G_ENABLED_IDPS=google; G_AUTHUSER_H=0
Connection: close

{"userid":"██████","password":"████"}

which returns a valid token. F265433

This token can be used to access some of the endpoints, such as /api/find/users, as in the following request: F265434

Impact

An attacker can access information in the system such as registered users. The application appears to be newly developed, and as such little information is stored currently.

The original report as published on HackerOne, by grouptherapy. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Root cause

Likely the registration endpoint was left enabled and issued tokens without checking that the new account was on the Google whitelist.

Impact

An attacker could read information in the system such as the list of registered users, though the application was new and held little data at the time.

What the attacker needed

Access to the portal; no account needed beforehand

How it was found

  1. Send a request to the account creation endpoint with a chosen userid and password.
  2. Log in through the login endpoint with those credentials to receive a valid token.
  3. Use the token to call the user-listing API endpoint.

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.

The site was meant to let only certain approved Google accounts in. But it also had a sign-up page that anyone could use to make a normal username and password account, and that account worked just like an approved one. Once logged in, the person could call an API that returned the list of approved users.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Grab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.