$7,200 for One Request, Thousands of Guesses: Brute-Forcing MFA T
The MFA verification rate limiter counted HTTP requests rather than individual GraphQL operations, so an attacker could batch hundreds of aliased verifyMfa mutations into one request and guess many six-digit codes without triggering the five-attempt lockout. With a valid password already known, this reduced the second factor to a search space exhaustible through automated batched requests.
Rate limiting is one of those controls that looks solid in a screenshot and falls apart the moment you understand what it’s actually counting. This bug didn’t require breaking the rate limiter at all — it required realizing it was counting the wrong thing, and that GraphQL, as a query language, gives you a completely…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The rate limiter was applied per HTTP request rather than per GraphQL operation, and the GraphQL endpoint allowed unbounded batching of aliased mutations.
Impact
An attacker who already has a valid password could bypass MFA brute-force protection and exhaust or meaningfully sample a six-digit code space through automated batched requests.
What the attacker needed
A valid password for the target account; access to the GraphQL endpoint; ability to send batched GraphQL mutations
The fix
The report recommends capping GraphQL batch sizes, rate-limiting by operation count rather than request count, and applying operation-specific limits to sensitive mutations; the text says Kestrel capped batch sizes platform-wide within days and later added a per-operation rate-limiting fix for the…
How it was found
- Send wrong codes to the REST MFA endpoint and observe a block after the sixth attempt.
- Find the GraphQL endpoint by checking the frontend's bundled JavaScript for API base URLs.
- Send the same mutation directly to GraphQL and confirm the same five-attempt limit applies.
- Batch many aliased verifyMfa mutations with different guessed codes into one HTTP request.
- Observe that all batched attempts resolve independently with no lockout.
- Include the known correct code among wrong guesses in a final batch and confirm a valid session token is returned.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Two-factor authentication asks for a short code after your password, and a rate limiter is supposed to stop someone guessing that code by blocking them after a few wrong tries. Here the limiter only counted web requests, not the individual code guesses inside them, and the GraphQL API let many guesses ride inside one request. So an attacker who already had the password could try hundreds of codes per request without being locked out.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.