The 4 security bugs every AI-coded app ships with (and never notices)
I've been scanning apps built with Cursor, Claude Code, Bolt, and Lovable for the past few weeks, and the same 4 issues show up almost every time:
1. Exposed API keys in client-side code
AI tools love hardcoding secrets directly into frontend files because it "just works" in the demo. It works until someone opens dev tools.
2. Open database rules
Supabase and Firebase projects scaffolded by AI assistants routinely ship with allow read, write: if true. The AI got you to a working app fast — it didn't lock the door behind it.
3. Missing auth checks on API routes
The frontend hides a button if you're not logged in. The backend route behind that button often doesn't check at all. Anyone with the URL can hit it directly.
4. Unverified webhooks
Stripe/webhook handlers that trust whatever payload shows up, no signature verification. Fine until someone forges a "payment succeeded" event.
None of this is because the AI tools are bad — they're optimizing for "does it run," not "is it safe." The fix for each of these takes minutes once you know it's there. The problem is most non-technical builders don't know to look.
If you've shipped something with an AI coding tool and haven't checked it for these specific issues, it's worth 5 minutes to look. Happy to answer questions on what to check for.
