The verify field checks a secret code, and the server rate-limits by counting requests, not attempts. With aliases you pack dozens of verify attempts into one request, trying the whole space without the limit counting them.
A GraphQL explorer with a field that checks a short secret code. The server limits how much you can send.
You guessed the code in one request.
Why the solution worked
The limit counts requests while GraphQL executes many fields in one request, so aliases multiply the work without raising the request count. The fix is limiting query complexity, field count and depth, not just request count.
The root cause
The limit is per request while one request runs many fields. The root is not limiting query complexity and field repetition.
How the code is fixed
Limit query complexity and repeated-field count, not only the number of requests.
Vulnerable code
// Rate limit counts requests; one request can alias verify a hundred times.
rateLimit({ perRequest: true });
Safe code
// Cost-based limiting: cap total field count / complexity per request, and count each verify.
costLimit({ maxComplexity: 20, fieldCost: { verify: 1 } });
Impact in the real world
Alias batching bypasses rate limits and enables brute forcing and flooding in a single operation.
How defenders detect it
Defenders limit query complexity, repeated-field count and depth, and alert on requests with many calls to the same field.
Your workspace now has a Server logs tab: your own attack, as the defender saw it, with the alerting lines marked.
Solved with the walkthrough. Put it aside and solve again to earn the feather.