Broken Access Control
OWASP Top 10 #1 (2021). Umbrella-kategori: IDOR, missing-function-level-access-control, privilege-escalation, force-browsing, JWT-issuance-bug. Allt där auth-z (authorization) brister, inte auth-n (authentication).
Concrete examples: admin-endpoint utan admin-check (förlita på "obscure URL"), JWT-claims förlitas utan re-verification, RBAC-rule-config-bug ("everyone has admin för förstå-fönster"), CORS misconfigured (allow-credentials + allow-origin *). Defense-in-depth: deny-by-default, mandatory authorization-middleware per endpoint, RBAC + ABAC-frameworks (CASL, Cerbos, OPA). Automated-testing: Burp Suite + ZAP har authorization-bypass-scanners. Modern best practice: policy-as-code (OPA Rego) decouples authz från app-code.