Authorization (AZ4)

AUTHORIZATION
4

Kelly pode contornar controles de autorização porque eles não falham de forma segura (ou seja, por padrão permitem o acesso)

How to play?

The key concept for this card is allowing access, even though authorization checks were undertaken and detected a failure. See Authentication 8 (AT8) for the similar authentication failure.

Scenario: Kelly's Exploitation of Non-Secure Default Authorization

Consider a situation where Kelly bypasses authorization controls due to their failure to default to a secure state. This issue arises because:

  1. Non-Secure Default Settings: In case of a failure in the authorization process, the system defaults to allowing access, rather than denying it.

Example

Kelly targets an online service platform that has an authorization mechanism with a non-secure fallback. During a system error or when the authorization service fails, the system is configured to grant access by default as a means to avoid disruption of service. Kelly deliberately triggers errors in the authorization process, and each time, the system defaults to allowing her access to restricted areas that she would normally not have permission to view.

Threat Modeling

STRIDE

This scenario maps primarily to STRIDE: Elevation of Privilege.

Elevation of Privilege (EoP) occurs when an attacker gains access to resources or functionality beyond what they are authorized for. Kelly exploits a non-secure fallback in the authorization mechanism. When the system encounters an error, it defaults to granting access, allowing her to access areas she normally shouldn’t. The attack is not about impersonating someone else (Spoofing), but about accessing resources without proper authorization, which is classic Elevation of Privilege.

What can go wrong?

This vulnerability can lead to unauthorized access to sensitive data or functionalities, potentially compromising the entire system’s security. This can manifest in various forms, including but not limited to:

  • Unauthorized access to restricted areas or data during system errors
  • Exploitation of system downtime or failures to gain access to protected resources

For more things that can go wrong, see the Common Attack Patterns related to this card in the table below.

What are we going to do about it?

Once an authorization failure is detected, access needs to be blocked. It is also useful to log (associated with the user's identity if possible) and flag these as possibly malicious activity for further analysis, or as input for application intrusion detection systems.

  1. Configure all authorization mechanisms to default to a 'deny access' state in the event of any failure or error.
  2. Regularly test and validate the authorization process to ensure it behaves securely during system errors or downtimes.
  3. Implement robust monitoring and alerting mechanisms to quickly detect and respond to failures in the authorization system.

For detailed advice on how to mitigate threats related to the card, see the ASVS and OWASP Developer Guide requirements in the table below.

Mappings

STRIDE: Elevation of Privilege

OWASP ASVS: 16.3.2,16.5.3

CAPEC: 180

OWASP DevGuide: AC3,AC10,AC11

SAFECode: 8,10,11

CAPEC™ Map

CodeTitleASVS
180Exploiting Incorrectly Configured Access Control Security Levels

ASVS (5.0) Cheat Sheet Series Index

Attacks

Privilege escalation

Insider Threats

OWASP Cornucopia

OWASP Cornucopia is a mechanism in the form of a card game to assist software development teams identify security requirements in Agile, conventional and formal development processes. It is language, platform and technology-agnostic, and is free to use. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 4.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar licence to this one.

© 2012-2025 OWASP Foundation. The Open Worldwide Application Security Project (OWASP) is a nonprofit foundation that works to improve the security of software.