Fast to build, easy to leave open
AI app builders and coding assistants let founders ship a working product in days. The code usually works — but "works" and "safe" are different tests. AI tools optimise for the feature you asked for, not for the attacker you did not mention. The result is a recognisable set of security gaps.
The most common problems
1. Open databases
Apps built on Firebase or Supabase often go live without proper security rules or row level security, so anyone can read every table. See Firebase and Supabase misconfiguration.
2. Secrets in the front end
API keys for AI providers, payment services or email tools end up in client-side code, where anyone can copy them and run up your bill. See API keys exposed in JavaScript.
3. Missing authorisation
The app checks that you are logged in but not that the record belongs to you. Change an ID in the URL and you see someone else's data. See IDOR and broken access control.
4. Trusting the client
Prices, roles and limits are set in the browser and sent to the server unchecked. A user can edit the request and give themselves a discount or admin rights. See business logic vulnerabilities.
5. No rate limiting
Sign-up, login, password reset and AI endpoints have no limits, inviting abuse and runaway costs. See API rate limiting.
6. Missing headers and leftover debug output
No security headers, verbose error messages, and test pages left live.
A pre-launch checklist for AI-built apps
- every database table has deny-by-default rules tied to the owner
- no secret keys in the browser bundle; secrets live in server functions
- every API call checks ownership, not just login
- prices, roles and quotas are decided on the server
- rate limits on auth and any endpoint that costs you money
- security headers set
- debug pages and test data removed
- DMARC set up on your domain
Ask the AI the right questions
You can use AI to fix AI-built code. Ask specifically: "Which endpoints can be called without authentication?", "Where do we check the user owns this record?", "List every secret used in client-side code." Then verify the answers.
Test before customers arrive
A launch is the cheapest moment to find these problems. Yrzo AI tests AI-built apps for open data, exposed keys and access-control gaps — run a free scan or get a full report from £149.
Related reading: Firebase and Supabase Misconfiguration: How Apps Leak Their Whole Database · Website Security Checklist Before Launch · Next.js Security Best Practices: A Practical Checklist