Skip to content
StackSiren

Guide

Admin emails or flags hard-coded in client code

How StackSiren Deep Scan detects this issue and how to fix it. Severity typically medium.

Why it matters

Admin emails or flags hard-coded in client code is a common finding on vibe-coded and AI-built apps that ship client bundles, shared backends or platform defaults without a security pass.

StackSiren reports this from read-only checks (GET, HEAD or OPTIONS only). It does not exploit the issue.

How to fix it

Never decide admin access in the browser. Check the user's role on the server (database role, custom claim or RLS policy) and return 403 otherwise. Remove admin email lists and isAdmin flags from client bundles.

How StackSiren Deep Scan checks

Deep Scan runs only on hosts you have verified you own (DNS TXT or /.well-known file) and consented to test. Findings include a short evidence string; secret values are masked.

See the Acceptable Use Policy and Active scanning terms for what Deep Scan is and is not.

Builder-specific checklists

Check your app now

Free passive scan, results in under a minute.

Run a free scan