CAPECattack pattern

CAPEC-58 Restful Privilege Elevation

High Official page ↗
Abstraction
Detailed
Status
Draft
Likelihood of attack
High
Typical severity
High
CAPEC version
3.9

Description

An adversary identifies a Rest HTTP (Get, Put, Delete) style permission method allowing them to perform various malicious actions upon server data due to lack of access control mechanisms implemented within the application service accepting HTTP messages.

Extended description

Rest uses standard HTTP (Get, Put, Delete) style permissions methods, but these are not necessarily correlated generally with back end programs. Strict interpretation of HTTP get methods means that these HTTP Get services should not be used to delete information on the server, but there is no access control mechanism to back up this logic. This means that unless the services are properly ACL'd and the application's service implementation are following these guidelines then an HTTP request can easily execute a delete or update on the server side. The attacker identifies a HTTP Get URL such as http://victimsite/updateOrder, which calls out to a program to update orders on a database or other resource. The URL is not idempotent so the request can be submitted multiple times by the attacker, additionally, the attacker may be able to exploit the URL published as a Get method that actually performs updates (instead of merely retrieving data). This may result in malicious or inadvertent altering of data on the server.

Prerequisites

• The attacker needs to be able to identify HTTP Get URLs. The Get methods must be set to call applications that perform operations other than get such as update and delete.

Skills required

• [Low] It is relatively straightforward to identify an HTTP Get method that changes state on the server side and executes against an over-privileged system interface

Consequences

• Integrity: Modify Data • Confidentiality, Access Control, Authorization: Gain Privileges

Mitigations

• Design: Enforce principle of least privilege • Implementation: Ensure that HTTP Get methods only retrieve state and do not alter state on the server side • Implementation: Ensure that HTTP methods have proper ACLs based on what the functionality they expose

Related

Child of · CAPEC (2)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs attack pattern
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels attack pattern

Weakness · CWE (2)

  • CWE-267 Privilege Defined With Unsafe Actions weakness
  • CWE-269 Improper Privilege Management weakness

Referenced by CWE · attack pattern (2)

  • CWE-267 Privilege Defined With Unsafe Actions weakness
  • CWE-269 Improper Privilege Management weakness