Skip to content
Access control Write-up Intermediate

How I Found an Undocumented GraphQL Endpoint Leaking Home Addresses of French Company Owners (EUR 1,000 Bounty)

An undocumented GraphQL endpoint was accessible without authentication and exposed queries and mutations, including one that returned residential addresses of company beneficial owners for any French company. An attacker could enumerate company registration numbers to build a database of home addresses and potentially delete KYC documents or generate upload URLs without authentication.

anshh.bohara Follow

Published on medium.com

Bounty

anshh.bohara, 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. 5 min read.

Context

The target was a European embedded banking-as-a-service platform. It provides APIs that other companies integrate to offer banking features: accounts, cards, payments and KYC. Its bug bounty program runs on a European vulnerability disclosure platform.

The customer-facing dashboard is a React single-page application that talks to a backend GraphQL API. The platform documents a public, unauthenticated GraphQL endpoint that exposes a single query and no mutations. The undocumented endpoint described here exposed seven queries and seven mutations, one of which returned the residential addresses of company beneficial owners for any French company, without authentication.

Setup

No accounts, roles or special tooling are described. The work started from the dashboard's client-side configuration file and a GraphQL introspection query sent to a guessed endpoint. The only precondition was access to the dashboard's public assets.

Finding it

The dashboard serves an env.js file intended to hold client-side configuration. It contained considerably more than public configuration:

  • Internal GraphQL endpoints for federation, partner access and exposed-internal services
  • Internal Kubernetes service names that revealed the production cluster layout
  • Third-party API keys for payment processing, maps, identity management and messaging services

The internal URLs revealed two useful facts: production endpoints use a live- prefix, and there are several GraphQL surfaces beyond the documented one.

Given the naming pattern seen in env.js (live-partner, live-exposed-internal), the researcher guessed that an endpoint named live-unauthenticated existed.

Exploitation

Step 1: Confirm the guessed endpoint and enumerate its schema

An introspection query was sent to the guessed path:

HTTP
POST https://[REDACTED-API]/live-unauthenticated/graphql{"query": "{ __schema { queryType { fields { name } } mutationType { fields { name } } } }"}

The endpoint existed. Introspection returned seven queries and seven mutations, seven times the surface of the documented endpoint.

Step 2: Query UBO data by company registration number

Among the seven queries was one that looks up Ultimate Beneficial Owner data by company registration number and country. UBOs are the individuals who ultimately own or control a company; for a banking platform this is sensitive data used in KYC and AML processes.

Text
{  companyUboByCompanyRefAndHeadquarterCountry(    input: {      headquarterCountry: "FRA",      companyRef: "[SIREN_NUMBER]"    }  ) {    individualUltimateBeneficialOwners {      firstName      lastName      birthDate      birthCity      birthCountryCode      gender      residencyAddress {        addressLine1        city        postalCode        country      }    }  }}

companyRef is a French SIREN number, the company registration number, and headquarterCountry selects the country (FRA here). The researcher tested with the platform's own registration number. The response returned real data: the co-founders' full names, birth dates, birth cities and their residential home addresses, including street, city and postal code.

Step 3: Check for rate limiting

French SIREN numbers are sequential nine-digit numbers, and there are approximately five million active French companies. The researcher sent ten sequential requests and all returned 200, with no throttling. With no rate limiting on the endpoint, an attacker could enumerate the whole range and build a database of every French company's beneficial owners together with their home addresses.

Step 4: Probe the mutations

The seven mutations included the ability to delete KYC supporting documents without authentication and to generate S3 upload URLs without authentication.

The document deletion mutation was tested with a non-existent document ID. It did not return a Forbidden rejection. It processed the request and failed only because the document was not found, which implies that a valid document ID would delete a production KYC document without authentication.

A card PIN information query against production also did not return a forbidden error. It returned an error from the internal card-management system, meaning the request was forwarded to the internal service and processed there.

Root cause

The undocumented endpoint was reachable without authentication and carried operations that were never meant to be public. The documented unauthenticated endpoint has one query and zero mutations; the undocumented one has seven queries and seven mutations, so it is a superset rather than a mirror of the documented surface. The extra operations, including the UBO lookup, document deletion and S3 upload URL generation, were reachable without authentication. The report does not describe the server-side code, so the precise reason the controls were missing is not stated.

Impact

