Skip to content
Account takeover Write-up Intermediate

Rate Limit Bypass Leads to 0 Click ATO

A replica subdomain shared the same database as the main site but lacked rate limiting on password reset requests. An attacker could brute-force the 6-digit reset code to take over any account.

ZeroXUF Follow

Published on zeroxuf.medium.com

{{media:0}}

ZeroXUF, on zeroxuf.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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is a site the author refers to as redacted.com, a name used because the programme required the real host to stay private. The site offers user registration and login, and a password reset feature that sends a 6-digit code to the account's email address. The reset code is valid for 10 minutes.

The bug is a rate limit bypass that the author links to account takeover: with no throttling, a 6-digit reset code could be brute forced.

Setup

  1. A normal account on redacted.com, created through the registration form.
  2. The password reset flow, which emails a 6-digit code.
  3. Subdomain discovery against the target, which turned up a second host that mirrored the original site's design and template.
  4. An account on that second host, used to compare behaviour with the original.

No special tooling is described beyond the browser and the ability to inspect and replay requests.

Finding it

The author started with the obvious attack: brute forcing the password. After roughly 20 attempts the request was blocked and a CAPTCHA was demanded.

ZeroXUF
ZeroXUF From the original on zeroxuf.medium.com

Because the site sits behind Akamai's firewall, header tricks such as adding X-Forwarded-For were ruled out early, and the author looked for another way in.

Subdomain discovery produced a host that was an exact replica of the original in design and template. Creating an account there returned "Your email already exists", which suggested the two sites shared a database. To confirm it, the author created another account on the original site with a fresh email, then tried to register that same email on the replica and again got "Your email already exists". The conclusion was that the second host is an identical instance of the first and both use the same database.

Logging in on the replica, however, failed with a "Forbidden" error.

Comparing the login request on the replica with the login request on the original showed the requests were identical, but one header stood out:

HTTP
X-Apollo-Operation-Name: Login

That header worked on the original site and did not work on the replica. During the password reset flow on the original site, the same header carried a different value, ResetPass, instead of Login. The author speculated that login and password reset are handled by separate services, and tried using the reset service in the login section.

Exploitation

Step 1: swap the operation name on login

The login request was replayed against the replica with the header changed to:

HTTP
X-Apollo-Operation-Name: ResetPass

With that header the login succeeded, and the account information shown on the replica matched what the original site displayed, confirming the shared database.

Step 2: reach the password reset endpoint

Using the same ResetPass value, a request was sent to the ForGetPassword endpoint to have a code emailed. The code was sent. Under normal circumstances that endpoint answers "forbidden" and the Login service is used for password reset, which is what had blocked testing of the feature before.

The author's reading is that the replica is a testing site for developers rather than something meant for regular users.

Step 3: reset the password

With the header changed from Login to ResetPass, password resets could be performed, and the password was successfully reset.

Step 4: brute force without a limit

No matter how many reset requests were sent, no rate limit appeared. The 6-digit code expires after 10 minutes, but with no throttling that is not an obstacle: the range from 000000 to 999999 can be split into 10 parts (the author notes this is only an example and it could be more or fewer) and attacked from 10 different instances at once, as in a real attack, to take over the victim's account.

Root cause

The author speculated that login and password reset are handled by separate services, and that the header value influenced which one responded. Sending ResetPass let login and password reset work on the replica, and no rate limit was encountered there. Because the replica shares the original's database, the weaker protections on the replica apply to real accounts. The original site's Akamai-backed throttling never comes into play, since the attack goes through the second host.

Impact

With no rate limit, the author notes an attacker could split the 6-digit range across instances and brute force within the 10-minute lifetime. Success means full account takeover, with access to the account's sensitive information. The attack requires the replica host to be reachable and to keep accepting the swapped operation name; the author's own testing showed login and reset both working that way.

Fix

The report does not describe what the programme changed.

Variants to test

  1. Look for GraphQL-style operation name headers (X-Apollo-Operation-Name and similar) and try the value used by a different feature, such as a reset or verification flow. A positive result is a request that succeeds where it previously returned "Forbidden".
  2. Enumerate subdomains and compare registration behaviour with the main site. If the same email is rejected as already existing on both, the databases are likely shared, and the weaker host becomes the target.
  3. On any host that mirrors production, test the password reset endpoint for throttling by sending many code attempts. A positive result is a long run of attempts with no block or CAPTCHA.
  4. Where a short numeric code expires quickly, check whether parallel attempts from several sources are accepted within the expiry window; if they are, the code space can be covered before it rotates.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

A security researcher found a way to take over other people's accounts on a website without the account owner doing anything at all. The site had a password reset feature: you type your email address, the site emails you a 6-digit code, and you type that code back to prove the account is yours. If an attacker can guess that code, they can reset the password and walk into the account.

