Skip to content

PROOFFORGE GUIDES

Fix common security issues in AI-built apps

SHORT ANSWER

Use these guides to move from a finding to a reviewed change. Each one explains the likely boundary, gives a conservative repair pattern, and shows how to verify the live result without reading private user data.

Last updated

Scan an app you own

Make the smallest safe change

Confirm the affected provider, route, table, and deployment before applying a snippet. Replace example names with the real schema and user identity claim; a syntactically valid policy can still grant the wrong people access.

If a private credential appeared in browser output, revoke it with the provider. Removing the text from the current source does not invalidate copies already deployed or downloaded.

Verify before calling it fixed

After deployment, re-check the public URL and test the intended user flow. For data rules, include an anonymous user, the owner, and an unrelated user. A screenshot or source diff alone does not prove the live boundary changed.

BROWSE THE LIBRARY

Supabase RLS is disabled. How do I fix it?Understand Supabase Row Level Security disabl in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.What does USING (true) mean in a Supabase policy?Understand a Supabase RLS policy using true in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My Supabase service_role key is exposed. What now?Understand an exposed Supabase service_role k in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.An OpenAI API key is exposed in my app. How do I fix it?Understand an exposed OpenAI API key in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.An Anthropic API key is exposed in my app. What should I do?Understand an exposed Anthropic API key in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.A Stripe secret key is exposed in my app. How do I fix it?Understand an exposed Stripe secret key in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.Are secrets in VITE_ or NEXT_PUBLIC_ variables exposed?Understand secrets in VITE_ or NEXT_PUBLIC_ v in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My .env file is publicly accessible. How do I fix it?Understand a publicly exposed .env file in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.A public site exposes its .git folder. How do I fix it?Understand a publicly exposed .git folder in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.Are public source maps a security problem?Understand public production source maps in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.Which security headers should my app send?Understand missing security headers in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My API uses Access-Control-Allow-Origin: *. Is that safe?Understand wildcard CORS configuration in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My Firebase rules allow everyone. How do I fix them?Understand open Firebase Security Rules in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.Is my Supabase Storage bucket public? How do I fix it?Understand a public Supabase Storage bucket in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My app does not redirect HTTP to HTTPS. How do I fix it?Understand an app without an HTTP to HTTPS re in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.My admin page is reachable without login. How do I secure it?Understand an admin route reachable without a in an AI-built app. Learn what a public check proves, how to apply a safe fix, and what to verify before you ship.

Frequently asked questions

Should I paste a finding into an AI agent?

Share the masked finding and relevant code context, not a live key, token, private row, or full report URL.

Can I copy the SQL directly?

Treat it as a pattern. Confirm the table, owner column, roles, and required operations before applying a migration.

What if the scan is inconclusive?

Resolve the blocked or ambiguous request using the provider's own tools; do not interpret missing evidence as a pass.

Last updated November 25, 2026 · Reviewed by ProofForge