An unauthenticated attacker could retrieve, for any French company, the full names, birth dates, birth cities, gender and residential addresses of its beneficial owners. Because SIREN numbers are sequential and the endpoint was not rate limited, the data could be collected at scale across roughly five million active companies.

Beneficial owners of banking customers can include wealthy individuals, executives and political figures. Exposing their home addresses creates a stalking and physical safety risk beyond typical data exposure. Under GDPR, exposing personal data without a lawful basis is a violation. Under AMLD5, EU member states have pulled back public access to UBO registers following a 2022 EU Court of Justice ruling, and residential addresses are not in public registries.

The mutations widened the impact: unauthenticated deletion of KYC supporting documents is an integrity issue, and the seven mutations included generating S3 upload URLs without authentication. The card PIN query reaching the internal card-management system shows that this request was forwarded to an internal service rather than rejected.

Fix

The report does not describe the remediation that was applied. Based on the findings, the undocumented endpoint should require authentication, or the operations that were never meant to be public should be removed from it. Rate limiting should be applied to the UBO lookup, and the document deletion and S3 upload URL mutations should enforce authorisation before processing. The internal URLs and third-party keys in env.js should be reviewed so that only what the client needs is exposed.

Variants to test

  1. Read every client-side config file. Fetch env.js, config.js and Firebase init files from the dashboard and look for internal GraphQL URLs, Kubernetes service names and API keys. A positive result is an internal hostname or endpoint that is not part of the documented public API.
  2. Derive the naming pattern. When one internal URL such as live-partner/graphql is found, try combinations such as live-unauthenticated, live-admin, live-internal and sandbox-admin. A positive result is an endpoint that responds to introspection or to a simple query without authentication.
  3. Compare surface areas. Run introspection against the documented and undocumented endpoints and diff the query and mutation names. A positive result is extra operations on the undocumented endpoint, especially mutations.
  4. Test mutations on unauthenticated endpoints. Send a mutation with an invalid or non-existent identifier and inspect the error. A positive result is a processing error (such as "not found") rather than an authorisation rejection, which indicates the request reached the backend logic.
  5. Check for rate limiting on enumerable identifiers. Send a batch of sequential requests against an identifier-based lookup. A positive result is a run of 200 responses with no throttling, which makes bulk enumeration feasible.
  6. Probe internal service forwarding. Send a query that touches an internal service, such as card PIN information, and inspect the error. A positive result is an error originating from the internal system rather than a generic forbidden response.

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

What happened, in plain words

A security researcher found a hidden door into a banking platform's systems. The door was not locked. Through it, anyone could look up the home addresses of the people who own French companies, and could also try to delete documents and create upload links, all without logging in.

The researcher found the door by reading a small configuration file that the platform's website loads in every visitor's browser. That file listed internal addresses the platform uses behind the scenes. From the naming style of those addresses, the researcher guessed the name of one more address, tried it, and it worked.

This article walks through the same steps in the same order, explaining every term from scratch. You only need to know how to use a browser.

The target

The target was a European company that provides "embedded banking as a service". That phrase sounds complicated, so let us unpack it.

Many companies want to offer banking features to their customers, such as a bank account, a payment card, or a way to send money. Most of them do not want to become a bank, which requires licences and huge amounts of compliance work. So they rent the banking features from a specialist company. The specialist builds the accounts, cards, payments and identity checks, and the other company plugs them into its own app. That is what "banking as a service" means: banking sold as a building block.

  • API: an API (Application Programming Interface) is a way for one computer program to ask another program to do something. Think of a restaurant menu: you do not walk into the kitchen, you pick an item from the menu and the kitchen prepares it. An API is the menu, and the request you send is your order.
  • KYC: "Know Your Customer". Banks are legally required to check who their customers are before doing business with them, for example by checking identity documents. KYC is that checking process.

The company ran a bug bounty programme. A bug bounty programme is an offer from a company: if you find a security problem in our systems and report it responsibly, we will pay you a reward (the bounty). Researchers do this instead of exploiting the problem or selling it. This programme was hosted on a European vulnerability disclosure platform, a website that manages such reports between researchers and companies.

