SiteShadow
Back to vulnerability library

CWE-287 Improper Authentication

What this means

SiteShadow flagged an authentication pattern that can be bypassed or behaves incorrectly (missing checks, "trust the client" auth, weak token validation, or inconsistent auth across endpoints).

Why it matters

Improper authentication can allow unauthorized access.

Safer examples

1) Centralize auth middleware and make it default

Prefer "authenticated unless explicitly public."

2) Validate tokens/credentials robustly

3) Test auth boundaries

Add integration tests that assert 401/403 for unauthenticated requests to sensitive endpoints.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage