Skip to content
Access control Write-up Beginner

I found a secret door into an admin panel — and got paid $1350 for it

The website's login page had no sign-up option, but the underlying Supabase authentication service still accepted direct sign-up requests using an API key exposed in client traffic. An attacker could create an account and gain full admin dashboard access, exposing creator payment data and system settings.

Dhruv Gupta Follow

Published on medium.com

Bug Bounty

Dhruv Gupta, 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 a website the researcher refers to as redacted.com, and specifically a subdomain, pay.redacted.com. That subdomain hosted a dashboard used to manage payments to the site's creators, described in the report as YouTubers, influencers and similar. The data behind it was sensitive: who is getting paid, how much, and bank details.

The dashboard's login page had no "Sign Up" button anywhere, and the message was that accounts could not be created there: the panel was for the internal team only. Behind the front end, user logins were handled by Supabase, a hosted authentication and database service used by many websites. The website's own interface had no registration path, but Supabase's own signup endpoint was still reachable and working.

Setup

The researcher tested the site with Burp Suite, used to intercept and inspect the traffic the browser sends. No accounts, roles or versions are given beyond that. The key needed for the attack was exposed to the browser: it appeared in the login traffic.

Finding it

While testing redacted.com the researcher noticed the pay.redacted.com subdomain and visited its login page. There was no way to register. Intercepting the login request in Burp Suite showed the request going to Supabase, with an API key present in the traffic. An API key here is effectively a password that lets a client talk directly to the Supabase service, so its presence meant the Supabase project could be addressed without going through the website at all.

The researcher's framing is a nightclub with a strict no walk-ins policy at the front, and a staff entrance round the back with the keypad code left on a sticky note beside it. The front door (the website) refused new accounts; the back door (Supabase's signup system) accepted them, and the key was in plain sight.

Exploitation

Step 1: Observe the login request and the API key

The intercepted login request looked like this:

HTTP
POST /auth/v1/token?grant_type=password HTTP/1.1Host: supabase.coApikey: sb_*****************Origin: https://pay.redacted.com

The request goes to Supabase's password grant endpoint, /auth/v1/token with grant_type=password, and carries the project's Apikey header. The Origin header shows the request was made in the context of the payment dashboard. The key value is masked in the report.

Step 2: Send a signup request directly to Supabase

With the key in hand, the researcher sent a signup request straight to the Supabase project, bypassing the website entirely. The command used was:

Bash
curl -X POST "https://[redacted].supabase.co/auth/v1/signup" \  -H "apikey: [key found in traffic]" \  -H "Content-Type: application/json" \  -d '{"email":"[redacted]","password":"Password123!"}'

This posts a JSON body with an email and password to the project's /auth/v1/signup endpoint, authenticated only by the API key taken from the intercepted traffic. The response was:

Text
# What came back:{ "role": "authenticated", "email": "[redacted]" }# Translation: "Welcome! You're in."

The server returned a user with the authenticated role. The account was created with no invite and no approval.

Step 3: Verify the email and log in normally

The researcher verified the email address and then logged in through the ordinary login page of pay.redacted.com. Instead of landing on a limited new-user page, the session opened the full admin dashboard: complete creator lists, payment history and system settings.

Root cause

Registration was disabled only in the website's user interface. The Supabase authentication service behind it still had its signup endpoint enabled and reachable, and the project's API key was shipped to the browser as part of normal login traffic, so anyone watching their own requests could use it. A self-registered account, once logged in through the normal page, was given the full admin dashboard rather than a restricted new-user view. The report does not describe any role or permission check that would have separated a fresh signup from an administrator.

Impact

In the wrong hands, an attacker could have read all of the data in the dashboard, changed payment settings, or stayed in the panel unnoticed for weeks. That data includes who is paid, how much, and bank details. The researcher characterises admin access as a critical finding, on the basis that severity is not "I got in" but what can be done once inside. The report does not give a CVSS score or a formal severity rating.

Fix

The report says the issue was reported and fixed the same day, and that the researcher was paid $1350.

Variants to test

  1. Look for subdomains that use a hosted auth or backend service (Supabase and similar) and check whether the service's own signup or registration endpoint still accepts requests even when the site's UI has no registration. A positive result is a created account returned by the service, as here with a role in the response.
  2. Intercept login and other authenticated traffic and look for API keys and service URLs in headers and bodies. A positive result is a key that can be replayed directly against the service host.
  3. After self-registering, log in through the normal UI and observe which view you land on. A positive result is landing on an administrative or full-featured dashboard rather than a limited new-user page.
  4. Compare what a self-registered account can read and change against what an administrator can. A positive result is access to other users' records, payment details or system settings.

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. 9 min read.

