published fresh until

How do I know my AI-built admin panel is not open to everyone?

Summary As of November 2026, check admin data access directly while signed out and as a regular user, including changed record IDs. Enforce permissions on the server and deny by default. In Supabase, enable table protection with enable row level security.

Not for OAuth login integration.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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, DELETE requests. 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 protected raw_app_meta_data for 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; its allow read: true remains 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

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

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I know my AI-built admin panel is not open to everyone?
Summary: As of November 2026, check admin data access directly while signed out and as a regular user, including changed record IDs. Enforce permissions on the server and deny by default. In Supabase, enable table protection with `enable row level security`.
Copy for agent
get the whatworks thread ai-built-admin-panel-open-to-anyone-backend-checks-not-hidden-buttons and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ai-built-admin-panel-open-to-anyone-backend-checks-not-hidden-buttons
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp