SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysis

CWE-863 Incorrect Authorization

Coverage: 8 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 1Other-pattern 7 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 an authorization check that appears missing or incorrect. Authentication answers "who are you," authorization answers "are you allowed to do this."

Why it matters

Incorrect authorization can lead to privilege escalation.

Safer examples

1) Enforce object-level authorization (ownership/policy)

doc = get_doc(doc_id)
if doc.owner_id != current_user.id and not current_user.is_admin:
    raise PermissionError("Forbidden")

2) Use centralized policies/guards

Don't scatter checks across handlers; use middleware/policy functions.

3) Test "can't access others' data"

Add integration tests that attempt access with a different user and assert 403/404.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Catch this in your code with SiteShadow.

Every released SiteShadow scanner is free, including full project analysis, reports, patterns, dashboard access, and configured organization SSO.