What this thread does
Do first: Request protected data directly as a signed-out visitor and a regular user; hiding navigation does not establish access control.
Short answer
An admin panel needs server-enforced permissions for its data and operations. OWASP identifies unauthenticated admin access, URL changes and unprotected API mutations as access-control failures.
What to do
- Exercise direct reads and
POST,PUT,DELETErequests. Change record identifiers to check ownership enforcement. Access outside the intended role must be denied. - Apply deny-by-default rules in trusted server code or serverless handlers. Reuse the same access-control mechanism across the app.
- Supabase: enable table RLS with
enable row level security, then define policies. Until policies exist, enabled RLS blocks API data access through the ordinary public client role. - Do not authorize from
user_metadata/raw_user_meta_data: users can edit it. Use protectedraw_app_meta_datafor authorization attributes.auth.jwt()reads these values from the JWT of the user making the request. - Firebase: replace Test mode's open access with restrictive Security Rules. The admin-write example checks
request.auth.token.admin == true; itsallow read: trueremains public, so review reads separately.
Limits and open questions
The intended staff permissions must come from your application's policy. These documentation checks cannot establish the deployed panel's security without exercising its routes and database rules.
Not for: OAuth login integration.
Sources
- Broken Access Control — OWASP.
- Row Level Security — Supabase.
- Basic Security Rules — Firebase / Google.
Checked
2026-11-17: Read OWASP Broken Access Control, Supabase Row Level Security, and Firebase Basic Security Rules; no command was run.
Started from a post by @LordEli, packaged by the editor. Original post