Skip to content

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.

Back to the lesson 1 to 18 of 18
  1. Resolvers repeatedly trusted client-supplied identifiers without checking that the object belonged to the caller.

    Seen in 6 reports
  2. UUIDs and global identifiers were treated as sufficient proof of access.

    Seen in 3 reports
  3. The model and version resolvers did not check that the caller could view the model's project.

    Seen in 2 reports
  4. The user lookup resolver did not check that the requested user matched the authenticated caller.

    Seen in 1 report
  5. The snippet resolver did not apply the same privacy checks as the web interface.

    Seen in 1 report
  6. The archive mutation did not check the caller's permission over the target scope, and the error response was misleading.

    Seen in 1 report
  7. The app listing resolver did not filter results by the requesting user's permissions.

    Seen in 1 report
  8. The mod log resolver looked up logs by the supplied subreddit name without checking that the caller moderates it.

    Seen in 1 report
  9. The link update mutation trusted the client-supplied link identifier without checking ownership.

    Seen in 1 report
  10. 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
  11. The lock mutation relied only on the report ID being valid and did not check the caller's permission.

    Seen in 1 report
  12. The destroy conversation mutation looked up the conversation by identifier without checking it belonged to the caller.

    Seen in 1 report
  13. The billing operations did not check permission on the invoice ID, which was a predictable numeric value.

    Seen in 1 report
  14. The membership resolver did not verify that the caller still belonged to the organisation.

    Seen in 1 report
  15. 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
  16. The node lookup resolved objects by identifier without checking whether the caller could view the private programme.

    Seen in 1 report
  17. The mutation checked that the user could read the policy project but not that they could assign it.

    Seen in 1 report
  18. GraphQL resolvers did not mirror the privacy checks enforced by the web interface.

    Seen in 1 report