--- title: "One customer seeing another customer's data | Xtarwall" url: https://xtarwall.com/solutions/tenant-data-leaks/ description: "A signed-in customer opens a record that belongs to someone else. What the leak is, why it costs trust, how Xtarwall proves it on a safe copy, and what the fix looks like." last_updated: 2026-11-30 --- Leak ยท Database # One customer in another's data. Someone opens an order, an invoice or a file that was never theirs. You hear about it from them. [Run XWatch free](https://xtarwall.com/watch/) [See plans](https://xtarwall.com/pricing/) The lilac diamond is Xtarwall, striking the database of a short-lived copy. Your real app, on the left, is never the target. The hexagon is the fix it brings back. Specification ## The class, as Xtarwall tests it. Pattern, signal, proof and fix, then what XShield adds on a live app. This class sits in the proven tier of the [benchmark](https://xtarwall.com/benchmark/). 1. Class `CWE-639/IDOR` **Area** Access control and sign-in **Impact** Money and data **Tier** Detected, with a fix, proven by running the attack **Pattern** An object is fetched by id with no owner scope. Change the id and the server returns another tenant's record. **Signal** A 200 whose `owner` field is not the caller. **Proof** One request: user A asks for user B's order by id. The proof passes on a 200 with `owner` equal to B. **Fix** Require that the order's owner is the caller before returning it. XGuard re-runs the proof on every push. **Live, XShield** A honey record, a fake user or order that no real query returns, reports any read of it to your console and seals the touch in your signed ledger. For the forged-token variant, the guard refuses a bearer token that declares `alg: none`. ``` class CWE-639/IDOR step 1 GET /api/orders/2002 as alice pass status == 200 pass owner == "bob" impact read another customer's $900 order ``` The benchmark recipe for this class, as it runs against our planted test app: fixed requests, then success clauses evaluated on the response to the last step. A recipe exists for a vulnerable case and for nothing else; the safe control has none. ## It looks like normal use. Nothing crashes and nothing turns red, which is why it goes unnoticed. - ### What the leak is When many customers share one app, each customer is called a tenant, and each tenant's data must stay invisible to all the others. The leak: the app checks that someone is signed in, but not that the record they asked for is theirs. - ### Why it costs you This one costs trust. A customer who has seen someone else's invoice will doubt everything else you say about safety. Under many privacy laws it can also be a data breach that you have to report. - ### How it gets abused Records are usually fetched by a number or a name. Someone signed in to their own account asks for a record that belongs to someone else, and the app hands it over, because it never compared the owner with the person asking. How Xtarwall proves it ## On a safe copy, never on your live app. A safe copy is a stand-in for your app, started for the test and thrown away after it. 1. ### Detect Xtarwall maps which requests return customer data and what each one checks. 2. ### Prove On a short-lived safe copy of your app, it plays two test customers. One creates a marked record; the other tries to read it. If the second customer sees it, the leak is real. No real customer data is involved. 3. ### Protect You get the fix as a specific change to your code, and a proof you can run again to watch the same attempt fail. No proof, no alert. XWatch is free: it finds weak spots and writes the fix. Hosted plans add proof by real attack. [How it works](https://xtarwall.com/how-it-works/) ## What the fix looks like. In principle. Xtarwall writes the exact change for your code. - ### Check ownership every time On every read and every write, the server confirms that the record belongs to the customer asking. - ### Let the database enforce it Set the rule in the database itself, so a query returns a tenant's own rows and nothing else, even when the code forgets to ask. - ### Keep a test for the wall Keep a test in which one customer tries to reach another's data, and run it on every change. ## Measured, not promised. Measured on our test suite, 30 Nov 2026. [How we measure](https://xtarwall.com/benchmark/) **140** attack types detected **130** with a ready fix **111** proven by running the real attack **0** false alarms on 104 safe test cases ## The other leaks Xtarwall goes looking for. - ### [Free credits, drained](https://xtarwall.com/solutions/free-credit-abuse/) The welcome credits you set aside for new customers get collected again and again by one person. - ### [Limits that live in the browser](https://xtarwall.com/solutions/quota-bypass/) The screen says five a day. The server never counts. Skip the screen and you skip the limit. - ### [An AI endpoint anyone can call](https://xtarwall.com/solutions/ai-endpoint-abuse/) Your AI feature answers whoever asks. Every answer lands on your bill. ## Find it on a copy, before someone finds it on the real thing. Start with XWatch. It is free, and it runs on your own AI key. [Run XWatch free](https://xtarwall.com/watch/) [See plans](https://xtarwall.com/pricing/)