What happened, in plain words

A security researcher was looking at a website, which he calls redacted.com, and noticed a smaller companion site attached to it: pay.redacted.com. A subdomain is simply a site that lives under the same main name, like a room inside a building. This particular room was a dashboard, meaning a private control panel with screens full of information. It was used to manage payments to the site's creators, the kind of people the report describes as YouTubers and influencers. The information inside was sensitive: who is getting paid, how much, and bank details.

When the researcher opened the login page of that dashboard, there was no "Sign Up" button anywhere. The message was clear: you cannot create an account here, this panel is for the internal team only. Most people would close the tab at that point. The researcher did not. He opened a tool called Burp Suite, which lets you look at the traffic your browser sends and receives, the messages that normally fly past invisibly when you click something.

What he found was that the website's front end had no registration path, but the login service sitting behind it did. That service was Supabase, a hosted product that many websites use to handle user accounts and store data, so the site owner does not have to build that part themselves. Supabase's own signup feature was still switched on and still reachable. And the key needed to talk to it was visible in ordinary login traffic.

The researcher's own comparison is a nightclub with a strict no walk-ins policy. The bouncer at the front turns everyone away. Round the back there is a staff entrance with a keypad, and someone left the code on a sticky note next to it. The front door, the website, refused new accounts. The back door, Supabase's signup system, accepted them, and the key was in plain sight.

He used that key to create an account directly with Supabase, skipping the website entirely. He verified the email address, logged in through the normal login page, and instead of landing on a limited page for new users he was looking at the full admin dashboard: complete creator lists, payment history and system settings. He reported it, it was fixed the same day, and he was paid $1350.

The setup

The researcher tested the site with Burp Suite. In plain terms, Burp Suite sits between your browser and the website and shows you every request and response, and lets you change them before they go out. It is the equivalent of opening the envelope of a letter before it is delivered, reading it, and resealing it.

The key needed for the attack was exposed to the browser. An API key is a long string of characters that acts like a password for a service: whoever holds it can send requests to that service and be treated as a legitimate client. Here the key was not hidden away on the server; it travelled to the browser as part of normal login traffic, so anyone watching their own requests could read it.

Finding it

While testing redacted.com, the researcher noticed the pay.redacted.com subdomain and visited its login page. There was no way to register. He intercepted the login request in Burp Suite and saw that it went to Supabase, with an API key present in the traffic. That meant the Supabase project could be addressed directly, without going through the website at all.

Step 1: Watch the login request and spot the API key

The intercepted login request looked like this:

HTTP
POST /auth/v1/token?grant_type=password HTTP/1.1Host: supabase.coApikey: sb_*****************Origin: https://pay.redacted.com

Line by line:

  • POST /auth/v1/token?grant_type=password HTTP/1.1 is the request line. POST means "I am sending data to the server", as opposed to GET, which just asks for a page. /auth/v1/token is the address of a specific feature on Supabase, the one that hands out a login token. A token is a short-lived pass that proves you logged in, so you do not have to send your password with every click. grant_type=password tells that feature which method is being used: here, exchanging an email and password for a token. HTTP/1.1 is simply the version of the language the browser and server speak.
  • Host: supabase.co says which server the request is for. It is Supabase's own domain, not the dashboard's, which is the clue that the login is handled by a third party.
  • Apikey: sb_***************** is the API key header. The value is masked in the report, but the sb_ prefix is a hint that this belongs to a Supabase project. This is the sticky note with the keypad code on it.
  • Origin: https://pay.redacted.com tells Supabase which website the request was made from. It shows the request came from the payment dashboard, so the dashboard is the client using this key.

Why this step matters: the researcher was not guessing. He was reading what his own browser already sent, and noticing that a credential for a whole backend service was sitting in it.

Step 2: Send a signup request straight to Supabase

With the key in hand, he sent a signup request directly to the Supabase project, bypassing the website entirely. The command used was:

Bash
curl -X POST "https://[redacted].supabase.co/auth/v1/signup" \  -H "apikey: [key found in traffic]" \  -H "Content-Type: application/json" \  -d '{"email":"[redacted]","password":"Password123!"}'

