LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. Who may see what
  4. · 4 minutes · Pro

Open it in incognito

Everything works when you are signed in. A security researcher emails: 'Try your from a private window.'

This answers: How do I test my app for exposed data? No coding needed. 2 quick decisions.

  • Who may see what
  • Who is signed in
  • Debugging without panic

Checking your access…

How do I test my app for exposed data?

Test every page and as four people: signed out, a normal user, a different user, and an admin. Any endpoint that returns data or makes changes for someone who should be refused is a security bug. Testing only while signed in as yourself hides these bugs.

Trail of the bug
  1. Stranger
  2. Your server
  3. Database

Breaks at Your server: No sign-in check at all

How it works

What Maya's browser can readRow Level Security
OrderOwnerTotalMaya sees it?
#1042Maya£120Yes, hers
#1043Tom£80Yes: leaked
#1044Ana£215Yes: leaked
#1045Maya£42Yes, hers
With RLS off, any role granted access to the table, such as the public key, can read every row. Maya, or anyone with your site open, gets everyone's orders.

Why AI tools write this bug

AI-built apps are usually tested by their creator, signed in, which is the one viewpoint from which missing checks are invisible.

How to fix it

  1. Open the app and its in a private window, signed out.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock

Common questions

What does a 200 response mean for a signed-out request?
That the server returned data to an anonymous visitor. For private data, it should be 401 or 404.

Related scenarios

  • The admin buttonPro · 4 min
  • Invoice 105Free · 4 min
  • Launch day, no emailsFree · 4 min

More on this trail

Who may see what: Sign-in, permissions, and the leaks AI-built apps ship most often.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

2 decisions, about 4 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. Open the app and its in a private window, signed out.

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock