SiteShadow
Back to vulnerability library

CWE-269 Improper Privilege Management

What this means

SiteShadow flagged code where privileges/roles are assigned, escalated, or checked incorrectly (for example: users can set their own role, admin flags are client-controlled, or privilege boundaries aren't enforced consistently).

Why it matters

Improper privilege handling can grant admin access.

Safer examples

1) Make privilege changes admin-only

Separate "self update" from "admin update" endpoints and require re-auth/MFA for privilege changes.

2) Never trust client-controlled privilege fields

Ignore client-sent role, isAdmin, permissions fields in normal user flows (see API01).

3) Apply least privilege by default

New accounts should start with the minimum permissions and require explicit elevation.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage