AGENT SKILL

webapp-api-graphql-assessment

Webapp Api Graphql Assessment.

适用职业开发工程师
使用场景后端与接口
License 许可
MIT
最近更新
2026-09-01
Stars
★ 0
Forks
0

01 前言 Front Matter

name
webapp-api-graphql-assessment
domain
cybersecurity
description
Webapp Api Graphql Assessment.

02 资源文件 1

03 SKILL.md 正文

--| | Introspection enabled in production | Medium | VULNERABLE | | Missing field-level authorization | High | VULNERABLE | | No query depth limit | High | VULNERABLE | | Batch query rate limit bypass | High | VULNERABLE | | GraphiQL IDE exposed | Low | VULNERABLE | | SQL injection in user query | Critical | VULNERABLE | | CSRF on mutations | Medium | PASS (custom header required) |

Critical: SQL Injection via user Query

Location: user(name: String) query argument Payload: { user(name: "' OR 1=1--") { id email role } } Impact: Full database read access via GraphQL interface

High: Batch Authentication Bypass

Location: POST /graphql (array body) Payload: Array of 100 login mutations in single request Impact: Rate limiting bypassed; 100 password attempts per HTTP request

Recommendation

  1. Disable introspection in production environments
  2. Implement field-level authorization on all sensitive fields
  3. Set query depth limit (max 7-10 levels)
  4. Set query complexity limit and cost analysis
  5. Disable or rate-limit batch queries
  6. Remove GraphiQL/Playground from production
  7. Parameterize all database queries in resolvers

04 同仓库更多 Skills