graphql-methodology

Identify GraphQL endpoints and test introspection, injection, and authorization bypass.

1.6k|234|Updated Dec 7, 2019
One-click install
npx skills add https://github.com/wgpsec/AboutSecurity --skill graphql-methodology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graphql-methodology
Source: https://github.com/wgpsec/AboutSecurity/tree/main/skills/exploit/graphql-methodology
Command: npx skills add https://github.com/wgpsec/AboutSecurity --skill graphql-methodology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GraphQL APIs frequently expose schemas and endpoints that allow attackers to enumerate types, fields, and potential misconfigurations. This Skill provides a structured methodology to discover GraphQL endpoints, enumerate schemas, detect introspection exposure, and assess injection and authorization bypass risks.

Core Features & Use Cases

  • End-to-end GraphQL assessment: identify /graphql endpoints, enumerate schema, and verify exposure of sensitive data.
  • Security testing techniques: test introspection availability, perform injection attempts, and explore permissions bypass scenarios.
  • Use Case: A tester identifies a GraphQL API, enumerates types and fields, and validates access controls with safe queries while avoiding data leakage.

Quick Start

Provide a minimal introspection check against the GraphQL endpoint and progressively extend queries to validate access controls.

Frequently Asked Questions about graphql-methodology

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test a GraphQL API for introspection and authorization bypass vulnerabilities?

To test a GraphQL API for introspection and authorization bypass, identify endpoints like /graphql, enumerate schemas, and validate access controls using safe, well-scoped queries to prevent data leakage during security testing.

What is GraphQL introspection and how does it expose sensitive schema data?

GraphQL introspection is a query mechanism allowing clients to retrieve schema types and fields. When enabled on public APIs, it exposes the entire schema structure, enabling testers to enumerate potential misconfigurations and sensitive data fields.

How to enumerate GraphQL schemas and validate access control safely?

Start with a minimal introspection check against the GraphQL endpoint, then progressively extend queries to validate access controls. Ensure schema enumeration and permission validation are performed with safe, well-scoped queries to avoid unintended data exposure.

Can I perform a GraphQL pentest on endpoints exposing /api/graphql or playground pages?

Yes, this methodology applies to services exposing /graphql, /api/graphql, or GraphQL playground pages with schema exposure. It structures the assessment to detect injection attempts, authorization bypass, and sensitive data exposure specific to those interfaces.

What are the limitations of testing GraphQL injection and authorization bypass with safe queries?

Testing with safe, well-scoped queries minimizes data leakage but may limit the depth of active injection attempts. The methodology ensures schema enumeration and access-control validation are thorough, yet inherently avoids destructive querying or aggressive data extraction.