In-depth lesson · GraphQL authorization gaps
Root causes
Every point the GraphQL authorization gaps reports back under this heading, best-backed first, each with the reports it is seen in.
-
Resolvers repeatedly trusted client-supplied identifiers without checking that the object belonged to the caller.
Seen in 6 reports
-
UUIDs and global identifiers were treated as sufficient proof of access.
Seen in 3 reports
-
The model and version resolvers did not check that the caller could view the model's project.
Seen in 2 reports
-
The user lookup resolver did not check that the requested user matched the authenticated caller.
Seen in 1 report
-
$250 Medium
-
-
The snippet resolver did not apply the same privacy checks as the web interface.
-
The archive mutation did not check the caller's permission over the target scope, and the error response was misleading.
Seen in 1 report
-
The app listing resolver did not filter results by the requesting user's permissions.
Seen in 1 report
-
The mod log resolver looked up logs by the supplied subreddit name without checking that the caller moderates it.
Seen in 1 report
-
The link update mutation trusted the client-supplied link identifier without checking ownership.
Seen in 1 report
-
The resolver trusted client-supplied owner name and ID and used the server's stored GitHub token without checking the owner matched the authenticated shop.
Seen in 1 report
-
The lock mutation relied only on the report ID being valid and did not check the caller's permission.
Seen in 1 report
-
The destroy conversation mutation looked up the conversation by identifier without checking it belonged to the caller.
Seen in 1 report
-
The billing operations did not check permission on the invoice ID, which was a predictable numeric value.
Seen in 1 report
-
The membership resolver did not verify that the caller still belonged to the organisation.
Seen in 1 report
-
The form details endpoint relied on the UUID as an access token and did not check permission to view private or inactive forms.
Seen in 1 report
-
The node lookup resolved objects by identifier without checking whether the caller could view the private programme.
-
The mutation checked that the user could read the policy project but not that they could assign it.
Seen in 1 report
-
GraphQL resolvers did not mirror the privacy checks enforced by the web interface.