मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी5.4k · #14910

hunt-graphql

यह क्या करती है

यह स्किल GraphQL endpoints में टूटी ऑब्जेक्ट एक्सेस, बिना दायरे वाले mutations और फ़ील्ड-स्तर पर डेटा लीक जाँचती है। यह GraphQL API उजागर करने वाले ऐप्स के अधिकृत परीक्षण के लिए है।

कब इस्तेमाल करें

  • ✓जब कोई ऐप /graphql endpoint उजागर करता है और आप उसके एक्सेस नियंत्रण जाँचना चाहते हैं।
  • ✓जब कोई mutation दूसरे यूज़र या दूसरी टीम का डेटा बदल सकता हो।
  • ✓जब GraphQL क्वेरी ऐसे निजी फ़ील्ड लौटाती है जो सीमित होने चाहिए।

Skill का लिंक

https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-graphql/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/elementalsouls/Claude-BugHunter/blob/main/skills/hunt-graphql/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप हमारे अधिकृत परीक्षण में हमारी GraphQL API जाँच सकते हैं कि एक यूज़र दूसरे यूज़र के रिकॉर्ड पढ़ या बदल सकता है या नहीं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट स्कीमा का नक्शा बनाता है और अलग-अलग यूज़र खातों से क्वेरी और mutations परखता है। वह तुलना करता है कि हर खाता क्या देख या बदल सकता है, और एक्सेस की खामियाँ रिपोर्ट करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Crown Jewel Targets

GraphQL vulnerabilities are high-value because the attack surface is both broad and deep — a single endpoint can expose entire data models, privilege escalation paths, and cross-API state confusion. Highest payouts occur in:

  • Platform APIs (GitHub, Shopify, Stripe-tier targets) where GraphQL mutations interact with REST APIs managing the same resources
  • Race conditions between GraphQL mutations and REST endpoints where state synchronization is non-atomic — these hit medium-to-high severity reliably
  • Authorization persistence bugs where team/org/repo membership state is controlled by one API but readable/writable by another
  • B2B SaaS platforms where one tenant affecting another via schema traversal = critical
  • Internal admin GraphQL endpoints accidentally exposed to lower-privilege users

The GitHub reports demonstrate the crown jewel pattern: privilege that should be revoked persists because two APIs disagree on ground truth.


Attack Surface Signals

URL Patterns:

/graphql
/api/graphql
/v1/graphql
/query
/gql
/graph
/api/v2/graphql
/internal/graphql

Response Headers:

Content-Type: application/json  (with query body)
X-Request-Id + no REST-style path params = likely GraphQL

JavaScript Source Patterns:

// grep for these in JS bundles
"query {"
"mutation {"
"__typename"
"apollo"
"ApolloClient"
"graphql-tag"
"gql`"
"operationName"
"GRAPHQL_URI"

Tech Stack Signals:

  • Apollo Server/Client in JS bundles
  • Relay in React apps
  • graphene or strawberry (Python), graphql-ruby, gqlgen (Go), Lighthouse (Laravel)
  • POST requests with {"query": "..."} body shape in Burp history
  • __schema or __type in any response = confirmed GraphQL

Recon Sources:

  • github.com search: "graphql" site:target.com
  • Wayback Machine for /graphql paths
  • JS bundle scanning with LinkFinder or getallurls

