Can One User See Another User's Data If They Change the ID in the URL?
Short answer: this is a real risk, and a signed-out scan cannot test it. You can check it yourself with two accounts you own.
You sign in, open your own order, and the address looks like /orders/abc123. What if another signed-in user changes abc123 to your ID? If they can see or change your order, your app is missing a check on that record.
OWASP calls this Broken Object Level Authorization, or API1:2023. It happens when an app uses an ID it was sent, but does not check that the signed-in user is allowed to use that record (OWASP API1:2023).
Check your live app for free
Paste your link. The free summary usually takes under a minute.
See an example report (for example.org) · a real free scan of a test site, so you can see what you get
A two-account self-check
Use two accounts you control (call them Alex and Blair). Do this on a test copy of your app if you can, not on real customer data.
- Sign up or log in as Alex. Create one private record, such as an order, a note, a document or a profile page that should belong only to Alex.
- Copy the ID of that record. It may be in the web address (for example
/orders/abc123or/notes?id=abc123). It may also be in a request the browser already made. In Chrome, open DevTools (F12), go to the Network tab, reload the page, and look for the ID in the request path, query string or body. - Sign out. Sign in as Blair.
- As Blair, paste Alex's ID into the same kind of address, or replay the same kind of request with Alex's ID. (Only do this against your own app, with accounts you own.)
- See what happens.
If Blair is blocked (an error, a "not found" page, or Blair's own data instead of Alex's), that part of the app passed this check.
If Blair can see, edit or delete Alex's record, the app is missing an object-level check. OWASP says: "Unauthorized access to other users' objects can result in data disclosure to unauthorized parties, data loss, or data manipulation. Under certain circumstances, unauthorized access to objects can also lead to full account takeover" (same page).
IDs are not only in the visible URL. OWASP notes they can be "sequential integers, UUIDs, or generic strings" and they can sit in "the request target (path or query string parameters), request headers, or even as part of the request payload." If your app loads a record by ID anywhere, include that path in your check.
Do this for the actions that matter: viewing, editing and deleting, not only the first page that opens.
What to fix
OWASP says: "Every API endpoint that receives an ID of an object, and performs any action on the object, should implement object-level authorization checks." Those checks should confirm that the logged-in user is allowed to do that action on that record (same page).
The check has to run on the server, on every request that loads or changes a record. A hidden button in the browser is not enough. If Blair can still call the same address or request, the server must say no.
One more important point from OWASP: "Comparing the user ID of the current session (e.g. by extracting it from the JWT token) with the vulnerable ID parameter isn't a sufficient solution to solve Broken Object Level Authorization (BOLA)." That may help when the ID is the user ID. It does not help when the ID is for an order, a document or another record. In those cases the server must look up the record and check that this user is allowed to use it.
Random, hard-to-guess IDs can make guessing harder. OWASP says: "Prefer the use of random and unpredictable values as GUIDs for records' IDs." They do not replace the server-side check. If Blair already has the ID, a random ID will not stop them.
We also have a short version of this test in our blog post Lock down who can read your data.
A copy-paste prompt for your AI builder
You can paste this into Lovable, Bolt, Cursor or a similar tool:
Please add object-level authorization checks on the server.
1. Find every API route, server function or database query that accepts a record ID from the client (URL path, query string, header or request body) and then reads, updates or deletes that record.
2. For each one, check that the signed-in user is allowed to perform that action on that specific record, not only that they are logged in, and not only that the ID matches their user ID when the ID is for a different kind of record (for example an order or a document).
3. If the user is not allowed, return a generic not-found or forbidden result. Do not leak whether the record exists.
4. Do not rely on hiding buttons in the browser. The server must enforce this.
5. Show me every file you change, then tell me how to re-test with two accounts: create a record as user A, sign in as user B, and try to open, edit and delete A's record by ID.If your data lives in Supabase, also check that Row Level Security is on and that policies only let users reach their own rows. See Is my Supabase anon key safe to show in my app? and, if you built with Lovable, Is my Lovable app exposing data?. If you use Firebase, check your Security Rules: Are my Firebase Security Rules leaving my data open?.
What the rooGBotVC scan checks
Paste your app's URL in the box at the top of this page if you want a free look at what a visitor can see.
To be clear about the limits:
- The scan is read-only and signed out. It does not log in, so it cannot run this two-account test.
- It cannot change IDs in URLs or requests, and it cannot tell you whether one user can see another user's records.
- If it finds a Supabase or Firebase config in your public code, it reminds you to check your database rules. That is useful, but it is not the same as this test.
This is a check you (or your AI builder, with your two test accounts) have to do yourself.
The free summary shows what was found. The full report adds a plain-English explanation and a fix prompt you can paste into your AI builder.
Quick recap
- If one signed-in user can open another user's record by changing the ID, the app needs a server-side check on that record.
- Test it yourself with two accounts you own, for view, edit and delete.
- Our scan cannot test this, because it does not sign in.
Related reading
- Lock down who can read your data: a short version of the two-account check.
- Is my Supabase anon key safe to show in my app?: why Row Level Security is what protects Supabase data.
- Is my Lovable app exposing data?: how to check RLS on a Lovable app.
- Are my Firebase Security Rules leaving my data open?: the same idea if you use Firebase.
Related guides
rooGBotVC is an automated, read-only, signed-out check of what any visitor can see. It is not a full security audit and it cannot test whether one user can reach another user's data. Not affiliated with OWASP, Lovable, Bolt, Cursor, Replit, Supabase or Firebase.