Skip to content
OpenAdvisories

Weakness (CWE)

CWE-650: Trusting HTTP Permission Methods on the Server Side

Variant Incomplete

The server contains a protection mechanism that assumes that any URI that is accessed using HTTP GET will not cause a state change to the associated resource.

More detail

Believing that it will be enough to prevent unintended resource alterations, an application may disallow the HTTP requests to perform DELETE, PUT and POST operations on the resource representation. However, there is nothing in the HTTP protocol itself that actually prevents the HTTP GET method from performing more than just query of the data.

How to prevent it (2 mitigations)
  1. Architecture and Design, Implementation

    The access control needs to be properly enforced in the application. No assumptions should be made that only HTTP DELETE, PUT, POST, and other methods have the power to alter the representation of the resource being accessed in the request.

  2. System Configuration

    Configure ACLs on the server side to ensure that proper level of access control is defined for each accessible resource representation.

Source: MITRE CWE-650

0 results · Clear filters · Feed

Nothing found.