SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysisPro

CWE-269 Improper Privilege Management

Coverage: 30 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 18Other-pattern 12 Also: Taint and heuristic analyzers may also detect related flows (see coverage for the authoritative list) Registry tagging shows intent, for sample-level behaviour and benchmarked gaps see known gaps.

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

Catch this with SiteShadow Pro.

This vulnerability class is detected by SiteShadow's Pro-tier engines, two-pass interprocedural taint analysis, heuristic flow checks, AI-context scanning, and cross-file detection. The free tier catches OWASP Top 10 single-file patterns; Pro adds the data-flow depth that finds this class of bug.