Admin data-export endpoint reachable without authentication
Admin export · /admin/export/customers.csv
The CSV export route was protected in the admin UI (the link was hidden) but the endpoint itself had no auth check. Requesting the URL directly returned the full customer list.
Anyone who guesses or finds the URL downloads your entire customer database. “Hidden” is not “protected”. Search engines and attackers both find unlinked endpoints.
GET /admin/export/customers.csv (no session cookie) → 200 OK, 3•••2 rows
Gate the endpoint with the same server-side admin session check as the rest of /admin. Authorise the request, not just the button that links to it.