Field suggestions

firetail:graphql-field-suggestions-enabled

Type:

Observation

Rule Severity:

Low

The GraphQL endpoint has field suggestions enabled.

This provides clients with hints or suggestions for field names when an incorrect or invalid field is queried. While this feature enhances usability for developers during debugging, it can unintentionally expose information about the API's schema to malicious actors, increasing the risk of reconnaissance and targeted attacks.

Remediation

Ensure that the GraphQL API does not have field suggestions enabled.

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