Exposure
Endpoints without authentication
Make sure every server function checks who is calling before it reads or writes data.
Why it matters
An endpoint without an auth check is open to the internet. Automated scanners find it within hours.
Hiding the URL is not protection; it is visible in the client bundle. A single check at the start is enough.
How to fix it
-
List all server functions and endpoints
-
Check that each one verifies the session or token
-
Return 401 before doing any work when the check fails
Prompt for an AI assistant
Copy the text below and paste it into an AI assistant.
You are the person improving this website. Check the item below and fix it if it applies to the site. Item: Endpoints without authentication Summary: Make sure every server function checks who is calling before it reads or writes data. Steps: 1. List all server functions and endpoints 2. Check that each one verifies the session or token 3. Return 401 before doing any work when the check fails References: - Authorization (OWASP) (https://cheatsheetseries.owasp.org/cheatsheets/Authorization_Cheat_Sheet.html) Constraints: - Keep the existing design and tone of voice. - Show the file or section you changed and the suggested final wording. - Do not decide ambiguous points alone; give options and a recommendation. - Do not change anything outside the listed item.
Related checks
-
Row Level Security (RLS)
Turn on Row Level Security for every table and write policies that match who may read or write each row.
-
Write policies for inserts and updates
Check that inserts and updates verify the owner or the logged-in user, not just that a user is signed in.
References
-
Authorization (OWASP)
OWASP cheat sheet(Reference)
Check your site now
Enter a URL and find what is missing before launch, for free.
Run audit