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.
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.
-
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
ownerfield is not the caller. - Proof
- One request: user A asks for user B's order by id. The proof passes on a 200 with
ownerequal 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
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.
Detect
Xtarwall maps which requests return customer data and what each one checks.
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.
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
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, 28 Nov 2026. How we measure
- 83
- attack types detected
- 73
- with a ready fix
- 53
- proven by running the real attack
- 0
- false alarms on 17 safe test cases
The other leaks Xtarwall goes looking for.
Free credits, drained
The welcome credits you set aside for new customers get collected again and again by one person.
Limits that live in the browser
The screen says five a day. The server never counts. Skip the screen and you skip the limit.
An AI endpoint anyone can call
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.