SiteShadow
Back to vulnerability library

CWE-266 Incorrect Privilege Assignment

What this means

SiteShadow flagged privilege/role assignment that can grant more access than intended (wrong default role, client-controlled privilege fields, missing admin-only guards).

Why it matters

Incorrect privilege assignment can grant excessive access.

Safer examples

1) Make "least privilege" the default

New accounts should start with minimal permissions and require explicit elevation.

2) Don't accept role/permission fields from clients

Ignore fields like role, isAdmin, permissions in normal user flows (see API01).

3) Require re-auth/MFA for privilege changes

Role changes should be admin-only and require step-up auth (see MFA01).

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage