Anyone who typed the address got into your admin pages
CriticalFixed
- What it means
- Your customer dashboard checked that people were logged in. Your admin section, added three months later, didn't. Nothing in the app linked to it, which is why nobody noticed, but nothing hid it either.
- What could have happened
- Anyone who guessed the address, and it's the address everyone guesses, could read your full customer list, change invoices, issue refunds to themselves and delete accounts. No login, no trace beyond a web request that looked ordinary.
- What I did about it
- Moved the login check into one place that every page passes through, so a new page is protected by default and has to opt out on purpose. Added a test that visits every route signed out and fails the build if any of them answers with a page instead of a redirect.
- How to check it yourself
- Open your site in a private window and go to /admin. You should land on the login page.
- Whether anyone used it
- Your Vercel logs go back 30 days. In that window every request to /admin carried a session belonging to you or your co-founder. Before that I can't see, so I can't rule it out.
What I sawGET /admin/customers returned the full page with no session cookie present