-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e4b5da
commit 4b0ad03
Showing
6 changed files
with
115 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
==== Disabling introspection | ||
|
||
The GraphQL server framework should be instructed to disable introspection. This | ||
prevents any attempt to retrieve schema information from the server at runtime. | ||
|
||
Each GraphQL framework will have a different method of doing this, possibly | ||
including: | ||
|
||
* Changing a simple boolean setting. | ||
* Adding a middleware module to the request processing chain. | ||
* Adding a GraphQL validator that rejects introspection keywords. | ||
If introspection is required, it should only be made available to the smallest | ||
possible audience. This could include development environments, users with a | ||
specific right, or requests from a specific set of IP addresses. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
GraphQL introspection is a feature that allows client applications to query the | ||
schema of a GraphQL API at runtime. It provides a way for developers to explore | ||
and understand the available data and operations supported by the API. | ||
|
||
While this feature is useful, it also creates risks if not properly secured. | ||
|
||
=== What is the potential impact? | ||
|
||
An attacker can use introspection to identify all of the operations and data | ||
types supported by the server. This information can then be used to identify | ||
potential targets for attacks. | ||
|
||
==== Exploitation of private APIs | ||
|
||
Even when a GraphQL API server is open to access by third-party applications, it | ||
may contain APIs that are intended only for private use. Introspection allows | ||
these private APIs to be discovered. | ||
|
||
Private APIs often do not receive the same level of security rigor as public | ||
APIs. For example, they may skip input validation because the API is only | ||
expected to be called from trusted applications. This can create avenues for | ||
attack that are not present on public APIs. | ||
|
||
==== Exposure of sensitive data | ||
|
||
GraphQL allows for multiple related objects to be retrieved using a single API | ||
call. This provides an efficient method of obtaining data for use in a client | ||
application. | ||
|
||
An attacker may be able to use these relationships between objects to traverse | ||
the data structure. They may be able to find a link to sensitive data that the | ||
developer did not intentionally make available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
This vulnerability exposes information about all the APIs available on a GraphQL | ||
API server. This information can be used to discover weaknesses in the API than | ||
can be exploited. |