Normally guessing is impossible because the site blocks you after a few wrong tries and asks you to solve a CAPTCHA (a small puzzle meant to prove you are a human). The researcher found a second copy of the same website that shared the same user database, and on it password reset requests were not rate limited. By sending a special header (a small piece of extra information attached to a web request) with a different value, the attacker could use the reset feature on that second site and try codes as many times as they liked. With no limit, the author notes the 6-digit code could be brute forced, which would allow the account to be taken over.

This kind of attack is called a zero click account takeover: the victim does not have to click a link, open an email or install anything. The author frames the attack as needing no action from the victim.

Background concepts, from zero

Before walking through the steps, here are the ideas you need. Each one is explained as if you have never seen it before.

  • Website and web request: when you open a page or submit a form, your browser sends a message to a server (a computer that runs the site). The server sends a reply. Developers can look at these messages using their browser's developer tools, usually opened with F12.
  • Endpoint: a specific address on a server that does one job, such as /login or /reset. Think of it as a counter in a shop: each counter handles one kind of request.
  • API: the set of endpoints and rules a site exposes so that programs (and the site's own pages) can talk to it. It is like a restaurant menu: it lists what you can order and how to order it.
  • Header: extra information attached to a request, separate from the main content. Headers carry things like which browser you use, or which language you prefer. Some headers are set by the browser automatically; others can be added by hand.
  • Cookie or token: a small piece of data the server gives your browser after you log in, so it can recognise you on the next request. It works like a wristband at an event: show it and you get back in without proving who you are again.
  • Brute force: trying many possibilities one after another until one works. For a password, that means guessing common passwords; for a 6-digit code, it means trying 000000, 000001, and so on.
  • Rate limit: a rule that says "you may only try this N times in a given period". It is the bouncer at the door who stops you after too many attempts.
  • CAPTCHA: a puzzle (often distorted letters or a picture grid) that is easy for a human and hard for a program. It is a second bouncer, used when the first one is not enough.
  • Subdomain: a smaller name under a main domain, such as shop.example.com next to example.com. Companies often run several subdomains for different purposes.
  • Firewall: a protective layer in front of a site that filters traffic. Akamai is a well-known provider of this kind of protection.
  • Database: the place where a site stores its data, including user accounts. If two sites share a database, an account created on one exists on the other.
  • Account takeover (ATO): when an attacker gains control of someone else's account.
  • POC: proof of concept, a small demonstration that shows the bug is real.
  • Triager: the person at a bug bounty programme who reviews a report and decides whether it is valid.
  • Bug bounty: a programme where companies pay researchers for finding and reporting security problems.

The target and the feature

The site is called redacted.com in the report because the programme required the real name to stay private. It offers three things:

  1. User registration, so you can create an account.
  2. Login, so you can sign in.
  3. Password reset, which emails a 6-digit code to the address on the account. The code is valid for 10 minutes.

The bug is a rate limit bypass that leads to a zero click account takeover. The attacker needs only the victim's email address and the ability to guess a 6-digit code without being throttled.

Setup

To reproduce the work, the researcher needed:

  1. A normal account on redacted.com, created through the registration form.
  2. The password reset flow, which emails a 6-digit code.
  3. Subdomain discovery against the target, which turned up a second host that mirrored the original site's design and template.
  4. An account on that second host, used to compare behaviour with the original.

No special tooling is described beyond the browser and the ability to inspect and replay requests. Replaying a request means sending the same message again, possibly with small changes, to see how the server reacts.

Finding it

The researcher started with the obvious attack: brute forcing the password. After roughly 20 attempts the request was blocked and a CAPTCHA was demanded.

ZeroXUF
ZeroXUF From the original on zeroxuf.medium.com

The image is captioned as the blocked request that followed those attempts.

Because the site sits behind Akamai's firewall, header tricks such as adding X-Forwarded-For were ruled out early. X-Forwarded-For is a header that can claim which address a request came from; some sites trust it, and attackers use it to pretend to be many different people. Because the site sits behind Akamai's firewall, the researcher decided to skip such tests and think of another approach.

Subdomain discovery produced a host that was an exact replica of the original in design and template. Creating an account there returned "Your email already exists", which suggested the two sites shared a database. To confirm it, the researcher created another account on the original site with a fresh email, then tried to register that same email on the replica and again got "Your email already exists". The conclusion was that the second host is an identical instance of the first and both use the same database.

Logging in on the replica, however, failed with a "Forbidden" error. "Forbidden" means the server understood the request but refused to carry it out.

Comparing the login request on the replica with the login request on the original showed the requests were identical, but one header stood out:

HTTP
X-Apollo-Operation-Name: Login

Line by line:

  • X-Apollo-Operation-Name is the name of the header. The X- prefix is a convention for custom headers, and Apollo is the name of a well-known tool for building APIs. The header tells the server which operation the request is for.
  • Login is the value. It says "this request is a login".

That header worked on the original site and did not work on the replica. During the password reset flow on the original site, the same header carried a different value, ResetPass, instead of Login. The researcher speculated that login and password reset are handled by separate services, and tried using the reset service in the login section. A service here means a separate piece of software behind the site, each responsible for one job.

Exploitation

Step 1: swap the operation name on login

The login request was replayed against the replica with the header changed to:

HTTP
X-Apollo-Operation-Name: ResetPass

Line by line:

  • The header name is unchanged. The server still reads the same field.
  • The value is now ResetPass instead of Login. The request is asking the server to treat this login attempt as if it belonged to the password reset service.

With that header the login succeeded, and the account information shown on the replica matched what the original site displayed, confirming the shared database. In other words, the replica let the researcher in only when the request claimed to be a reset, not a login.

Step 2: reach the password reset endpoint

Using the same ResetPass value, a request was sent to the ForGetPassword endpoint to have a code emailed. The code was sent. Under normal circumstances that endpoint answers "forbidden" and the Login service is used for password reset, which is what had blocked testing of the feature before.

The researcher's reading is that the replica is a testing site for developers rather than something meant for regular users. A testing site is a copy used to try changes before they reach the real users; it often has weaker protections because the developers assume nobody outside will find it.

Step 3: reset the password

With the header changed from Login to ResetPass, password resets could be performed, and the password was successfully reset. This is the moment the bug becomes an account takeover: the attacker can set a new password on an account they do not own.

Step 4: brute force without a limit

No matter how many reset requests were sent, no rate limit appeared. The 6-digit code expires after 10 minutes, but with no throttling that is not an obstacle: the range from 000000 to 999999 can be split into 10 parts (the researcher notes this is only an example and it could be more or fewer) and attacked from 10 different instances at once, as in a real attack, to take over the victim's account.

Why this works: a 6-digit code has one million possible values. If you can only try a handful before being blocked, guessing is hopeless. If you can try thousands per minute, and you split the work across several machines so each one stays under any per-machine limit, the whole range can be covered inside the 10-minute window. The code expiring quickly does not help the victim, because the attacker does not need the code to stay valid for long, only long enough to try every value.

Root cause

The author speculated that login and password reset are handled by separate services, and that the header value influenced which one responded. "Client-supplied" means the value comes from the browser, so the attacker controls it. Sending ResetPass let login and password reset work on the replica, and no rate limit was encountered there. Because the replica shares the original's database, the weaker protections on the replica apply to real accounts. The original site's Akamai-backed throttling never comes into play, since the attack goes through the second host.

A useful comparison: the main entrance has a guard who checks your ticket, but there is a side door with no guard, and the side door opens into the same building.

Impact

With no rate limit, the author notes an attacker could split the 6-digit range across instances and brute force within the 10-minute lifetime. Success means full account takeover, with access to the account's sensitive information. The attack requires the replica host to be reachable and to keep accepting the swapped operation name; the researcher's own testing showed login and reset both working that way.

Fix

The report does not describe what the programme changed.

Variants to test

If you want to look for similar bugs on sites you are allowed to test, here are the same ideas in a checklist:

  1. Look for GraphQL-style operation name headers (X-Apollo-Operation-Name and similar) and try the value used by a different feature, such as a reset or verification flow. A positive result is a request that succeeds where it previously returned "Forbidden".
  2. Enumerate subdomains and compare registration behaviour with the main site. If the same email is rejected as already existing on both, the databases are likely shared, and the weaker host becomes the target.
  3. On any host that mirrors production, test the password reset endpoint for throttling by sending many code attempts. A positive result is a long run of attempts with no block or CAPTCHA.
  4. Where a short numeric code expires quickly, check whether parallel attempts from several sources are accepted within the expiry window; if they are, the code space can be covered before it rotates.

Glossary

  • Akamai: a company that provides a protective firewall layer in front of websites.
  • API: the set of endpoints and rules a site exposes so that programs and pages can talk to it.
  • CAPTCHA: a puzzle that is easy for a human and hard for a program, used to slow down automated attempts.
  • Client-supplied: a value that comes from the browser, so the attacker controls it.
  • Cookie or token: a small piece of data the server gives your browser after login so it can recognise you next time.
  • Endpoint: a specific address on a server that does one job.
  • Forbidden: an error meaning the server understood the request but refused to carry it out.
  • GraphQL: a way of building APIs where requests name the operation they want; the operation name can appear in a header.
  • Header: extra information attached to a web request, separate from the main content.
  • POC: proof of concept, a small demonstration that shows a bug is real.
  • Rate limit: a rule that limits how many attempts you may make in a given period.
  • Rate limit bypass: getting around that rule, for example by using a different host or a different service.
  • Replay: sending the same request again, possibly with small changes, to see how the server reacts.
  • Service: a separate piece of software behind a site, each responsible for one job.
  • Testing site: a copy of a site used by developers to try changes before they reach real users.
  • Zero click account takeover: an account takeover that needs no action from the victim, only knowledge of their email address.

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.