Skip to content

Spoof an entity

Definition

Pretending to be something or someone other than yourself.1

Context

The system interacts with one or more entities.

Attacker capabilities

  • The attacker can interact with the system; and
  • the attacker knows the claimed identity of at least one entity, besides itself, with which the system interacts.

Explanation

Both the entity requesting an action as well as the receiving entity can be spoofed by another entity. In the first case, the system receives an action request from some entity X which claims it is entity Y by providing identifier y as argument to its action request. For example, an attacker claims to be some other valid customer of a web shop by providing this customer's username instead of its own, potentially allowing the attacker to purchase products in this customer's name.

Entity X requests an action claiming to be entity Y.

In the second case, the system sends its action request(s) to a different entity than it believes it does. For example, the system sends payment information to an attacker entity that pretends it is the intended bank that should process the payment.

Entity X receives an action request from the system intended for another entity Y.

This problem is included by:

  • A07: Identification and Authentication Failures in the OWASP Top 10
  • API2: Broken User Authentication in the OWASP API Security Top 102
  • Use an Authentication Mechanism that Cannot be Bypassed or Tampered With in IEEE's Top 10 Security design flaws3

Examples

  • An attacker performs a purchase pretending to be another user, leaving him or to actually pay for the purchase.
  • An attacker pretends to be a privileged user to obtain access to sensitive information stored by the system.
  • The system sends sensitive information to an attacker that pretends to be its legitimate third-party partner.

Possible solutions

  • Properly authenticate all entities that request actions from the system before processing such requests.
  • TODO: solution for spoofing of receiver (current authc pattern is not suited for this)

  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 7, 2022