FixVibe

// 探测 / 聚焦

GraphQL 深度轰炸和批量绕过

GraphQL 的灵活性也是它的脆弱点——深度炸弹、别名批处理、字段建议泄露。

概要

GraphQL's pitch is power for the client: ask for exactly the data you need, in any shape, in one round trip. The flip side is that 'in any shape' includes shapes the server didn't design for — recursive queries that fetch exponential data, alias batching that turns one HTTP request into a hundred logical operations, introspection that publishes the entire schema. Each of those features has a defensible motivation in the GraphQL spec; each is also a vulnerability vector when the server doesn't enforce limits. Modern GraphQL servers (Apollo Server 4+, Yoga, Hasura) ship reasonable defaults, but plenty of older deployments still ship with introspection on, no depth limit, and no per-alias rate limiting.

工作原理

GraphQL weaknesses appear when schema access, query cost, or resolver authorization is too permissive. Attackers can use the API's flexibility to discover data or stress expensive paths.

影响范围

DoS via depth bomb is straightforward — server falls over from one expensive request, or from a small number of repeated ones. Auth rate-limit bypass via alias batching turns 'we limit logins to 5/min' into 'we limit batches of 100 logins to 5/min,' i.e., 500/min effective. Schema disclosure via introspection or field suggestions is mostly recon impact, but combined with authorization mistakes it becomes the recipe for surgical data extraction. In multi-tenant deployments, knowing the exact schema lets the attacker craft tenant-traversal queries.

// what fixvibe checks

What FixVibe checks

FixVibe checks this class with verified-domain active testing that is bounded, non-destructive, and evidence-driven. Public reports describe the affected surface and remediation. For check-specific questions about exact detection heuristics, active payload details, or source-code rule patterns, contact support@fixvibe.app.

铁壁防御

Set a max query depth — 8 or 10 levels is generous for legitimate use cases and tight enough to defeat exponential queries. Use libraries like `graphql-depth-limit`. Add complexity analysis (`graphql-cost-analysis`, `graphql-rate-limit`) that scores each query and rejects above a threshold — depth alone misses some cases. Disable field-suggestion responses in production (Apollo: `formatError` to strip suggestions; Yoga: maskedErrors plugin). Disable introspection in production (Apollo: `introspection: false` in config). Apply rate limiting per-alias, not per-request — each aliased login mutation should count as a separate operation against the limiter. Cap query body size at the HTTP layer — most legitimate queries fit in 8KB; a 1MB query is suspicious. For mutations, require an `Idempotency-Key` so the same operation can't be replayed in batches.

// 在你自己的应用上跑一遍

放心继续发布,FixVibe 持续帮你看守风险。

FixVibe 像攻击者一样对你的应用公开面进行压力测试 —— 无代理、无安装、无信用卡。我们持续研究新的漏洞模式,并把它们转化成实用检查和可直接用于 Cursor、Claude、Copilot 的修复方案。

主动探测
103
本类别中触发的测试
模块
27
专属 主动探测 检查
每次扫描
384+
跨所有类别的测试
  • 免费 —— 无需信用卡,无需安装,无需 Slack 通知
  • 只需粘贴 URL —— 我们爬取、探测、生成报告
  • 按严重程度分级,去重至只剩信号
  • 最新 AI 修复提示词,可直接粘贴到 Cursor、Claude、Copilot
运行免费扫描

// 最新检查 · 实用修复 · 安心发布

GraphQL 深度轰炸和批量绕过 — 漏洞聚焦 | FixVibe · FixVibe