Get method query support

firetail:graphql-get-method-queries

Type:

Observation

Rule Severity:

Medium

The GraphQL endpoint allows queries to be executed using the HTTP GET method.

While GET requests are typically used for retrieving data without side effects, allowing queries via GET in GraphQL APIs can introduce security risks, such as sensitive data being cached or logged by intermediaries like browsers, proxies, or CDNs. This behavior may inadvertently expose sensitive query content or compromise API security.

Remediation

Ensure that the GraphQL API does not allow GET method queries.

Example Attack Scenario

An attacker sends a GET request with a mutation query embedded in the URL, such as deleting a user or updating account details. If the server allows mutations via GET, the attacker can execute this mutation without the need for additional authentication or protection, potentially leading to unauthorized data modification.

How to Identify with Example Scenario

How to Resolve with Example Scenario

How to Identify with Example Scenario

Find the text in bold to identify issues such as these in API specifications

How to Resolve with Example Scenario

Modify the text in bold to resolve issues such as these in API specifications
References:

More findings

All Findings