How a Synced Data Copy Leaked 544,000 Users’ PII
A synced copy of user profiles in a marketplace app lacked the field-level and row-level access rules of the original app, so any logged-in user could query the data API and retrieve email addresses and phone numbers for all 544,456 users, including those who had set their profile to private.
medium.com
Published on medium.com
Bug Bounty
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 major enterprise low-code application platform. Applications on the platform are single-page apps whose browser client talks to the server through a generic runtime data API: one endpoint the app uses to query entities by a query expression. Conceptually, the report describes it like this:
POST /<runtime-data-api>/
{ “action”: “retrieve”, “query”: “all ProfileEntity records”, … }
The endpoint returns whatever the server-side security model allows, not whatever the UI happens to render. Hiding a field on a screen means nothing; only the entity's authorization rules matter.
Security on the platform is declarative and lives on each data entity. A rule is bound to a role (for example "any authenticated user") and specifies three things:
- Which operations the role can perform: read, write, create, delete.
- Field-level access: precisely which attributes the role can read. A field such as email can be readable, hidden, or read-write, per role.
- An optional row-level filter: a constraint limiting which records the rule applies to, for example
owner == currentUserso a user only sees their own row.
Correct configuration needs both halves: do not expose the email field to strangers (field-level), and do not let a user read other people's rows (row-level). The bug described here fails both, on exactly one entity.
The platform also has a canonical profile app, the system of record where users edit their own details, and a second application, referred to as the Marketplace app, which held a synced, denormalized copy of every user's profile.
Setup
The researcher signed up for a free account: self-service, no verification friction, no paid tier. No other tooling is described. The work was done from the browser console of the loaded Marketplace app, querying its data API directly.
Finding it
The starting point is a shift in method: stop clicking around the UI and query entities directly from the browser console. The Marketplace app exposed a profile entity, so the researcher asked it, roughly, how many records there are and what could be read.
Exploitation
Step 1: count and sample the exposed entity
From the console, using the platform's client-side data API:
// pseudocode of the platform’s client-side data API, run from the console
platform.data.query({
entity: “ProfileEntity”,
select: [“displayName”, “email”, “phone”],
count: true,
limit: 5
}).then(({ total, rows }) => {
console.log(“Total profiles accessible:”, total);
rows.forEach(r => console.log(r.displayName, r.email, r.phone));
});
The query selects displayName, email and phone from ProfileEntity, asks for a total count and limits the returned rows to five. The console printed:
Total profiles accessible: 544456
[redacted name] | [redacted email] | [redacted phone]
[redacted name] | [redacted email] | [redacted phone]
…
Half a million real email addresses were returned to a brand-new free account, with phone numbers attached where people had set them. Filtering to records with a phone number set returned 18,626 personal phone numbers. Because the API supports native offset pagination, the whole table was walkable in bulk rather than one record at a time.
Step 2: establish that the data is meant to be private
A big count on its own is not a finding; the data might be intended to be public. The researcher therefore looked at where these profiles come from: the canonical profile app, the system of record. The same test user was queried through both apps, and the results for email and phone were compared:
- Canonical app, profile page (UI): email not shown, phone not shown.
- Canonical app, data API, source profile entity: email field does not even exist, phone null.
- Canonical app, data API, source user entity: email null (blocked by access rules), phone null.
- Marketplace app, data API, the synced entity: email returned in full, phone returned in full.
Three independent controls protect email in the origin app: the profile entity carries no email field at all, the user entity blocks it at the field level, and the UI never renders it. The platform clearly intends this data to be private.
Step 3: the private-profile test
A second account controlled by the researcher was set to private in settings, then queried from the first account through the Marketplace app:
- Canonical app, UI: "Profile not Found" (correctly hidden).
- Marketplace app, data API: returned in full, despite the private setting.
The data is protected everywhere it should be, except in the Marketplace copy, which also ignores the user's own "make me private" choice. Not a directory, but a misconfiguration.
Step 4: the bonus finding, erased records
The exposed set also contained anonymized "forgotten user" tombstone records: accounts erased for privacy reasons in the origin app. Their presence in the synced copy meant the erasure workflow was never wired into this entity, so data deleted at the source lived on in the copy. The same replication gap, a second time.
Root cause
The Marketplace's profile entity was a synced, denormalized copy of every user's profile from the canonical app. Three problems stacked during that sync:
- Sensitive fields readable by the wrong role.
email,phoneand social handles were marked readable for the generic "any authenticated user" role instead of being restricted to the record's owner. - No row-level (ownership) filter. Even with over-broad field access, an
owner == currentUserconstraint would have limited each user to their own single row. There was none, so the rule authorized retrieval across the entire table. That is the difference between "a user can see the email field" and "a user can see everyone's email field." - Replication without the security model. When the profiles were synced into the Marketplace app as a new, flattened entity, the copy inherited the data but not the field-level and row-level restrictions that guarded it. The same records now lived under two contradictory security policies, and an attacker just queries the weaker one.
The origin app's defences (no email field on the profile entity, field-level blocking on the user entity, and a UI that never renders email) did not apply to the copy, which is why they did not stop the leak.
Impact
- Bulk PII harvest of the entire user base: 544,456 emails and 18,626 phone numbers, reachable with a free account and paginable in bulk.
- High-credibility spear-phishing at scale. Many addresses were corporate, mapping individuals to their employers across large industrial, energy, financial, academic and government organizations. With the exposed names and job titles, that is a ready-made targeted phishing kit.
- Privacy-control bypass: users who deliberately chose "private" were exposed anyway.
- Regulatory exposure: email and phone disclosure without consent for a large EU population raises GDPR concerns, compounded by the erased-record leak.
The access was read-only, but a textbook confidentiality breach. The score was CVSS:3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (7.7, High): network-reachable, low complexity, only a free account required, no user interaction, full confidentiality impact on the platform's contact data.
Fix
The vendor patched it within roughly two days of the report. The remediation the report recommends is small and precise:
- Restrict the sensitive fields to the owner on the synced entity, matching the origin app.
- Add a row-level ownership filter (
owner == currentUser) so no rule authorizes cross-user reads of protected fields. - Reconcile authorization across every synced copy: treat the access model as part of the data contract whenever sensitive records are replicated into another app.
- Wire the entity into the data-erasure workflow so "forgotten" records are purged in the copy, not just the source.
- Add a regression test asserting a non-owner gets null for email and phone, so a future sync cannot silently reopen the hole.
Variants to test
- Query entities directly from the console instead of through the UI. A positive result is a data API returning fields or rows that no screen renders for your role.
- Compare the same record across the origin app and any synced copy (marketplace, directory, analytics mirror, search index, export). A positive result is the record protected in one place and fully returned in the other.
- Test a private or hidden record from a second account you control. A positive result is the origin app returning "not found" while the copy returns the record in full.
- Look for tombstone or anonymized records of deleted accounts in a copy. A positive result is erased records still present and readable in the replicated entity.
- Check whether the data API supports offset pagination on an over-permissive entity. A positive result is the ability to walk the whole table in bulk rather than one record at a time.
- Check field-level rules for sensitive attributes (email, phone, social handles) on every entity, not just the obvious one. A positive result is a field marked readable for a generic authenticated role rather than the owner.
- Check for a missing row-level filter on any entity with per-user data. A positive result is a rule that authorizes retrieval across the entire table rather than a single row.
What happened, in plain words
A large company runs a platform that lets other companies build their own apps without writing much code. This kind of product is called a low-code platform. One of the apps on that platform held a copy of every user's profile: name, email address and phone number. A security researcher signed up for a free account, opened the browser's built-in developer console, and asked that app's data service a single question. The answer showed 544,456 profiles were reachable, and a filtered query returned 18,626 phone numbers, including people who had deliberately set their profile to private.
The important part is not that the data was stolen with clever tricks. It is that the data was safe in the app that owned it, and unsafe in a second app that held a copy of it. When the copy was made, the rules that decided who could see what were not copied along with the data. The researcher found this by comparing the two apps, proved it with a private profile, and reported it. The company fixed it in about two days.
This article walks through the whole story from zero. You only need to know how to use a browser. Every technical word is explained the first time it appears, and there is a glossary at the end.
The background you need first
What a low-code platform is
Normally, building a web app means writing code for the screens, the buttons, the database and the rules about who can see what. A low-code platform gives you building blocks instead: you describe your data, drag some screens together, and the platform generates the working app for you. Many large organisations use such platforms for internal tools and customer-facing apps.
What a single-page app is
A single-page app is a website that loads once and then updates itself in place, without reloading the whole page every time you click. Think of a paper form versus a live spreadsheet: the form has to be reprinted for every change, the spreadsheet just recalculates. Because the page does not reload, the browser has to fetch new data in the background, and it does so by talking to the server through something called an API.
What an API is
An API (application programming interface) is the counter where one piece of software asks another for something. A useful comparison is a restaurant: you do not walk into the kitchen, you tell the waiter what you want and the kitchen sends it back. The menu is the list of things you are allowed to ask for. In a web app, the browser is the customer, the server is the kitchen, and the API is the waiter plus the menu.
What an endpoint is
An endpoint is one specific address on that counter, one particular thing you can ask for. If the API is the restaurant, an endpoint is one dish on the menu with its own name.
What an entity is
An entity is a category of data, roughly a table in a spreadsheet. A ProfileEntity is the table of user profiles. Each row in the table is one record, one person. Each column is a field, such as email or phone.
What the runtime data API is
On this platform, every app's browser code talks to the server through one shared, generic endpoint, called the runtime data API. Instead of a separate address for every screen, there is one address that accepts a query: a description of which entity you want, which fields, and how many rows. The report describes it conceptually like this:
POST /<runtime-data-api>/
{ “action”: “retrieve”, “query”: “all ProfileEntity records”, … }
Line by line:
POST /<runtime-data-api>/is the address being called.POSTis the type of request used when you are sending something to the server, here a query. The part in angle brackets is a placeholder for the real address, which the report does not give.{ “action”: “retrieve”, “query”: “all ProfileEntity records”, … }is the body of the request, written in JSON, a common text format for structured data. It says: the action is to retrieve, and the query is for all records in the profile entity. The…means other details follow that the report does not show.
This is a sketch of the idea, not a real request captured from the platform.
The key idea: the server decides, not the screen
Here is the single most important concept in the whole story. When the browser asks the data API for something, the server returns whatever its security rules allow. It does not return only what the screen happens to display. If a screen hides the email column, that hiding is cosmetic. Think of a shop with a back room: painting over the door does not lock it. The only thing that matters is the lock, meaning the rules stored on the server.
So the researcher's method was to stop clicking around the interface and start asking the data API directly. The browser console is a panel built into every browser where you can type commands and see the answers. It is the customer talking to the waiter directly instead of reading the printed menu.
What entity access rules are
On this platform, security is declarative: you state the rules, and the platform enforces them. The rules live on each entity. A rule is tied to a role, which is a group of users such as "any authenticated user", meaning anyone who is logged in. Each rule says three things:
- Which operations the role can perform: read, write, create or delete.
- Field-level access: exactly which columns the role can read. A field like email can be readable, hidden, or read-write, separately for each role.
- An optional row-level filter: a condition that limits which rows the rule applies to. For example
owner == currentUsermeans a user only sees the row that belongs to them.
Getting this right needs both halves. Do not let strangers read the email column (field-level), and do not let a user read other people's rows (row-level). The bug in this story fails both, on exactly one entity.
The two apps
The platform has a canonical profile app. Canonical means the official source, the system of record: this is where users edit their own details, and it is the version everyone treats as correct. Separately there is a second app, called the Marketplace app in the report, which held a synced copy of every user's profile. Synced means the copy is kept up to date automatically from the original. Denormalized means the copy is flattened: data that was spread across several tables in the original is merged into one simpler table in the copy.
Setting up
The researcher signed up for a free account. The report describes it as self-service, with no verification friction and no paid tier. In plain terms: anyone could register in minutes, and nothing about the account was special. No other tools are described. All the work was done from the browser console of the loaded Marketplace app, querying its data API directly.
Why start this way? Because the console lets you ask the server questions the interface never offers you. If the server's rules are wrong, the answer will come back.
Finding it
The starting point is a change of method: stop clicking around the interface and query entities directly from the browser console. The Marketplace app exposed a profile entity, so the researcher asked it, roughly, how many records there are and what could be read.
Exploitation
Step 1: count and sample the exposed entity
From the console, using the platform's client-side data API:
// pseudocode of the platform’s client-side data API, run from the console
platform.data.query({
entity: “ProfileEntity”,
select: [“displayName”, “email”, “phone”],
count: true,
limit: 5
}).then(({ total, rows }) => {
console.log(“Total profiles accessible:”, total);
rows.forEach(r => console.log(r.displayName, r.email, r.phone));
});
Line by line, in plain words:
- The first line is a comment. It says this is pseudocode, a simplified sketch of the platform's data API rather than an exact copy of real code.
platform.data.query({starts a request to the platform's data service. The curly bracket opens a list of settings for the request.entity: “ProfileEntity”,says which table to ask: the profile entity.select: [“displayName”, “email”, “phone”],says which columns to return: the display name, the email address and the phone number.count: true,asks the server to also report how many rows match in total, not just the few returned.limit: 5asks for only five rows, so the answer is small and easy to read.}).then(({ total, rows }) => {says: when the answer arrives, take the total count and the rows out of it, and run the following lines.console.log(“Total profiles accessible:”, total);prints the total count in the console.rows.forEach(r => console.log(r.displayName, r.email, r.phone));goes through each of the five rows and prints its name, email and phone.});closes the request.
Why ask for a count and only five rows? Because it answers two questions at once cheaply: how big is the problem, and is the data real?
The console printed:
Total profiles accessible: 544456
[redacted name] | [redacted email] | [redacted phone]
[redacted name] | [redacted email] | [redacted phone]
…
Line by line:
Total profiles accessible: 544456is the count: 544,456 profiles were reachable.- Each following line is one sample row, with the name, email and phone separated by vertical bars. The actual values are personal data and have been removed here.
…means more rows followed.
Half a million real email addresses were returned to a brand-new free account, with phone numbers attached where people had set them. Filtering to records with a phone number set returned 18,626 personal phone numbers. Because the API supports native offset pagination, the whole table was walkable in bulk rather than one record at a time.
Pagination deserves a moment. When a result is too large to send at once, the server sends it in pages, like a book. Offset pagination means you can say "skip the first thousand and give me the next thousand", then "skip two thousand", and so on. It is a normal, useful feature. Here it meant the entire table was walkable page by page instead of one record at a time, which turns a leak into a bulk harvest.
Step 2: establish that the data is meant to be private
A big count on its own is not a finding. Maybe the data is meant to be public, like a company directory. The job is to prove the platform intends this data to be private and that what the researcher saw is a mistake. This is where the comparison comes in.
The researcher looked at where these profiles come from: the canonical profile app, the system of record. The same test user was queried through both apps, and the results for email and phone were compared:
- Canonical app, profile page (UI): email not shown, phone not shown.
- Canonical app, data API, source profile entity: email field does not even exist, phone null.
- Canonical app, data API, source user entity: email null (blocked by access rules), phone null.
- Marketplace app, data API, the synced entity: email returned in full, phone returned in full.
Line by line:
- The first line is what a normal user sees: the profile page in the original app shows neither email nor phone.
- The second line is what the data API of the original app returns for its profile entity: there is no email column at all, and phone is null, meaning empty.
- The third line is a second table in the original app, the user entity: email comes back null because the access rules block it, and phone is null too.
- The fourth line is the copy: the Marketplace app's synced entity returns both email and phone in full.
Three independent controls protect email in the origin app. The profile entity carries no email field at all. The user entity blocks it at the field level. The interface never renders it. Three separate locks, all working. The platform clearly intends this data to be private.
Why does this matter so much? Because it removes the excuse. Without the comparison, a company could say "that data was always public". With it, the same record is shown to be protected in one place and exposed in another, and that is a misconfiguration, not a design choice.
Step 3: the private-profile test
Then the strongest single test. A second account controlled by the researcher was set to private in settings, then queried from the first account through the Marketplace app:
- Canonical app, UI: "Profile not Found" (correctly hidden).
- Marketplace app, data API: returned in full, despite the private setting.
Line by line:
- In the original app, looking at the private profile shows "Profile not Found". The app is correctly pretending the profile does not exist.
- In the copy, the same profile comes back in full. The user's own choice to be private is ignored.
This settles it. The data is protected everywhere it should be, except in the Marketplace copy, which also ignores the user's own "make me private" choice. It is not a directory. It is a misconfiguration.
Step 4: the bonus finding, erased records
The exposed set also contained anonymized "forgotten user" tombstone records: accounts erased for privacy reasons in the origin app. A tombstone here means a leftover marker that a record once existed. Their presence in the synced copy meant the erasure workflow was never wired into this entity, so data deleted at the source lived on in the copy. The same replication gap, a second time.
In plain terms: when someone asks to be forgotten, the original app deletes their data. But the copy was never told to delete anything, so the deleted person's record stayed in the copy. The same mistake that dropped the access rules also dropped the deletion step.
Root cause
The Marketplace's profile entity was a synced, denormalized copy of every user's profile from the canonical app. Three problems stacked during that sync:
- Sensitive fields readable by the wrong role.
email,phoneand social handles were marked readable for the generic "any authenticated user" role instead of being restricted to the record's owner. - No row-level (ownership) filter. Even with over-broad field access, an
owner == currentUserconstraint would have limited each user to their own single row. There was none, so the rule authorized retrieval across the entire table. That is the difference between "a user can see the email field" and "a user can see everyone's email field." - Replication without the security model. When the profiles were synced into the Marketplace app as a new, flattened entity, the copy inherited the data but not the field-level and row-level restrictions that guarded it. The same records now lived under two contradictory security policies, and an attacker just queries the weaker one.
The origin app's defences (no email field on the profile entity, field-level blocking on the user entity, and an interface that never renders email) did not apply to the copy, which is why they did not stop the leak.
A comparison helps here. Imagine a bank vault and a photocopy of its contents left in an unlocked drawer. The vault is still excellent. The problem is that the copy did not come with a vault. In this story the copy is the drawer, and anyone with a free account could open it.
Impact
- Bulk PII harvest of the entire user base: 544,456 emails and 18,626 phone numbers, reachable with a free account and paginable in bulk. PII means personally identifiable information, data that points to a specific person.
- High-credibility spear-phishing at scale. Spear-phishing is a scam message written for one specific person, using real details about them so it looks genuine. Many addresses were corporate, mapping individuals to their employers across large industrial, energy, financial, academic and government organizations. With the exposed names and job titles, that is a ready-made targeted phishing kit.
- Privacy-control bypass: users who deliberately chose "private" were exposed anyway.
- Regulatory exposure: email and phone disclosure without consent for a large EU population raises GDPR concerns, compounded by the erased-record leak. GDPR is the European data protection law, which sets rules on handling personal data.
The access was read-only, but a textbook confidentiality breach. Read-only means the researcher could look but not change anything. Confidentiality is one of the three classic goals of security: keeping data secret from those who should not see it. The score was CVSS:3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (7.7, High). CVSS is a standard scoring system for the severity of a vulnerability. The letters are shorthand for the conditions:
AV:Nmeans the attack works over the network, from anywhere.AC:Lmeans low complexity: no special conditions needed.PR:Lmeans low privileges: only a free account was required.UI:Nmeans no user interaction: no victim had to click anything.S:Cmeans the impact crosses a security boundary, here from one app into another.C:Hmeans high confidentiality impact: the data was fully exposed.I:NandA:Nmean no impact on integrity (data was not changed) and no impact on availability (the service kept working).7.7, Highis the resulting score and rating.
Fix
The vendor patched it within roughly two days of the report. The remediation the report recommends is small and precise:
- Restrict the sensitive fields to the owner on the synced entity, matching the origin app.
- Add a row-level ownership filter (
owner == currentUser) so no rule authorizes cross-user reads of protected fields. - Reconcile authorization across every synced copy: treat the access model as part of the data contract whenever sensitive records are replicated into another app.
- Wire the entity into the data-erasure workflow so "forgotten" records are purged in the copy, not just the source.
- Add a regression test asserting a non-owner gets null for email and phone, so a future sync cannot silently reopen the hole.
A regression test is an automated check that runs again and again, so that a fix stays fixed. Here it would log in as someone who does not own a record and confirm that email and phone come back empty. If a future sync ever drops the rules again, the test fails loudly instead of the leak returning quietly.
Variants to test
These are the patterns to look for on other platforms, written as things to try and what a positive result looks like:
- Query entities directly from the console instead of through the interface. A positive result is a data API returning fields or rows that no screen renders for your role.
- Compare the same record across the origin app and any synced copy (marketplace, directory, analytics mirror, search index, export). A positive result is the record protected in one place and fully returned in the other.
- Test a private or hidden record from a second account you control. A positive result is the origin app returning "not found" while the copy returns the record in full.
- Look for tombstone or anonymized records of deleted accounts in a copy. A positive result is erased records still present and readable in the replicated entity.
- Check whether the data API supports offset pagination on an over-permissive entity. A positive result is the ability to walk the whole table in bulk rather than one record at a time.
- Check field-level rules for sensitive attributes (email, phone, social handles) on every entity, not just the obvious one. A positive result is a field marked readable for a generic authenticated role rather than the owner.
- Check for a missing row-level filter on any entity with per-user data. A positive result is a rule that authorizes retrieval across the entire table rather than a single row.
Glossary
- API: the counter where one piece of software asks another for something; the browser asks, the server answers.
- Authenticated user: someone who is logged in, with an account the platform recognises.
- Browser console: a panel built into every browser where you can type commands and see the answers.
- Canonical app: the official source of a record, the version everyone treats as correct.
- Confidentiality: keeping data secret from those who should not see it.
- CVSS: a standard scoring system for the severity of a vulnerability, from 0 to 10.
- Declarative security: security you state as rules, which the platform then enforces, rather than code you write by hand.
- Denormalized: flattened, with data that was spread across several tables merged into one simpler table.
- Endpoint: one specific address on an API that you can send a request to.
- Entity: a category of data, roughly a table in a spreadsheet.
- Field: one column of an entity, such as email or phone.
- Field-level access: a rule saying which columns a given role may read.
- GDPR: the European data protection law governing personal data.
- JSON: a common text format for structured data, using curly brackets and labels.
- Low-code platform: a product that lets people build apps from building blocks with little hand-written code.
- Null: empty, no value.
- Offset pagination: fetching a large result in pages by saying how many rows to skip and how many to return.
- PII: personally identifiable information, data that points to a specific person.
- Pseudocode: a simplified sketch of code, not an exact copy of real code.
- Read-only: able to look but not change anything.
- Record: one row in an entity, one person or item.
- Regression test: an automated check that runs repeatedly so a fixed bug stays fixed.
- Role: a group of users, such as "any authenticated user", that rules are attached to.
- Row-level filter: a condition limiting which rows a rule applies to, for example
owner == currentUser. - Runtime data API: the shared, generic endpoint an app's browser code uses to query its entities.
- Single-page app: a website that loads once and updates itself in place without full page reloads.
- Spear-phishing: a scam message written for one specific person using real details about them.
- Synced copy: a second copy of data kept up to date automatically from the original.
- System of record: the official, authoritative source of a piece of data.
- Tombstone: a leftover marker showing that a record once existed.
- UI: user interface, the screens and buttons a person sees and clicks.