Skip to content
Account takeover Write-up Intermediate

Advanced Web/API Bug Bounty Write-Ups — 2026 ( part-1 )

The write-up describes a GraphQL endpoint that lets a single HTTP request carry thousands of aliased mutations, so the per-request rate limiter is bypassed, and the password-reset OTP verification mutation lacks a lockout after failed attempts. An attacker could brute-force a victim's four-digit OTP in one batched request and take over the account.

medium.com

Published on medium.com

Severity: Critical (CVSS 9.8) | CWE: CWE-639 (Authorization Bypass Through User-Controlled Key), CWE-307 (Improper Restriction of Excessive Authentication Attempts)

LAWCY official, on medium.com

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 counted HTTP requests instead of GraphQL operations, and the OTP-verify mutation had no failed-attempt lockout, unlike the deprecated REST endpoint.

Impact

Full account takeover of any user, including admin and support accounts, with no user interaction required.

What the attacker needed

A free account; victim's email address known; no victim interaction

The fix

The rate limit should count GraphQL operations rather than raw HTTP requests, the OTP lockout logic should be shared by both the REST and GraphQL resolvers, and OTP length and backoff should be increased.

How it was found

  1. Trigger a password reset for the victim account.
  2. Send one batched request that aliases the OTP-verify mutation many times to sweep all four-digit codes.
  3. Note that exactly one alias returns a non-null reset token.
  4. Use that token to set a new password.
  5. Log in as the victim.

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.

When you reset a password, the site sends a short code and asks you to type it in. Normally a site blocks you after a few wrong guesses, but here the limit counted web requests rather than the number of guesses inside them, and one request could hold thousands of guesses. Because the code was only four digits, trying every possibility in one go found the right one.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.