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

  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

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

References

Check your site now

Enter a URL and find what is missing before launch, for free.

Run audit