2026-11-23 · Daily security tips
Can a user see someone else's data by changing an ID?
Lots of apps load records by ID, like /api/orders/1042. The bug is when the server finds that row and sends it back without checking it belongs to the person asking. Anyone signed in can change the number and read someone else's data. Watch API routes that use a Supabase service_role key or a direct database connection; those skip RLS.
Check: make two test accounts. As A, copy the URL or request for one of A's records. Sign in as B and open the same URL, or replay the request with B's session. If B sees it, you have the bug. Random UUIDs make IDs harder to guess, but they don't fix this.
Fix: on every read, update and delete, match the owner as well as the ID, like where id = $1 and user_id = the signed-in user's id. Or query with the user's own session so RLS applies.
Is your live site exposing something like this?
The free quick check looks at what your site already serves publicly: secret keys in your JavaScript, open /.env files and /.git folders, Supabase tables readable with your public key, missing security headers, CORS misconfiguration, insecure cookie flags and TLS certificate expiry. No sign-up needed.
No app handy?
No sign-up. Read-only public-resource and protocol metadata checks. No model prompts or tool execution. Scan only sites you own or are allowed to test.
Run on every deploy or use from Cursor / Claude Code via MCP →