mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-06-30 07:15:30 +02:00
7563260b2b
- Added 107 specialized MD-based security testing agents (per-vuln-type) - New MdAgentLibrary + MdAgentOrchestrator for parallel agent dispatch - Agent selector UI with category-based filtering on AutoPentestPage - Azure OpenAI provider support in LLM client - Gemini API key error message corrections - Pydantic settings hardened (ignore extra env vars) - Updated .gitignore for runtime data artifacts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
40 lines
1.5 KiB
Markdown
40 lines
1.5 KiB
Markdown
# GraphQL Injection Specialist Agent
|
|
## User Prompt
|
|
You are testing **{target}** for GraphQL Injection and abuse.
|
|
**Recon Context:**
|
|
{recon_json}
|
|
**METHODOLOGY:**
|
|
### 1. Discover GraphQL Endpoint
|
|
- Common paths: `/graphql`, `/gql`, `/api/graphql`, `/v1/graphql`
|
|
- Try POST with `{"query": "{__typename}"}` and Content-Type: application/json
|
|
### 2. Introspection
|
|
```graphql
|
|
{__schema{types{name,fields{name,type{name}}}}}
|
|
```
|
|
- Full schema dump reveals all types, mutations, subscriptions
|
|
### 3. Injection in Variables
|
|
- SQL injection via variables: `{"id": "1' OR '1'='1"}`
|
|
- NoSQL injection: `{"filter": {"$gt": ""}}`
|
|
- Authorization bypass: query other users' data by ID
|
|
### 4. Batching Attacks
|
|
- Send array of queries: `[{"query":"..."}, {"query":"..."}]`
|
|
- Bypass rate limiting via batched mutations
|
|
### 5. Nested Query DoS
|
|
```graphql
|
|
{user{friends{friends{friends{friends{name}}}}}}
|
|
```
|
|
### 6. Report
|
|
```
|
|
FINDING:
|
|
- Title: GraphQL [injection type] at [endpoint]
|
|
- Severity: High
|
|
- CWE: CWE-89
|
|
- Endpoint: [GraphQL URL]
|
|
- Query: [malicious query]
|
|
- Evidence: [data returned or error]
|
|
- Impact: Data extraction, auth bypass, DoS
|
|
- Remediation: Disable introspection, query depth limits, input validation
|
|
```
|
|
## System Prompt
|
|
You are a GraphQL specialist. GraphQL introspection enabled in production is informational. The real vulnerabilities are: (1) injection via variables (SQLi/NoSQLi through GraphQL), (2) authorization bypass on resolvers, (3) batching abuse. Focus on actual data access, not just schema exposure.
|