The customer-facing part of the product was a dashboard: the web page where a customer logs in to manage their account. Technically it was a React single-page application. React is a popular tool for building web interfaces, and "single-page application" means the browser loads one page and then updates it as you click around, instead of loading a fresh page from the server each time. The dashboard talked to a backend GraphQL API.

  • GraphQL: a way for a web page to ask a server for exactly the data it wants. With a traditional API you might call a fixed address and get back a fixed bundle of data. With GraphQL you send a description of the fields you want, and the server returns just those fields. The description you send is called a query when it only reads data, and a mutation when it changes something (create, update, delete).
  • Endpoint: a specific address on a server that accepts a particular kind of request. If the API is a menu, an endpoint is one dish on it, at its own URL.
  • Unauthenticated: without logging in, without proving who you are. An unauthenticated endpoint accepts requests from anyone, including strangers.

The platform publicly documented one GraphQL endpoint that anyone could use without logging in. That documented endpoint offered a single query and no mutations: you could read one kind of data and change nothing. The endpoint the researcher found was not documented, and it offered seven queries and seven mutations. One of those queries returned the home addresses of the people who own French companies, with no login required.

Setup

The researcher did not need any account, any special role, or any unusual software. The starting point was a file that the dashboard's website loads into every visitor's browser, plus a GraphQL request sent to an address the researcher guessed. The only precondition was being able to reach the dashboard's public files, which anyone with a browser can do.

Finding it

The configuration file

When you open a website, your browser downloads not just the visible page but also files the page needs to work: images, styles, scripts, and sometimes configuration files. A configuration file holds settings, such as which server address the page should talk to. Because the browser downloads it, anyone can read it. It is public, even if it does not look public.

The dashboard served a file called env.js, meant to hold configuration for the browser side of the application. It contained much more than public settings:

  • Internal GraphQL endpoints for federation, partner access and exposed-internal services
  • Internal Kubernetes service names that revealed the production cluster layout
  • Third-party API keys for payment processing, maps, identity management and messaging services

A few of those terms need explaining:

  • Internal endpoint: an address meant to be used only inside the company's own network, not by the public. Like a staff-only corridor in a shop.
  • Kubernetes: software that runs and organises many small programs (containers) across a group of servers. It gives each program a name so other programs can find it. Those names can reveal how the company's servers are arranged, which is called the cluster layout.
  • Production: the live system that real customers use, as opposed to a test system.
  • API key: a long secret string that identifies a program to another service, a bit like a password for software. If someone else gets it, they can often use the service as if they were the company.

From the internal addresses in that file, two useful facts emerged. First, production addresses use a live- prefix, meaning their names start with live-. Second, there are several GraphQL endpoints beyond the one that is documented publicly.

Guessing the hidden address

Seeing names such as live-partner and live-exposed-internal in env.js, the researcher noticed a pattern: live- followed by a word describing who the endpoint is for. So the researcher guessed that an endpoint named live-unauthenticated might exist. The logic: if there is a partner endpoint and an exposed-internal endpoint, perhaps there is one for unauthenticated access too.

Exploitation

Step 1: Confirm the guessed endpoint and list what it offers

To check whether the guessed address existed, the researcher sent a special GraphQL request called an introspection query. Introspection is GraphQL's built-in way of asking a server "what can you do?". The server replies with a list of all the queries and mutations it supports. It is like asking a restaurant to show you the full menu rather than ordering blind.

HTTP
POST https://[REDACTED-API]/live-unauthenticated/graphql{"query": "{ __schema { queryType { fields { name } } mutationType { fields { name } } } }"}

Line by line:

  • POST is the type of request. A POST request sends data to the server, as opposed to a GET request which just asks for a page. Here the data is the GraphQL question.
  • https://[REDACTED-API]/live-unauthenticated/graphql is the address being contacted. The host part is redacted in this write-up, and the path is the guessed endpoint name.
  • {"query": "..."} is the body of the request, written in JSON, a text format for structured data. It has one field, query, whose value is the GraphQL question.
  • __schema asks for a description of the server's schema, meaning its full set of available operations.
  • queryType { fields { name } } asks for the names of all read operations (queries).
  • mutationType { fields { name } } asks for the names of all change operations (mutations).

The endpoint existed. The introspection answer listed seven queries and seven mutations, seven times the surface of the documented endpoint. "Surface" here means the number of operations an attacker can reach.

Step 2: Look up company owners by registration number

