Databases
Check that users can’t read each other’s data
Every signed-in user may be able to fetch every row, and the app only hides it in the interface.
- What you get
- Each table tested as a stranger and as another user, with the access rules fixed where a test fails.
- Paste it into
- Your AI tool, in your project
The prompt
Check whether one user of this app can read or change another user's data. List every table and storage bucket, who should be able to read, create, change and delete rows in each, and what enforces that today: database rules such as row level security, server code, or nothing. Flag any table reachable from the browser with rules switched off or a rule that allows everyone. Then prove it. Using test accounts only, try as a signed-out visitor and as user A to read and edit user B's rows, directly against the database API and not through the interface. Show each attempt and its result. Fix what fails, run the same attempts again, and never touch production data. If every table holds, say so. Don't invent findings.
Use it
Open your AI tool (Claude Code, Codex or Cursor) in your project folder and paste it in.
More in Databases
Stop changing the database by hand
You edited tables in the dashboard, and now local, preview and production don’t match.
Find out if you could get your data back
You assume the database is backed up and have never tried a restore.
Find the queries that slow your pages
Pages got slower as data grew, and adding a cache only hid it.
Fix “too many connections” errors
The database refuses connections under light traffic on a serverless host.