Skip to content

Entity performs disallowed action

Definition

Allowing someone to do something they’re not authorised to do.1

Context

The system executes actions requested by an uncontrolled entity.

Attacker capabilities

  • The attacker can request actions from the system; and
  • can construct an action request that is not part part of the set it should have access to.

Explanation

Typically, not each entity should be able to perform all actions the system provides. For example, an unprivileged user should not be able to perform actions reserved for system administrators. Similarly, a customer of a web shop should not be able to change the price of a product before purchasing it or change the account details, e.g. contact information, associated another customer's account.

This problem is included in:

  • A01: Broken Access Control in the OWASP Top 10
  • API1: Broken Object Level Authorization in the OWASP API Security Top 102
  • API5: Broken Function Level Authorization in the OWASP API Security Top 102
  • Authorize after You Authenticate in IEEE's Top 10 Security design flaws3

Examples

  • An entity retrieves payment information, e.g. credit card number, from another user and subsequently uses this to pay for his or her own purchase.
  • An unprivileged entity performs maintenance operations or shuts down part of the system, functionality that should be accessible only to system administrators.
  • An external attacker successfully retrieves internal company documents, e.g. contracts or intellectual property, by guessing their identifier in the system, such documents should only be available to (a select number of) employees.

Possible solutions

  • Properly authorise entities before executing their requests.

  1. A. Shostack, Threat Modeling - Designing for Security. John Wiley & Sons, 2014. ↩

  2. P. Silva, ‘OWASP API Security Top 10 2019 - The Ten Most Critical API Security Risks’. [Online]. Available: https://owasp.org/www-project-api-security/ ↩↩

  3. I. Arce et al., ‘Avoiding the Top 10 Software Security Design Flaws’, IEEE, 2014. [Online]. Available: https://cybersecurity.ieee.org/blog/2015/11/13/avoiding-the-top-10-security-flaws/ ↩


Last update: February 3, 2022