# Incorrect Authorization (CWE-863) The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. - Prevalence: Wysoka Brak reguł Shoulder - Impact: Wysoki OWASP Top 10 #1 - Prevention: Zobacz MITRE Odnośnik zewnętrzny **OWASP:** Broken Access Control (A01:2021-Broken Access Control) - #1 ## Description Even when authorization checks exist, incorrect implementation can allow unauthorized access. This includes using the wrong comparison logic, checking the wrong attributes, or having inconsistent enforcement. ## Prevention ## Consequences - Odczyt danych aplikacji - Modyfikacja danych aplikacji - Uzyskanie uprawnień ## Mitigations - Stosuj scentralizowany mechanizm autoryzacji - Dokładnie testuj logikę autoryzacji z różnymi rolami użytkowników - Wdroż kontrole autoryzacji spójnie we wszystkich zasobach