API routes with no auth check
Quick answer: Hiding a button in the UI isn't security. Every server route must check the session and confirm the user owns the record.
Last updated November 12, 2026
Steps
- Log out of your own app.
- Call your API route directly with curl or a browser.
- If data comes back, the route is open.
- Add server-side auth middleware and an ownership check on every query.
Why it matters
This is a common failure pattern in apps built quickly with AI coding tools. The steps above check your own app only. Never test apps you don't own.
Related patterns
- Mass assignment: users can set fields like role or is_admin
- Auth checked only in Next.js middleware (proxy)
- Cron and webhook-style job endpoints anyone can trigger
- Server Actions with no auth check inside them
- Checkout prices, totals and discounts taken from the browser
- IDOR in vibe-coded apps: changing an ID in the URL to see someone else's data
- Hard-coded credentials left in vibe-coded apps
- OS command injection from unsanitized shell calls
- Debug or preview mode left on in production
- API responses that return whole database records (excessive data exposure)
Found a problem you'd rather not fix yourself?
Tell us what's wrong. A StorenTech engineer reviews your app and replies with a fixed quote, so you know the cost before any work starts.
Get it fixed by StorenTechVibe Security Weekly
One email a week with new failure patterns and how to fix them.
By joining you agree we may email you this newsletter. See our privacy policy. Free. Unsubscribe anytime. We'll never sell your email.