Among the seven queries was one that looks up UBO data using a company registration number and a country.

  • UBO: Ultimate Beneficial Owner. The person or people who ultimately own or control a company, even if the company is held through other companies. Banks must identify them as part of KYC and AML (Anti-Money Laundering) checks, which are rules to stop criminals from hiding money through companies.

The researcher sent this query:

Text
{  companyUboByCompanyRefAndHeadquarterCountry(    input: {      headquarterCountry: "FRA",      companyRef: "[SIREN_NUMBER]"    }  ) {    individualUltimateBeneficialOwners {      firstName      lastName      birthDate      birthCity      birthCountryCode      gender      residencyAddress {        addressLine1        city        postalCode        country      }    }  }}

Line by line:

  • companyUboByCompanyRefAndHeadquarterCountry is the name of the query being called. It takes an input object with two values.
  • headquarterCountry: "FRA" says the company is headquartered in France. FRA is the three-letter country code for France.
  • companyRef: "[SIREN_NUMBER]" is the company's registration number. A SIREN number is the official nine-digit identifier that France gives to every registered company. The actual number is redacted here.
  • individualUltimateBeneficialOwners asks for the list of beneficial owners.
  • firstName, lastName, birthDate, birthCity, birthCountryCode, gender ask for personal details about each owner.
  • residencyAddress asks for the address where the person lives, broken into addressLine1 (street), city, postalCode and country.

The researcher tested with the platform's own registration number. The server returned real data: the co-founders' full names, birth dates, birth cities, and their residential home addresses, including street, city and postal code. No login was involved.

Step 3: Check whether the endpoint limits how often you can ask

A rate limit is a cap on how many requests a server accepts in a period of time. It is like a ticket machine that only gives out one ticket per minute: it stops someone from buying up every ticket. Without a rate limit, an attacker can ask the same question millions of times.

French SIREN numbers are sequential nine-digit numbers, meaning they are handed out in order and can be guessed one after another. There are approximately five million active French companies. The researcher sent ten requests in a row and all returned HTTP 200.

  • HTTP status code: a three-digit number a server sends back with every response. 200 means "OK, here is your answer". 403 would mean "forbidden, you are not allowed".

All ten returned 200, with no throttling. Throttling is the server deliberately slowing you down. With no rate limit, an attacker could walk through the whole range of numbers and build a database of every French company's beneficial owners together with their home addresses.

Step 4: Try the mutations

The seven mutations included the ability to delete KYC supporting documents without authentication, and to generate S3 upload URLs without authentication.

  • S3: Amazon's cloud storage service. Companies store files there, such as identity documents.
  • Upload URL: a special web address that, when used, lets someone put a file into that storage. Generating one without a login means handing out a way to place files in the company's storage.

The researcher tested the document deletion mutation with a document ID that does not exist. The server did not answer "Forbidden". It processed the request and failed only because the document was not found. That distinction matters: a "forbidden" answer means the server refused before doing anything, while a "not found" answer means the server went ahead and looked. With a valid document ID, the same request would delete a real production KYC document without authentication.

A card PIN information query against production also did not return a forbidden error. It returned an error from the internal card-management system. That means the request was passed on to the internal service and processed there, rather than being stopped at the outer edge of the platform.

Root cause

The undocumented endpoint could be reached without authentication, and it carried operations that were never meant to be public. The documented unauthenticated endpoint has one query and zero mutations; the undocumented one has seven queries and seven mutations. So it is not a copy of the documented endpoint, it is a superset: it contains everything the documented one has and more.

The extra operations, including the UBO lookup, document deletion and S3 upload URL generation, were reachable without authentication. Access control is the part of a system that decides who is allowed to do what, like a door lock that checks your key. The report does not describe the server-side code, so the precise reason those controls were missing is not stated.

Impact

An attacker with no login could retrieve, for any French company, the full names, birth dates, birth cities, gender and residential addresses of its beneficial owners. Because SIREN numbers are sequential and the endpoint had no rate limit, the data could be collected at scale across roughly five million active companies.

Beneficial owners of banking customers can include wealthy individuals, executives and political figures. Exposing their home addresses creates a stalking and physical safety risk that goes beyond typical data exposure. Two legal points matter here:

  • GDPR: the European Union's General Data Protection Regulation, which sets rules for handling personal data. Exposing personal data without a lawful basis is a violation.
  • AMLD5: the EU's fifth Anti-Money Laundering Directive. Following a 2022 ruling by the EU Court of Justice, EU member states pulled back public access to UBO registers, and residential addresses are not in public registries.