Step-by-Step Hunting Methodology

  1. Discover the endpoint — spider JS bundles, check /graphql, /api/graphql, review Burp passive scan hits for application/json POST with query fields

  2. Test introspection — send the full introspection query. Even if blocked, try field-level enumeration:

    { __typename }
    

    If that returns, introspection may be partially blocked but the schema is discoverable

  3. Map the full schema — use InQL (Burp extension) or graphql-voyager to visualize relationships. Specifically look for:

    • Mutations that modify ownership, permissions, or membership
    • Mutations that mirror REST API functionality
  4. Identify REST/GraphQL overlap — document every resource that can be modified via BOTH REST and GraphQL. These dual-write surfaces are your RC targets.

  5. Test authorization boundaries per mutation — replay mutations as lower-privilege users. Does the server enforce the same authz as the equivalent REST call?

  6. Hunt cross-API state desync — find sequences where:

    • REST action should revoke access
    • GraphQL mutation re-grants or preserves it
    • Test the ordering: REST first → GraphQL → check state; then GraphQL first → REST → check state
  7. Test for persistent privilege after role/membership changes — remove a user via REST, then call the corresponding GraphQL mutation for that resource. Query current state via both APIs and compare.

  8. Probe for IDOR in node IDs — GraphQL global IDs often encode object type + ID. Swap IDs across object boundaries and across account contexts.

  9. Check batch query abuse — send arrays of operations to bypass rate limiting or amplify enumeration.

  10. Document the exact reproduction chain — for RC bugs, time-based steps must be reproducible deterministically.


Payload & Detection Patterns

Full Introspection Query:

{
  __schema {
    types {
      name
      fields {
        name
        type {
          name
          kind
        }
      }
    }
  }
}

Minimal Introspection Probe (bypass attempt):

{ __typename }

curl introspection test:

curl -s -X POST https://target.com/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{"query":"{ __schema { queryType { name } } }"}' | jq .

Field suggestion probe (bypass blind introspection blocks):

{ unknownField }

If response returns "Did you mean: [realFieldName]?" — schema is enumerable despite introsp

अक्सर पूछे जाने वाले सवाल

IDOR क्या है?

जब कोई ऐप ID बदलकर किसी ऑब्जेक्ट तक पहुँच देता है, बिना यह जाँचे कि वह ऑब्जेक्ट आपका है या नहीं।

क्या यह batching या क्वेरी लागत परखती है?

हाँ। स्किल में batching के दुरुपयोग और क्वेरी लागत सीमा की जाँच शामिल है।

क्या यह cross-tenant डेटा कवर करती है?

हाँ। स्किल उन मामलों को कवर करती है जहाँ एक tenant का डेटा दूसरे tenant से पहुँच में हो।

जानकारी

लेखक का मूल विवरण

Hunting skill for graphql vulnerabilities. Built from 12 public bug bounty reports across IDOR via node() / GID, mutation IDOR including AI/LLM features, cross-tenant IDOR, SSRF via argument, batching-DoS, query-cost-bypass, SQLi via argument, broken-object-level-authz, auth-bypass via unscoped mutations, and PII exposure from missing field-level authz. Use when hunting graphql on any target.

repo: elementalsouls/Claude-BugHunter

लोकप्रियता

GitHub स्टार
5.4k
रैंकिंग में स्थान
#14910
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

apk-redteam-pipeline

5.4k

यह आपके एजेंट को Android ऐप में सुरक्षा कमज़ोरियाँ परखने देती है: APK फ़ाइल ढूँढने और उसे decompile करने से लेकर उजागर secrets जाँचने तक।

कोडिंगसिक्योरिटी

bugcrowd-reporting

5.4k

यह आपके एजेंट को Bugcrowd पर बेहतर कमज़ोरी रिपोर्ट लिखने देती है, सही श्रेणी चुनते हुए और दायरे से बाहर वाली आपत्तियों का जवाब देते हुए।

कोडिंगसिक्योरिटी

cloud-iam-deep

5.4k

यह आपके एजेंट को अधिकृत सुरक्षा परीक्षण में जाँचने देती है कि मिली क्लाउड credential AWS, Azure या Google Cloud पर क्या-क्या एक्सेस कर सकती है।

कोडिंगसिक्योरिटी

enterprise-vpn-attack

5.4k

यह आपके एजेंट को अधिकृत परीक्षण में Cisco, Fortinet, Citrix और अन्य VPN उपकरणों की ज्ञात कमज़ोरियाँ जाँचने देती है।

कोडिंगसिक्योरिटी

मिलती-जुलती skills