How to check if your database is open to strangers
Check the anonymous role and your authenticated user roles separately, using a database you own and synthetic data. Do not equate a visible project key, a successful page load or an empty response with a complete access verdict.
Check your app free, first fix freeMap the application's actual database, decide which records should be private and test known examples with the least-privileged caller. Prefer counts or synthetic records over customer data. Keep service credentials out of the test, establish a legitimate-owner control and retain unknown results rather than treating failed requests as proof of safety.
Start with an access map, not a secret scanner
List the data types your app stores: public catalog entries, private profiles, messages, invoices and administrative settings. For each one, write down who should read and change it. This is the reference against which a test result becomes meaningful. A public database-backed catalog is not automatically a security failure.
Identify the real data system used by the published app. A frontend might contact a managed backend, a custom API or several projects. Do not apply a Supabase procedure to a Firebase deployment or assume that a server proxy uses the same identity as a browser client.
Choose evidence that does not expose customers
On staging, create a synthetic record with no personal data. Record its owner and identifier privately. Use the actual application request path to test the intended behavior. On a live production system, prefer supported metadata or count-only signals where they answer the anonymous-access question without returning records.
Data type: private invoice
Owner control: account A can read its synthetic invoice
Anonymous test: no invoice returned
Cross-account test: account B cannot read A's invoice
Write test: separately checked on staging
Unresolved: administrative exports and storage attachmentsThis evidence log is deliberately more specific than a single safe or unsafe label. It names the operation and caller, so the next developer does not assume that every route, file and role was covered.
Avoid credentials that invalidate the experiment
Do not test ordinary user access with an administrator database password, service-role key or server credential that bypasses normal policies. You may receive data precisely because that role is privileged. The result tells you nothing about the intended anonymous or signed-in user.
For browser-oriented backends, public project identifiers are often expected. The relevant defect is a permission that exposes data unintentionally, not simply that an identifier appears in JavaScript. If a genuinely privileged credential appears there, treat that as a separate incident and rotate it.
Interpret empty, denied and failed responses differently
An empty result may mean the table contains no visible data. A 401 may mean the request's authentication header is invalid. A network timeout means the request did not establish anything reliable. These are not equivalent to a positive control proving that the intended permission boundary works.
For stronger evidence, verify the known owner still succeeds, then vary only the caller. If the non-owner gets a denied or empty response while the owner retrieves the expected synthetic record, you have a useful observation for that operation. Repeat for relevant writes and shared-role cases.
Repair the permission boundary in the right place
A database policy, managed entity rule and server authorization check solve different problems. Hiding a page or adding a client-side filter cannot repair a server that returns other users' records. Make the narrowest correct change, preserve legitimate access and retest the deployed path.
Turn the check into a release decision
Keep a small record of the production URL, the time you checked it, the exact finding and the action you took. A local preview and a deployed application can have different environment variables, response headers and database projects. After a repair, deploy the intended version and check the public address again. Do not assume that changing a repository file changed the live system.
Read coverage as carefully as the score. A timed-out asset, an ambiguous backend configuration or a request that could not safely establish access should remain unknown. It should not disappear from your release notes merely because there is no red finding. If a check was not completed, decide who will review it and what additional evidence is needed.
ProofForge's free report includes the first fix. The $9 Fix Report unlocks all findings' available repair guidance and builder prompts, with a PDF and private report link. Fix + Guard costs $29 once and adds builder rules, on-demand deploy-hook scans for 30 days and four weekly rechecks you start yourself. These are different deliverables, not different promises that an application is completely secure.
Keep private report URLs out of public issues and commits. If you need shareable evidence, use the owner-verification and publication flow for an eligible receipt. A signature protects the recorded assessment against undetected changes; it does not make the assessment exhaustive, prove a business outcome, or show that a later deployment still matches an earlier result.
Questions builders ask
Is a public database address itself dangerous?
Can an outside scan test every signed-in role?
Should I collect real records to prove the leak?
Related checks and fixes
Continue with a related guide
Sources
Scan your app free
See what your live app ships to every visitor, with the first fix free. A clean scan is not a full audit. Run it only on an app you own or have permission to test.
Scan your app free