The mutations widened the impact. Unauthenticated deletion of KYC supporting documents is an integrity issue: integrity means data has not been changed or destroyed by someone who should not have that power. The seven mutations included generating S3 upload URLs without authentication. The card PIN query reaching the internal card-management system shows that this request was forwarded to an internal service rather than rejected.

Fix

The report does not describe the remediation that was applied. Based on the findings, the undocumented endpoint should require authentication, or the operations that were never meant to be public should be removed from it. Rate limiting should be applied to the UBO lookup, and the document deletion and S3 upload URL mutations should enforce authorisation before processing. The internal URLs and third-party keys in env.js should be reviewed so that only what the client needs is exposed.

Variants to test

These are the general techniques the researcher recommends, written so you can try them yourself on systems you are allowed to test.

  1. Read every client-side config file. Fetch env.js, config.js and Firebase init files from the dashboard and look for internal GraphQL URLs, Kubernetes service names and API keys. A positive result is an internal hostname or endpoint that is not part of the documented public API.
  2. Derive the naming pattern. When you find one internal URL such as live-partner/graphql, try combinations such as live-unauthenticated, live-admin, live-internal and sandbox-admin. A positive result is an endpoint that responds to introspection or to a simple query without authentication.
  3. Compare surface areas. Run introspection against the documented and undocumented endpoints and compare the query and mutation names. A positive result is extra operations on the undocumented endpoint, especially mutations.
  4. Test mutations on unauthenticated endpoints. Send a mutation with an invalid or non-existent identifier and inspect the error. A positive result is a processing error (such as "not found") rather than an authorisation rejection, which indicates the request reached the backend logic.
  5. Check for rate limiting on enumerable identifiers. Send a batch of sequential requests against an identifier-based lookup. A positive result is a run of 200 responses with no throttling, which makes bulk enumeration feasible.
  6. Probe internal service forwarding. Send a query that touches an internal service, such as card PIN information, and inspect the error. A positive result is an error originating from the internal system rather than a generic forbidden response.

Glossary

  • API: a way for one program to ask another program to do something, like a menu you order from.
  • API key: a secret string that identifies a program to a service, similar to a password for software.
  • Access control: the part of a system that decides who may do what.
  • AML: Anti-Money Laundering, rules to stop criminals hiding money through companies.
  • Bug bounty programme: a company's offer to pay researchers who report security problems responsibly.
  • Cluster layout: how a company's servers and services are arranged and named.
  • Configuration file: a file holding settings, often downloaded by the browser and therefore public.
  • Dashboard: the web page where a customer logs in to manage their account.
  • GDPR: the EU's General Data Protection Regulation for handling personal data.
  • GraphQL: a way for a web page to ask a server for exactly the data it wants, using queries and mutations.
  • HTTP status code: a three-digit number sent with every web response, such as 200 for OK or 403 for forbidden.
  • Integrity: the property that data has not been changed or destroyed by someone who should not have that power.
  • Internal endpoint: an address meant for use only inside a company's network, not by the public.
  • Introspection query: a GraphQL request that asks a server to list all the operations it supports.
  • JSON: a text format for structured data, used in request bodies.
  • Kubernetes: software that runs and organises many small programs across servers and gives them names.
  • KYC: Know Your Customer, the checks banks must do to verify who their customers are.
  • Mutation: a GraphQL operation that changes data, such as creating, updating or deleting.
  • Production: the live system that real customers use.
  • Query: a GraphQL operation that only reads data.
  • Rate limit: a cap on how many requests a server accepts in a period of time.
  • React single-page application: a web interface built with the React tool that loads one page and updates it as you click, rather than loading new pages.
  • S3: Amazon's cloud storage service for files.
  • SIREN number: the official nine-digit identifier France gives to every registered company.
  • Superset: a set that contains everything another set contains, plus more.
  • Throttling: a server deliberately slowing down or limiting requests.
  • UBO: Ultimate Beneficial Owner, the person or people who ultimately own or control a company.
  • Unauthenticated: without logging in or proving who you are.
  • Upload URL: a special web address that lets someone put a file into cloud storage.
  • Vulnerability disclosure platform: a website that manages security reports between researchers and companies.

More by anshh.bohara

View all

3 more disclosed reports, best first.

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.