When the Frontend Says “Invite Only” but the Backend Says Otherwise
The application advertised invite-only access via SSO or waitlist, but the underlying identity provider still allowed native username/password self-registration. A newly created account was automatically placed into a shared organisation and could call the membership endpoint to retrieve the names and email addresses of thousands of real users.
Published on medium.com
Cybersecurity
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 was a web application that presented itself as invite-only. The visible login page offered three options: Continue with Google, Continue with Microsoft, and Join the waitlist. There was no obvious "Create account" workflow for arbitrary users. The application was split across three hosts:
Authentication ran through AWS Cognito in eu-west-1, with the pool identifier eu-west-1_guA1KbTFs and OAuth client 3j84ahbvjioe4gev5musf2stid. Both identifiers were present in the application's JavaScript bundle. The API exposed organisation-scoped resources under /v1/organizations, including a membership endpoint that returns the organisation's member records.
The feature at the centre of the finding is that membership endpoint. In normal use it lets a member of an organisation read the roster of that organisation. The question the researcher asked was who counts as a member, and what a member is allowed to see.
Setup
The researcher worked from the public application without an invitation. The pool and client identifiers were present in the application's JavaScript bundle.
The test identity was deliberately the most ordinary account possible: a fresh username and password registration with no invitation, no account history, no administrative privileges and no legitimate organisational role.
Finding it
The login interface suggested a restricted-access product, but the researcher treated that as a frontend workflow rather than an authorisation boundary. The distinction matters because a frontend can hide a path such as:
/signup
without the backend having disabled:
POST /signup
Equally, an application can display:
Only invited users may access this application.
while the underlying identity provider still allows native username/password registration.
Mapping the authentication architecture produced this flow:
Application
↓
Hosted Identity Provider
↓
OAuth authorization flow
↓
API
With the Cognito pool and client identifiers in hand, the researcher asked what security-sensitive capabilities were enabled for that client, rather than treating the public client ID as a secret in itself. The questions split into two groups.
Authentication questions:
- Can users self-register?
- Is registration invitation-only?
- Is email verification required?
- Which OAuth flows are enabled?
- Is PKCE enforced?
- Can a newly created account obtain application tokens?
- Are there restrictions on which users can authenticate?
Authorisation questions:
- What organisation does a new account belong to?
- What resources become available immediately after signup?
- Does account creation automatically grant membership?
- Are permissions checked again at the API layer?
The assumption that access was SSO and waitlist restricted broke down at the first of these: the identity provider still allowed native self-registration.
Exploitation
Step 1: Register directly against Cognito
The intended flow was:
User
↓
Google/Microsoft
↓
Waitlist / approved access
↓
Application
but the backend also accepted a native registration request. Creating an account directly through the Cognito API followed this sequence:
Cognito SignUp
↓
New username/password account
↓
Email verification
↓
Account becomes valid
The registration endpoint returned a valid user identifier and an email confirmation workflow. At this point there was already an access-control discrepancy between the advertised policy and the backend behaviour, but a bypass on its own is only the first half of a vulnerability. The next question was what the newly created identity could actually do.
Step 2: Authenticate through the application's OAuth flow
The new account was taken through the application's normal authentication process. It could authenticate through the hosted OAuth interface and obtain an API access token. The flow looked approximately like this:
Attacker account
↓
OAuth authorize
↓
Native username/password authentication
↓
Authorization code
↓
Token endpoint
↓
Access token
↓
Pulse API
The public OAuth client did not require a PKCE verifier during token exchange. That confirmed the important point: the self-created identity was not an orphaned Cognito account sitting outside the application. It could become an application-authenticated principal.
Step 3: Enumerate what the fresh account inherits
The first API request was the organisation listing endpoint. The newly minted token returned:
pulsedemo
The new account had automatically been associated with an organisation. The question changed from "I found an open signup" to "what does every newly created account inherit?"
Step 4: Map the organisation boundary
With an organisation ID known, the researcher tested organisation-related endpoints to establish the exact authorisation boundary rather than to cause damage:
/v1/organizations
/v1/organizations/{id}/membership
/v1/organizations/{id}/metrics
and a set of adjacent resources:
/members
/events
/integrations
/billing
/repositories
/users
/me
/account
The resulting picture was narrow. The new account could access the organisation and its membership information, while many other potentially sensitive endpoints returned 403. The report specifically verified that there was no demonstrated cross-tenant access and no administrative escalation, so the correct claim was not platform-wide compromise but that a newly self-registered account can read the member roster of the shared organisation.
Step 5: Request the membership endpoint
The key request was:
GET /v1/organizations/{organization_id}/membership
The endpoint returned the organisation's membership records. The response contained fields such as:
{
"email": "[redacted]",
"name": "username",
"organization_id": "...",
"time_created": "..."
}
The problem was not merely that the endpoint existed. It was the authorisation model behind it:
Newly created account
↓
Automatically becomes organization member
↓
Requests membership endpoint
↓
Receives entire organization roster
The endpoint treated "member of organisation" as equivalent to "authorised to read every member's personal information". Those are not the same thing: an ordinary member does not necessarily need every other member's private email address. This is a data-level authorisation and data minimisation problem.
Step 6: Confirm the data is live
The response contained thousands of records. The final verified dataset included:
4,853 real email addresses
and corresponding names. The addresses were not synthetic test data: the report identified thousands of corporate addresses, including domains associated with real organisations.
To avoid assuming that data is real simply because it looks real, the researcher validated the dataset against the membership count:
Before account joined:
4,872 members
After test account joined:
4,873 members
The controlled test account caused the count to increase, which showed that the endpoint represented a live, continuously updated organisation rather than a static demo fixture. That is evidence rather than inference.
Step 7: Scope the impact
Rather than escalating indefinitely, the researcher mapped what the token could and could not reach:
| Resource | Result |
|---|---|
| Organization membership | Accessible |
| Organization metrics | Accessible, aggregate data |
| Organization listing | Accessible |
| Members | 403 |
| Events | 403 |
| Integrations | 403 |
| Billing | 403 |
| Repositories | 403 |
| Users | 403 |
/me |
403 |
/account |
403 |
The report also verified no demonstrated cross-tenant access, no administrative promotion, no token or role exposure and no write access. Showing where access stops is what makes the impact claim credible.
The full chain
ATTACKER
│
▼
Public application frontend
│
│ UI says:
│ SSO / waitlist
▼
Identity infrastructure
│
│ native signup still enabled
▼
Self-register account
│
▼
Verify attacker email
│
▼
OAuth authentication
│
│ no PKCE requirement
▼
Valid API token
│
▼
Auto-joined pulsedemo
│
▼
Membership API request
│
▼
Full organization roster
│
▼
4,853 real emails + names
Two vulnerabilities combined here. The first was an access-control bypass: the intended SSO and waitlist restriction was not enforced consistently by the backend. The second was broken authorisation and data minimisation: any member of the shared organisation could retrieve the full membership roster, including other users' email addresses and names. The first made the attacker a member; the second turned that membership into a privacy disclosure.
Root cause
The investigation identified three contributing design problems.
- Registration policy mismatch. Native Cognito registration remained enabled even though the application's intended access model was SSO and waitlist based. The intended SSO and waitlist restriction was not enforced consistently by the backend.
- Weak OAuth configuration. The public OAuth client did not require PKCE during the authorisation-code exchange.
- Excessive membership authorisation. The membership endpoint returned the complete organisation roster to an ordinary member instead of applying appropriate authorisation and data minimisation. It conflated "authenticated member of the organisation" with "authorised to read every member's personal information".
A valid token proves identity; it does not prove authorisation to read every object associated with that identity.
Impact
An attacker could create an account without an invitation or waitlist approval, complete the email verification workflow, authenticate through the application's OAuth flow, and be placed automatically into a shared organisation. From there the account could call the membership endpoint and receive the names and email addresses of thousands of other users. The verified dataset was 4,853 real email addresses with corresponding names, including corporate addresses on domains associated with real organisations.
The exposure was bounded. The report demonstrated no cross-tenant access, no administrative promotion, no token or role exposure and no write access, and the other resources tested returned 403. The impact is a privacy disclosure of the shared organisation's member roster, not a compromise of the wider platform.
Fix
The issue was confirmed and the endpoint was fixed in production. The report recommended defence in depth across several layers.
- Authentication. Disable native self-registration if the product is supposed to be invitation-only, or enforce the intended allowlist and waitlist policy server-side.
- OAuth. Require PKCE with S256 for public clients:
PKCE
S256
- Tenant isolation. Do not automatically place new accounts into a shared organisation containing real users' personal information. Use an isolated demo or trial tenant instead.
- API authorisation. The membership endpoint should distinguish between an authenticated user and an authorised organisation administrator. A normal member should not automatically receive every member's private information.
- Data minimisation. Return only the fields required for the intended functionality.
Variants to test
- Native registration on an SSO-only product. Find the identity provider from the frontend bundle and attempt a direct signup against it. A positive result is a valid user identifier and an email confirmation workflow from the provider while the UI offers only SSO and waitlist options.
- PKCE enforcement on public clients. Complete an authorisation-code exchange without a PKCE verifier. A positive result is a token issued without the verifier.
- Automatic tenant assignment. After creating the lowest-privilege account, call the organisation listing endpoint. A positive result is an organisation identifier returned to an account that was never invited to it.
- Roster exposure to ordinary members. Call the membership endpoint as a plain member. A positive result is other members' email addresses and names in the response.
- Live-data verification. Compare the membership count before and after your test account joins. A positive result is the count increasing by one, which proves the dataset is live rather than a fixture.
- Boundary mapping. Walk adjacent resources such as members, events, integrations, billing, repositories, users,
/meand/accountwith the same token. A positive result is a clear split between accessible and403resources that lets you state the exact limit of the exposure. - Identifier following. Take any
organization_id,project_id,team_id,repository_idoruser_idreturned by an endpoint and feed it to other endpoints. A positive result is an object belonging to another user or tenant being returned to your account. - Field-level excess. Where access to an endpoint is legitimate, inspect the returned fields. A positive result is private data such as email, phone, internal identifiers or role metadata that the calling role does not need for the feature to work.
When you find sensitive data, establish the number of affected records, inspect a minimal representative sample, confirm the records correspond to real entities, stop once impact is proven, and do not publish unnecessary personal data. The goal is enough evidence to prove impact, not collecting as much personal information as possible.
What happened, in plain words
Imagine a private club. The door has a sign saying "members only, join the waiting list", and the only ways in are through two big partner companies (Google and Microsoft). There is no sign-up form on the door. Most people would look at that and walk away.
A security researcher did not walk away. He asked a simple question: is the club really locked, or is it just that nobody painted a door on the wall? He looked behind the scenes and found that the identity provider still allowed native username/password registration. A new account could be created, authenticated through the OAuth flow, and then request the organisation's full member list, including names and email addresses.
That list turned out to be real: 4,853 email addresses belonging to real people at real companies. The endpoint was fixed and the researcher received a 300 US dollar bounty.
The lesson, in one sentence: what a website shows you is not the same as what its servers will actually do.
The words you need first
Before the story makes sense, here are a few everyday ideas. Each one comes back later, so you can flip back here whenever you need to.
- Frontend: everything your browser shows you. Buttons, forms, pages. It is like the shop window. It is easy to change and easy to fake, because it runs on your own computer.
- Backend: the computers the company runs, which store the data and decide what is allowed. It is like the stockroom and the manager behind the counter. You never see it directly, but it is where the real rules live.
- API: short for Application Programming Interface. A way for one piece of software to ask another for data, in a fixed format. Think of it as a waiter: you say "one membership list, please", the waiter goes to the kitchen (the backend) and brings back a plate. The waiter only brings what the kitchen is willing to give.
- Endpoint: one specific address on that waiter's menu. For example, "the membership list" is one endpoint, "the billing information" is another. Each endpoint is a separate dish with its own rules.
- Request: one message your browser (or a tool) sends to a server, asking for something. A request has a method (a verb like GET, meaning "give me", or POST, meaning "here is something, please process it"), a path (which endpoint), and sometimes a body (the data you send).
- Response: the server's reply. It comes with a status code, a number that says how it went.
200means "here you go".403means "I know who you are, but you are not allowed". - Token: a short string of characters that proves who you are, a bit like a wristband at a festival. You show it with every request and the server lets you in without asking for your password again. Anyone who has your wristband can act as you, which is why tokens are secret.
- Cookie: a small piece of data a website stores in your browser so it can recognise you on the next page. A token is often kept in a cookie.
- Authentication: proving who you are. Showing your passport.
- Authorisation: what you are allowed to do once you have proved who you are. Your passport does not let you into the cockpit.
- Identity provider: a separate service whose whole job is to handle logins. Instead of every website storing passwords, they hand that job to a specialist. Google and Microsoft accounts are identity providers. So is AWS Cognito, which appears in this story.
- OAuth: the system that lets a website say "log in with Google" without ever seeing your Google password. Google confirms who you are and hands the website a short-lived pass.
- SSO: single sign-on. Log in once with a company account and you are let into many services.
- Waitlist: a list of people waiting for approval. You ask to join, a human says yes or no later.
- Self-registration: the ability to create your own account without anyone approving it.
- PII: personally identifiable information. Data that points at a real person: name, email, phone number, address.
- Vulnerability: a weakness that lets someone do something they should not be able to do.
- Bug bounty: a programme where a company pays researchers for finding and reporting such weaknesses instead of punishing them.
- Exploit: actually using a weakness to get the forbidden result.
- Chain: two or more small weaknesses joined together, where the combination is far more serious than either alone.
The target: a product that says "invite only"
The researcher was looking at a web application. When he opened it, the login page offered exactly three choices:
- Continue with Google
- Continue with Microsoft
- Join the waitlist
There was no "Create account" button for a random person. If you were a normal visitor, the message was clear: you cannot get in unless you are invited or you come through one of the two big companies.
Behind the scenes, the application was not one machine but three, each with its own job:
Line by line:
- The first line is the website you see in your browser, the shop window.
- The second line is the identity provider, the specialist that handles logins. It lives at its own address, separate from the website.
- The third line is the API, the waiter that serves data. Notice the
/v1at the end: that is a version marker, a way for the company to change the menu later without breaking old customers.
Why does this matter? Because each of those three addresses is a separate door. A lock on one door says nothing about the other two. Most beginners only rattle the front door. The researcher walked around the building and looked at all three.
The login system was run by a service called AWS Cognito, in a region called eu-west-1. Two identifiers were involved: a pool identifier eu-west-1_guA1KbTFs and an OAuth client 3j84ahbvjioe4gev5musf2stid. Both were sitting in the application's JavaScript bundle.
What is a JavaScript bundle? When you open a modern website, your browser downloads a file of code that makes the page interactive. That file is plain text and you can read it. Developers often leave configuration values in it, because the browser needs them to work. Here, the pool identifier and the client identifier were in there.
What do those two identifiers mean? The pool is the collection of user accounts the identity provider manages, a bit like a filing cabinet. The client is the particular application that is allowed to talk to that cabinet, a bit like a named key holder. Neither is a password. Both are visible to anyone who opens the page. That is normal and not automatically a problem. The real question is what those identifiers are allowed to do.
The API had resources grouped under /v1/organizations, meaning "things that belong to an organisation". One of those was a membership endpoint, which returns the list of members of an organisation.
That membership endpoint is the heart of the story. In normal use it is a perfectly reasonable feature: if you are in a team, you can see who else is in the team. The researcher's question was not "does this endpoint exist" but "who counts as a member, and what is a member allowed to see".
Setting up
The researcher started without an invitation or special access. The application's own JavaScript bundle contained the pool and client identifiers.
The test account was deliberately the most boring account possible: a brand-new username and password, no invitation, no history, no admin rights, no role in any team. That is a deliberate choice, and it is worth understanding why. If you test with a powerful account, you learn what powerful accounts can do, which you already knew. If you test with the weakest possible account, you learn what the application accidentally gives away to nobody in particular. That is where the interesting bugs live.
Finding it
The login page suggested a restricted product. The researcher treated that as a frontend workflow, not as an authorisation boundary.
That distinction is the whole article in one line. A frontend can hide a path such as:
/signup
without the backend having disabled:
POST /signup
What do those two snippets mean? The first is a web address, the kind you would type in the bar at the top of your browser. The second is a request: POST means "here is some data, please create something", and /signup is the endpoint. Hiding the address from the menu does not remove the endpoint from the server. It is like a restaurant taking the dessert off the printed menu while the kitchen still makes it for anyone who asks.
Equally, an application can display:
Only invited users may access this application.
while the underlying identity provider still allows native username/password registration. The sentence is a claim made by the frontend. It is not a lock.
Mapping the authentication architecture produced this flow:
Application
↓
Hosted Identity Provider
↓
OAuth authorization flow
↓
API
Read it as a journey. You arrive at the application. The application sends you to the identity provider to prove who you are. The identity provider runs the OAuth flow, which ends with a pass. You take that pass to the API, and the API serves you data. Each arrow is a place where a rule could be missing.
With the Cognito pool and client identifiers in hand, the researcher asked what security-sensitive capabilities were enabled for that client, rather than treating the public client ID as a secret in itself. A client identifier is like the name on a key holder's badge: it is meant to be seen. The question is which doors that badge opens.
The questions split into two groups.
Authentication questions, meaning "who is allowed to prove they are a user":
- Can users self-register?
- Is registration invitation-only?
- Is email verification required?
- Which OAuth flows are enabled?
- Is PKCE enforced?
- Can a newly created account obtain application tokens?
- Are there restrictions on which users can authenticate?
Authorisation questions, meaning "once you are a user, what can you touch":
- What organisation does a new account belong to?
- What resources become available immediately after signup?
- Does account creation automatically grant membership?
- Are permissions checked again at the API layer?
The last question is the one that catches most real bugs. Many systems check your identity at the door and then never check again. The API trusts anyone holding a valid token. If that is true, then the only thing standing between an outsider and the data is how hard it is to get a token.
The assumption that access was SSO and waitlist restricted broke down at the very first question: the identity provider still allowed native self-registration.
Exploitation
Step 1: Register directly against Cognito
The intended flow was:
User
↓
Google/Microsoft
↓
Waitlist / approved access
↓
Application
This is the journey the company designed. You come in through Google or Microsoft, a human checks the waitlist, and only then do you reach the application. Three checkpoints.
But the backend also accepted a native registration request. Creating an account directly through the Cognito API followed this sequence:
Cognito SignUp
↓
New username/password account
↓
Email verification
↓
Account becomes valid
Line by line:
Cognito SignUpis the identity provider's own account-creation operation, the one the website never showed a button for.- The result is a new account with a username and a password, created by the researcher, not by Google or Microsoft.
- Email verification means the provider sends a code to the email address you gave, and you type it back to prove the address is yours. This is a normal anti-abuse step, and it does not stop an attacker, because an attacker can own an email address.
- Once verified, the account is valid: a real, working identity in the company's system.
The registration endpoint returned a valid user identifier and an email confirmation workflow. In plain words: the server said "yes, I made you an account, here is its ID, now confirm your email".
At this point there was already an access-control discrepancy between the advertised policy and the backend behaviour. The sign said invite only; the office handed out membership cards to anyone who asked.
But a bypass on its own is only the first half of a vulnerability. Getting into the building is not the same as getting into the safe. The next question was what the newly created identity could actually do.
Step 2: Authenticate through the application's OAuth flow
The new account was taken through the application's normal authentication process. It could authenticate through the hosted OAuth interface and obtain an API access token. The flow looked approximately like this:
Attacker account
↓
OAuth authorize
↓
Native username/password authentication
↓
Authorization code
↓
Token endpoint
↓
Access token
↓
Pulse API
This is the most technical-looking block in the article, so let us walk it slowly.
Attacker accountis the account the researcher just created.OAuth authorizeis the first step of OAuth: the application asks the identity provider "this person wants in, please confirm them".Native username/password authenticationis where the researcher types the username and password he registered. Normally this step would be "Google confirms you". Here it is the identity provider's own login form.Authorization codeis a short-lived string the identity provider hands back to say "yes, this person is confirmed". It is like a claim ticket at a cloakroom: not the coat itself, just proof you can collect it.Token endpointis the counter where you swap the claim ticket for the coat.Access tokenis the coat: the actual pass you show to the API on every request.Pulse APIis where you spend it.
The public OAuth client did not require a PKCE verifier during token exchange. PKCE is worth explaining because it appears again in the fixes. When a public client (a program running on a user's own machine, like a browser app) asks for a token, PKCE makes it prove it is the same program that started the login, by sending a secret it generated at the start. Without that check, anyone who intercepts the claim ticket can swap it for the coat. Here, the counter did not ask for the secret.
That confirmed the important point: the self-created identity was not an orphaned Cognito account sitting outside the application. It could become an application-authenticated principal. In plain words, the account was not just a name in a filing cabinet; it could walk up to the API and be served.
Step 3: Enumerate what the fresh account inherits
The first API request was the organisation listing endpoint. The newly minted token returned:
pulsedemo
One word, and it changes everything. pulsedemo is the name of an organisation. The new account had automatically been associated with it, without anyone inviting it, without anyone approving it.
Think about what that means. The researcher never asked to join pulsedemo. He never clicked anything. The new account had automatically been associated with that organisation. That is a design decision, and it is a dangerous one when the organisation contains real people.
The question changed from "I found an open signup" to "what does every newly created account inherit?" That second question is far more valuable, because it applies to every account anyone ever creates.
Step 4: Map the organisation boundary
With an organisation ID known, the researcher tested organisation-related endpoints to establish the exact authorisation boundary rather than to cause damage:
/v1/organizations
/v1/organizations/{id}/membership
/v1/organizations/{id}/metrics
Line by line:
/v1/organizationslists the organisations you can see. This is how he learned the namepulsedemo./v1/organizations/{id}/membershipis the member list of one organisation. The{id}is a placeholder: you put the organisation's identifier there, like filling in a blank on a form./v1/organizations/{id}/metricsis summary statistics for that organisation, numbers rather than people.
He also tested a set of adjacent resources:
/members
/events
/integrations
/billing
/repositories
/users
/me
/account
These are other dishes on the waiter's menu: the member list, activity events, connections to other services, payment information, code repositories, user records, your own profile (/me) and your account settings (/account). The point of testing them was not to break anything but to find out where the wall is.
The resulting picture was narrow. The new account could access the organisation and its membership information, while many other potentially sensitive endpoints returned 403. Remember that 403 means "I know who you are, but you are not allowed". That is a healthy answer. It shows the API is checking something.
The report specifically verified that there was no demonstrated cross-tenant access and no administrative escalation. Cross-tenant means reaching into a different customer's data, like using your hotel key card to open a room on another floor. Administrative escalation means giving yourself more power than you started with. Neither happened. So the correct claim was not platform-wide compromise but that a newly self-registered account can read the member roster of the shared organisation.
This precision is not modesty. It is what makes a report believable. A researcher who claims everything gets ignored; a researcher who says exactly what happened gets taken seriously.
Step 5: Request the membership endpoint
The key request was:
GET /v1/organizations/{organization_id}/membership
Line by line:
GETis the method, the verb. It means "give me", as opposed to POST which means "here is data, process it". A GET request should never change anything on the server./v1/organizations/{organization_id}/membershipis the path.{organization_id}is the placeholder where the real identifier goes.- The request carries the access token, which is how the server knows who is asking.
The endpoint returned the organisation's membership records. The response contained fields such as:
{
"email": "[redacted]",
"name": "username",
"organization_id": "...",
"time_created": "..."
}
Line by line:
- The curly braces and the
"key": "value"pairs are JSON, a simple text format for structured data. It is how APIs talk. emailis the member's email address. This is the sensitive part.nameis the member's name.organization_idsays which organisation the record belongs to.time_createdsays when the record was made.- The
...means "some value, not shown here".
The problem was not merely that the endpoint existed. It was the authorisation model behind it:
Newly created account
↓
Automatically becomes organization member
↓
Requests membership endpoint
↓
Receives entire organization roster
The endpoint treated "member of organisation" as equivalent to "authorised to read every member's personal information". Those are not the same thing: an ordinary member does not necessarily need every other member's private email address.
Here is an everyday comparison. Being an employee of a company lets you walk into the building. It does not entitle you to a printout of every colleague's home address. The building pass and the HR database are two different levels of trust. This endpoint confused them.
This is a data-level authorisation and data minimisation problem. Data minimisation is the principle that a system should hand over only the fields needed for the job. If a feature needs to show you names, it should not also hand over emails just because they happen to be in the same database row.
Step 6: Confirm the data is live
The response contained thousands of records. The final verified dataset included:
4,853 real email addresses
and corresponding names. The addresses were not synthetic test data: the report identified thousands of corporate addresses, including domains associated with real organisations. A corporate address is one on a company's own domain, which makes it easy to tell it belongs to a real workplace rather than a throwaway test account.
To avoid assuming that data is real simply because it looks real, the researcher validated the dataset against the membership count:
Before account joined:
4,872 members
After test account joined:
4,873 members
This is a small piece of arithmetic with a large meaning. The count went up by exactly one when his own test account joined. That proves the list is not a frozen sample or a demo fixture left over from testing. It is a live organisation, updating as people join. If the number had stayed at 4,872, the data could have been a stale copy of something, and the impact would be far smaller.
That is evidence rather than inference. Inference is "it looks real, so it probably is". Evidence is "I changed something and the number moved".
Step 7: Scope the impact
Rather than escalating indefinitely, the researcher mapped what the token could and could not reach:
| Resource | Result |
|---|---|
| Organization membership | Accessible |
| Organization metrics | Accessible, aggregate data |
| Organization listing | Accessible |
| Members | 403 |
| Events | 403 |
| Integrations | 403 |
| Billing | 403 |
| Repositories | 403 |
| Users | 403 |
/me |
403 |
/account |
403 |
The table is a map of the wall. Three things were reachable: the membership list, summary metrics (aggregate data, meaning counts and totals rather than individual people), and the organisation listing. Everything else said no. Notice that even /me, your own profile, returned 403.
The report also verified no demonstrated cross-tenant access, no administrative promotion, no token or role exposure and no write access. Write access means the ability to change or delete data; the researcher could only read. Showing where access stops is what makes the impact claim credible.
The full chain
ATTACKER
│
▼
Public application frontend
│
│ UI says:
│ SSO / waitlist
▼
Identity infrastructure
│
│ native signup still enabled
▼
Self-register account
│
▼
Verify attacker email
│
▼
OAuth authentication
│
│ no PKCE requirement
▼
Valid API token
│
▼
Auto-joined pulsedemo
│
▼
Membership API request
│
▼
Full organization roster
│
▼
4,853 real emails + names
Read it top to bottom as a story. The frontend claims SSO and waitlist. The identity infrastructure still allows native signup. The attacker registers, verifies an email he controls, logs in through OAuth, and gets a valid token. The token is automatically placed in pulsedemo. He asks for the membership list and receives the full roster: 4,853 real emails and names.
Two vulnerabilities combined here. The first was an access-control bypass: the intended SSO and waitlist restriction was not enforced consistently by the backend. The second was broken authorisation and data minimisation: any member of the shared organisation could retrieve the full membership roster, including other users' email addresses and names. The first made the attacker a member; the second turned that membership into a privacy disclosure.
Neither one alone is dramatic. An open signup is a nuisance. A member list visible to members sounds reasonable. Together they are a data breach.
Root cause
The investigation identified three contributing design problems.
- Registration policy mismatch. Native Cognito registration remained enabled even though the application's intended access model was SSO and waitlist based. The restriction existed in the frontend workflow, not in the backend policy. In plain words: the rule was written on the shop window, not in the stockroom.
- Weak OAuth configuration. The public OAuth client did not require PKCE during the authorisation-code exchange. The claim ticket could be swapped for the coat by anyone holding it.
- Excessive membership authorisation. The membership endpoint returned the complete organisation roster to an ordinary member instead of applying appropriate authorisation and data minimisation. It conflated "authenticated member of the organisation" with "authorised to read every member's personal information".
Why the existing defences did not stop it is only implied: the frontend hid the registration path but the identity provider still accepted native signup, and the API checked that the caller was an authenticated member but not that the caller was entitled to the fields returned. A valid token proves identity; it does not prove authorisation to read every object associated with that identity.
That last sentence is worth memorising. A passport proves you are you. It does not prove you may open the safe.
Impact
An attacker could create an account without an invitation or waitlist approval, complete the email verification workflow, authenticate through the application's OAuth flow, and be placed automatically into a shared organisation. From there the account could call the membership endpoint and receive the names and email addresses of thousands of other users. The verified dataset was 4,853 real email addresses with corresponding names, including corporate addresses on domains associated with real organisations.
"Unauthenticated" means the attacker started with nothing, no account at all. That is the worst starting position for a defender, because there is no account to disable and no user to warn.
The exposure was bounded. The report demonstrated no cross-tenant access, no administrative promotion, no token or role exposure and no write access, and the other resources tested returned 403. The impact is a privacy disclosure of the shared organisation's member roster, not a compromise of the wider platform.
An email that says "hi, I am your colleague from the team, please check this link" is far more convincing when the sender knows your name, your address and who else is on your team. A leaked roster is a gift to anyone planning social engineering.
Fix
The issue was confirmed and the endpoint was fixed in production. The report recommended defence in depth across several layers. Defence in depth means fixing more than one layer, so that a single mistake later does not reopen the hole.
- Authentication. Disable native self-registration if the product is supposed to be invitation-only, or enforce the intended allowlist and waitlist policy server-side. Server-side means the check happens in the backend, where the user cannot see or change it.
- OAuth. Require PKCE with S256 for public clients:
PKCE
S256
Line by line: PKCE is the mechanism that makes a client prove it is the same one that started the login. S256 is the specific method it uses to build that proof, a hashing method that turns the secret into a fixed-length fingerprint so the secret itself never travels. Together they mean: the token counter asks for the secret before handing over the coat.
- Tenant isolation. Do not automatically place new accounts into a shared organisation containing real users' personal information. Use an isolated demo or trial tenant instead. A tenant is one customer's separate slice of a shared system. Putting every newcomer into a slice full of real people is like seating every walk-in at a stranger's dinner table.
- API authorisation. The membership endpoint should distinguish between an authenticated user and an authorised organisation administrator. A normal member should not automatically receive every member's private information.
- Data minimisation. Return only the fields required for the intended functionality. If the screen shows names, send names.
Variants to test
If you ever want to try this kind of thinking yourself, on a target that explicitly allows it, these are the checks in order.
- Native registration on an SSO-only product. Find the identity provider from the frontend bundle and attempt a direct signup against it. A positive result is a valid user identifier and an email confirmation workflow from the provider while the UI offers only SSO and waitlist options.
- PKCE enforcement on public clients. Complete an authorisation-code exchange without a PKCE verifier. A positive result is a token issued without the verifier.
- Automatic tenant assignment. After creating the lowest-privilege account, call the organisation listing endpoint. A positive result is an organisation identifier returned to an account that was never invited to it.
- Roster exposure to ordinary members. Call the membership endpoint as a plain member. A positive result is other members' email addresses and names in the response.
- Live-data verification. Compare the membership count before and after your test account joins. A positive result is the count increasing by one, which proves the dataset is live rather than a fixture.
- Boundary mapping. Walk adjacent resources such as members, events, integrations, billing, repositories, users,
/meand/accountwith the same token. A positive result is a clear split between accessible and403resources that lets you state the exact limit of the exposure. - Identifier following. Take any
organization_id,project_id,team_id,repository_idoruser_idreturned by an endpoint and feed it to other endpoints. A positive result is an object belonging to another user or tenant being returned to your account. This is the classic way to find what the industry calls IDOR or BOLA: the server accepts an identifier and never checks that the identifier belongs to you. - Field-level excess. Where access to an endpoint is legitimate, inspect the returned fields. A positive result is private data such as email, phone, internal identifiers or role metadata that the calling role does not need for the feature to work.
When you find sensitive data, establish the number of affected records, inspect a minimal representative sample, confirm the records correspond to real entities, stop once impact is proven, and do not publish unnecessary personal data. The goal is enough evidence to prove impact, not collecting as much personal information as possible. This is both an ethical rule and a practical one: a report that dumps thousands of real addresses is itself a problem, and triagers know it.
Glossary
- 403: the HTTP status code meaning "I know who you are, but you are not allowed".
- 200: the HTTP status code meaning "here you go, the request succeeded".
- Access token: a string that proves your identity to an API on each request, like a festival wristband.
- API: a fixed way for one piece of software to ask another for data, like a waiter taking orders to the kitchen.
- Authentication: proving who you are.
- Authorisation code: a short-lived string handed back after login, swapped for an access token, like a cloakroom claim ticket.
- AWS Cognito: Amazon's identity provider service, which stores accounts and handles logins.
- Backend: the company's servers, where the real rules and data live.
- Bug bounty: a programme that pays researchers for reporting security weaknesses.
- Chain: two or more weaknesses joined together so the combination is worse than either alone.
- Client identifier: a public name for an application that is allowed to talk to an identity provider, like the name on a key holder's badge.
- Cookie: a small piece of data a website stores in your browser to recognise you later.
- Cross-tenant access: reaching into a different customer's data in a shared system.
- Data minimisation: the principle of returning only the fields actually needed for a feature.
- Defence in depth: fixing several layers so one future mistake does not reopen the hole.
- Endpoint: one specific address on an API, one dish on the menu.
- Frontend: everything your browser shows and runs, the shop window.
- GET: the request method meaning "give me", which should never change anything.
- IDOR / BOLA: a bug where the server accepts an object identifier and never checks that the object belongs to you.
- Identity provider: a service whose job is handling logins on behalf of other applications.
- JavaScript bundle: the file of code a website downloads to make the page interactive, readable by anyone.
- JSON: a simple text format of
"key": "value"pairs used by APIs. - OAuth: the system behind "log in with Google", which confirms identity without sharing your password.
- PII: personally identifiable information, data that points at a real person.
- PKCE: a mechanism that makes a public client prove it is the same program that started the login.
- Pool identifier: the name of a Cognito collection of user accounts, like a filing cabinet label.
- POST: the request method meaning "here is some data, please process or create something".
- Principal: an identity the system recognises and will serve.
- Request: one message sent to a server asking for something.
- Response: the server's reply, including a status code and usually some data.
- S256: the hashing method PKCE uses to build its proof without sending the secret itself.
- Self-registration: the ability to create your own account without approval.
- SSO: single sign-on, logging in once with a company account to reach many services.
- Tenant: one customer's separate slice of a shared system.
- Token: a string that proves identity, like a wristband; anyone holding it can act as you.
- Waitlist: a list of people waiting for human approval before access is granted.
- Write access: the ability to change or delete data, as opposed to only reading it.