Line by line:

  • curl is a command-line tool for sending requests to a server without a browser. Think of it as a browser with no screen: it fetches or posts exactly what you tell it to.
  • -X POST sets the method to POST, the same "I am sending data" method as in the login request.
  • "https://[redacted].supabase.co/auth/v1/signup" is the address being called. It is the Supabase project's signup feature, the back door. The project name is redacted in the report.
  • -H "apikey: [key found in traffic]" adds the API key as a header, the same header seen in the intercepted login. This is what makes Supabase treat the request as coming from the dashboard's own application.
  • -H "Content-Type: application/json" tells the server the body is formatted as JSON, a common text format for structured data, made of names and values in curly brackets.
  • -d '{"email":"[redacted]","password":"Password123!"}' is the body: the email address and password for the account to be created. The email and password shown are placeholders from the report.

Why this step matters: the website had no signup button, but the service behind the website did have a signup feature, and the key let the researcher talk to that service directly. Hiding a button removes the path, not the capability.

The response was:

Text
# What came back:{ "role": "authenticated", "email": "[redacted]" }# Translation: "Welcome! You're in."

What this means: the server replied with a user object. role is the account's role, the label that decides what the account is allowed to do, and here it was authenticated, meaning a logged-in user. email is the address that was registered. The account was created with no invite and no approval. The researcher's own translation of the response is "Welcome! You're in."

Step 3: Verify the email and log in normally

He verified the email address, and then logged in through the ordinary login page of pay.redacted.com. Instead of landing on a limited new-user page, the session opened the full admin dashboard: complete creator lists, payment history and system settings.

Why this step matters: it proves the account was not just created but trusted. The dashboard treated a self-registered user as a legitimate one and gave it the administrator's view.

Why it worked

Registration was disabled only in the website's user interface. The Supabase authentication service behind it still had its signup endpoint enabled and reachable, and the project's API key was shipped to the browser as part of normal login traffic, so anyone watching their own requests could use it.

A self-registered account, once logged in through the normal page, was given the full admin dashboard rather than a restricted new-user view. The report does not describe any role or permission check that would have separated a fresh signup from an administrator.

What could have gone wrong

In the wrong hands, an attacker could have read all of the data in the dashboard, changed payment settings, or stayed in the panel unnoticed for weeks. That data includes who is paid, how much, and bank details. The researcher characterises admin access as a critical finding, on the basis that severity is not "I got in" but what can be done once inside. The report does not give a CVSS score or a formal severity rating.

The fix

The report says the issue was reported and fixed the same day, and that the researcher was paid $1350.

Things to try on your own targets

  1. Look for subdomains that use a hosted auth or backend service such as Supabase, and check whether the service's own signup or registration endpoint still accepts requests even when the site's interface has no registration. A positive result is a created account returned by the service, as here with a role in the response.
  2. Intercept login and other authenticated traffic and look for API keys and service URLs in headers and bodies. A positive result is a key that can be replayed directly against the service host.
  3. After self-registering, log in through the normal interface and observe which view you land on. A positive result is landing on an administrative or full-featured dashboard rather than a limited new-user page.
  4. Compare what a self-registered account can read and change against what an administrator can. A positive result is access to other users' records, payment details or system settings.

Glossary

  • Subdomain: a site that lives under a main domain name, such as pay.redacted.com under redacted.com.
  • Dashboard: a private control panel with screens of data and settings.
  • Burp Suite: a tool that intercepts and inspects the traffic between your browser and a website, and lets you modify it.
  • Supabase: a hosted service that handles user accounts and data storage for websites.
  • API: a way for one piece of software to talk to another directly, without a human clicking through a website.
  • API key: a long string that acts like a password for a service, letting whoever holds it send requests as a legitimate client.
  • Endpoint: a specific address on a server that performs one function, such as login or signup.
  • Header: a line of extra information attached to a request or response, such as which server it is for or which key is being used.
  • Origin: a header that says which website a request was made from.
  • Token: a short-lived pass proving you logged in, so you do not resend your password with every click.
  • POST: the request method used to send data to a server.
  • GET: the request method used to ask a server for a page or resource.
  • HTTP/1.1: the version of the language browsers and servers use to exchange requests and responses.
  • curl: a command-line tool for sending requests to a server without a browser.
  • JSON: a text format for structured data, made of names and values in curly brackets.
  • Content-Type: a header that tells the server how the body of a request is formatted.
  • Role: a label on an account that decides what it is allowed to do, such as authenticated for a logged-in user.
  • Authenticated: proven to be logged in as a valid user.
  • Broken access control: a flaw where the system fails to check whether a user is allowed to do what they are doing.
  • CVSS: a standard scoring system for rating the severity of a vulnerability.
  • Severity: how serious a vulnerability is, usually based on what an attacker could do with it.

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.