Products

Solutions

Resources

Search for API Security Tests

/

/

Graphql Field Suggestions Enabled

Graphql Field Suggestions Enabled

GraphQL field suggestions provide auto-complete suggestions for available fields, enabling attackers to gain insights into data structures, potentially leading to data exposure and targeted attacks on the API.

Security Misconfiguration (SM)

"The 'Graphql Field Suggestions Enabled' test focuses on identifying a security misconfiguration in the GraphQL implementation. By enabling GraphQL field suggestions, an attacker can retrieve the GraphQL schema, exposing critical information. This misconfiguration falls under the Security Misconfiguration (SM) category, with a severity level of HIGH. The test specifically targets APIs with URLs containing 'graphql' using regular expression filtering." "The test executes a single request, modifying the URL to ensure it includes 'graphql.' Additionally, it replaces the request body with a GraphQL introspection query to retrieve schema details. The response payload is then validated to check if it contains either the phrases 'Did you mean' or 'Expected value of type.'" "Tags associated with this test include Business logic, OWASP top 10, and HackerOne top 10. For more information, reference the provided link on why disabling GraphQL introspection in production is recommended.""

"The 'Graphql Field Suggestions Enabled' test focuses on identifying a security misconfiguration in the GraphQL implementation. By enabling GraphQL field suggestions, an attacker can retrieve the GraphQL schema, exposing critical information. This misconfiguration falls under the Security Misconfiguration (SM) category, with a severity level of HIGH. The test specifically targets APIs with URLs containing 'graphql' using regular expression filtering." "The test executes a single request, modifying the URL to ensure it includes 'graphql.' Additionally, it replaces the request body with a GraphQL introspection query to retrieve schema details. The response payload is then validated to check if it contains either the phrases 'Did you mean' or 'Expected value of type.'" "Tags associated with this test include Business logic, OWASP top 10, and HackerOne top 10. For more information, reference the provided link on why disabling GraphQL introspection in production is recommended.""

Impact of the vulnerability

Impact of the vulnerability

Enabling GraphQL field suggestions exposes the GraphQL schema, allowing attackers to gain insight into the API structure, potentially leading to targeted attacks and unauthorized access to sensitive data.

Enabling GraphQL field suggestions exposes the GraphQL schema, allowing attackers to gain insight into the API structure, potentially leading to targeted attacks and unauthorized access to sensitive data.

How this template works

APIs Selection

The template uses a regular expression filter to select APIs with URLs containing the word "graphql". This ensures that only relevant APIs are targeted for the security test.

Execute request

The template executes a single request by modifying the URL to include "graphql" and replaces the request body with a GraphQL introspection query. This query retrieves schema details from the API.

Validation

The template validates the response payload to check if it contains either the phrases "Did you mean" or "Expected value of type". If either of these phrases is present, it indicates a potential security misconfiguration in the GraphQL implementation.

Frequently asked questions

What is the purpose of the "Graphql Field Suggestions Enabled" test

How does the test identify the security misconfiguration

What is the impact of enabling GraphQL field suggestions

What is the severity level of this security misconfiguration

What are the tags associated with this test

Are there any references or resources for further information on this test

Loved by security teams!

Loved by security teams!

Product Hunt Badge

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Rippling Company logo

Security team,

Rippling

Suggest API security tests

Suggest API security tests

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.