Authorization (AZ5)

AUTHORIZATION
5

Chad peut accéder à des ressources (services, processus, AJAX, Flash, vidéo, images, documents, fichiers temporaires, données de session, de configuration, propriétés système, registre, journaux) auxquelles il ne devrait pas à cause d'habilitations défaillantes ou de privilèges excessifs (par exemple en n'appliquant pas le principe de moindre privilège)

How to play?

The key concept for this card is applying authorization controls to all resource types. See Authorization 6 (AZ6) for data controls, and Authorization 7 (AZ7) for function/object/property controls.

Scenario: Chad’s Unauthorized Access Due to Insufficient Authorization

Imagine a scenario where Chad gains access to various resources that he should not be able to access. This occurs due to:

  1. Missing Authorization Checks: Certain resources lack proper authorization controls.
  2. Excessive Privileges: The system grants more privileges than necessary, failing to adhere to the principle of least privilege.

Example

Chad discovers that a corporate application does not enforce strict authorization checks on certain resources, such as temporary files, system properties, and logs. He exploits this oversight to access sensitive documents and configuration data meant for higher-privileged users. Additionally, due to the system granting excessive privileges to regular users, Chad can access and interact with services and processes usually reserved for administrators.

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 actions they are not authorized to use. In this case, the attacker can access resources—files, processes, session data, configuration settings, logs, etc.—that should be protected by authorization controls. The root cause is missing authorization or excessive privileges, violating the principle of least privilege. The consequence of such an action leads to Information Disclosure in most cases.

What can go wrong?

Such vulnerabilities can lead to unauthorized access to critical resources, potentially resulting in data breaches, system manipulation, and other security compromises.

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?

  1. Implement comprehensive authorization checks for all resources, system component and requests, regardless of resource type. Ensure only appropriately privileged users can access them.
  2. Adhere to the principle of least privilege, granting users only the permissions they need to perform their duties.
  3. Regularly audit and review user privileges and resource access controls to identify and rectify any excesses or lapses in authorization.
  4. Ensure client applications can only request access to what is strictly necessary.

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: 8.1.1,10.2.3,13.2.2,13.3.2,16.4.2

CAPEC: 54,58,75,77,87,122,126,143,144,149,155,203,240,268

OWASP DevGuide: SC1,SC2,SDC1,SDA2,SM2,SM12,AC2,AC3,AC4,ACM4,ACM5,ACM6,ACM7,ACM8,ACM9,SCM2,SCM4,PDR3,PDR4,SLD3

SAFECode: 8,10,11,13

CAPEC™ Map

CodeTitleASVS
54Query System for Information
58Restful Privilege Elevation
75Manipulating Writeable Configuration Files
87Forceful Browsing
122Privilege Abuse
126Path Traversal
143Detect Unpublicized Web Pages
144Detect Unpublicized Web Services
149Explore for Predictable Temporary File Names
155Screen Temporary Files for Sensitive Information
203Manipulate Registry Information
240Resource Injection
268Audit Log Manipulation

ASVS (5.0) Cheat Sheet Series Index

Attacks

Privilege escalation

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.