DOS attack possible on Reset 2FA feature of #Hackerone
The reset two-factor authentication endpoint lacked rate limiting and did not verify that the email address belonged to the logged-in user. An attacker who knew a victim's email could repeatedly submit requests with wrong passwords, locking the victim out of their account permanently.
Published on medium.com
Follow
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.
Context
HackerOne is a bug bounty platform where researchers and customers hold accounts that can be protected with two-factor authentication (2FA). The platform exposes a "Reset Two-factor Authentication" flow, reachable from the sign-in process, that lets a user who has already passed the password step reset the second factor on their account. In the report, this flow is backed by a GraphQL endpoint that accepts an email address and a password.
The researcher, Lokesh Ranjan, found that this reset endpoint had no rate limiting, no IP restriction and no authorisation check tying the request to the account that had just authenticated. The result, as described, is an application-level denial of service: an attacker who knows a victim's email address can keep that victim's account locked out indefinitely.

Setup
Two accounts are used in the proof of concept:
- Victim:
[redacted] - Attacker:
[redacted]
Both accounts have two-factor authentication enabled. The only precondition the report states for the attack is that the attacker knows the victim's email address. The tooling is Burp Suite, using the proxy to intercept the reset request and the Intruder module to run the brute force. No versions are given.
Finding it
The "Reset Two-factor Authentication" request is sent from the 2FA page after a normal password login, and the attacker replaces the email in it with the victim's. Nothing on the server side binds that email to the session that just authenticated, and nothing throttles repeated attempts. That combination looked wrong for two reasons:
- A user who has already passed the initial password-based login should not be able to direct the reset flow at another user's email address.
- A password-checking endpoint with no rate limiting can be brute forced, and here each failed attempt has a side effect on the targeted account.
Exploitation
Step 1: Prepare both accounts
Two-factor authentication is enabled on both the victim and the attacker account.
Step 2: Sign in as the attacker
The attacker logs in to HackerOne with their own valid email address and password on the sign-in page:
https://hackerone.com/users/sign_in
Step 3: Reach the 2FA page
After the password step, the application redirects to the "Two-factor Authentication" page.
Step 4: Intercept the reset request
The attacker clicks "Reset Two-factor Authentication" and intercepts the resulting request in Burp Suite. The report does not reproduce the raw request; it only says the email is replaced with the victim's and a brute force payload is set on the password field.
Step 5: Point the request at the victim and arm Intruder
The intercepted request is sent to Intruder. The email is replaced with the victim's email address, and a brute force payload is set on the password field.
Step 6: Run the attack
The brute force is started from Intruder. Because there is no rate limiting, the attack runs without restriction, in the researcher's words "infinite times".
Step 7: The victim is locked out
The repeated failed attempts lock the victim's account. The attacker can keep the loop running, so the victim cannot access or unlock their own HackerOne account.
Step 8: Scale it
The same attack can be run simultaneously against tens or hundreds of users. The report attributes this to the absence of rate limiting, IP restriction and authorisation checks on the reset 2FA functionality.
The researcher notes that the "account unlock instruction" is of no help, because the brute force can run indefinitely and the victim's account keeps getting locked again.
Root cause
The report frames this as a violation of a security design principle. Once a user has passed the initial password-based login flow, the 2FA step must not let them submit another user's email address to the "Reset Two-factor Authentication" GraphQL endpoint. The endpoint accepts an arbitrary email and a password guess, performs no check that the email belongs to the authenticated session, and applies no rate limiting or IP restriction. The password check on that endpoint is therefore both brute-forceable and a lever for locking out any account whose email is known.
Existing defences did not stop it. The researcher demonstrated the attack live to the H1 team and showed that the WAF did not block the brute force and that the account was locked permanently with no user access. The report also points out that many H1 users' email addresses are publicly available on the site, so scraping the targets requires little effort.
Impact
Any malicious user on HackerOne who knows a victim's email address can permanently deny that victim access to their own account. The attack can be run against many users at once, and because the lockout is renewed by continued brute forcing, the victim has no way to recover access while the attack continues. The report describes the effect as disallowing any HackerOne user permanent access to their own account.
The researcher rated severity as Medium (5.0), with the weakness described as insecure design and no rate limiting in place. HackerOne closed the report as "informative". The researcher states that a live demo was performed with the H1 team and that, after reporting under the responsible disclosure programme and repeated follow-up, no action was taken.
Fix
The report suggests a simple mitigation: either implement API rate limiting and block the IP attempting the brute force, or do not allow a user in the "Reset two factor authentication" flow to send the request for any other user's email address. In the second case the request should result in an "unauthorized" HTTP response. The report does not state that any fix was applied.
Variants to test
- Password-checking endpoints reached after a first factor. Look for any endpoint that verifies a password or OTP after login and accepts an identifier (email, username, user ID) as a parameter. A positive result is that changing the identifier to another account still returns a password-validity response rather than an authorisation error.
- Account-lockout side effects. For each such endpoint, send repeated wrong passwords for a test account and watch for lockout messages or unlock emails. A positive result is that the target account becomes locked while the requests keep being accepted.
- Rate limiting and IP controls. Run the same request at increasing volume from one source and check for 429 responses, CAPTCHAs or blocks. A positive result is a long run of accepted requests with no throttling.
- WAF coverage. Repeat the brute force through the same path the application uses and observe whether the WAF intervenes. A positive result is that the WAF does not block the pattern.
- Email enumeration. Check whether the reset flow reveals whether an email is registered, through differing responses or timing. A positive result is a reliable difference between known and unknown addresses.
- Scraping exposure. Check whether user email addresses are publicly listed on profile or programme pages, which would make targets easy to collect.
What happened, in plain words
HackerOne is a website where security researchers and companies meet. Researchers look for bugs in software and report them, and companies pay for good reports. Everyone on the site has an account, and an account can be protected with a second lock on top of the password. That second lock is called two-factor authentication, or 2FA for short. Think of it like a bank card: the password is the card, and the 2FA code is the PIN you type at the machine. Even if someone steals the card, they still need the PIN.
HackerOne also offers a way to reset that second lock, in case you lose the device that produces your codes. You sign in with your password, land on a page that asks for your 2FA code, and from there you can choose "Reset Two-factor Authentication". Behind that button sits a small piece of software on HackerOne's servers that takes an email address and a password and processes the reset.
Lokesh Ranjan found that this reset step had three problems. It did not limit how many times you could try. It did not restrict which network address the requests came from. And it did not check that the email address in the request belonged to the person who had just signed in. Put together, that means anyone who knows your email address can keep hammering the reset step with wrong passwords until your account gets locked, and keep it locked for as long as they want. The report calls this a denial of service: not stealing your data, but stopping you from getting in.

The author of the report is Lokesh Ranjan, and the article was published on Medium.
The pieces you need to know
Before walking through the attack, here are the ideas it relies on, explained from scratch.
An account and a password. When you sign up somewhere, you pick an email address and a password. The site stores a scrambled version of the password so that even the site's staff cannot read it. When you sign in, the site scrambles what you typed and compares the two.
Two-factor authentication (2FA). A second proof that you are you. Usually a six-digit code from a phone app, or a code sent by text message. The password is "something you know"; the code is "something you have". A criminal who has your password still cannot get in without the code.
A reset flow. A sequence of pages and requests that lets you recover access when you lose your second factor. You prove you still know the password, and the site lets you set up a new second factor.
An API and an endpoint. A website is not only pages you look at. Behind the scenes, the page in your browser talks to the server by sending small messages, and the server sends answers back. That conversation is the API. Each address the messages go to is called an endpoint. Think of a restaurant: the menu is the API, and each dish on it is an endpoint. You ask for dish number 7, the kitchen makes it and sends it out. You never walk into the kitchen yourself.
GraphQL. A style of API where the request says exactly which pieces of information it wants back, a bit like filling in a form with tick boxes instead of accepting a fixed set menu. The report says the reset 2FA feature is backed by a GraphQL endpoint that accepts an email address and a password.
A request and a response. A request is the message your browser sends ("please reset the 2FA for this email, here is a password"). A response is what comes back ("done", "wrong password", "not allowed").
A parameter or field. A named slot inside a request. If a request is a form, the fields are the boxes you fill in. Here the two boxes that matter are the email and the password.
Rate limiting. A cap on how often someone may do something in a given time. Like a ticket machine that only sells one ticket per person per minute. Without it, a computer can send thousands of requests per second.
Brute force. Trying many passwords in a row, quickly, hoping one is right. A person could never type fast enough, but a program can. Rate limiting is the usual defence: after a few wrong tries, the site slows you down or stops you.
Account lockout. A safety feature: after too many wrong passwords, the site locks the account so that even the real owner cannot sign in until it is unlocked, often by email. It is meant to protect you from someone guessing your password. Here it becomes the weapon.
Denial of service (DoS). Making a service unusable for its real users, without necessarily breaking into it. Imagine someone standing at a shop door and repeatedly pulling it shut as customers try to enter. Nobody steals anything, but nobody gets in either. When many machines do it at once it is called distributed denial of service, DDoS. This report describes an application-level DoS: the attack works through the application's own features rather than by flooding the network.
IP address and IP restriction. Every device on the internet has a numeric address, like a postal address for computers. A site can refuse requests from addresses it does not trust, or from one address that is sending too much. That is IP restriction. The report says there was none here.
Authorisation check. Confirming that the person making a request is allowed to do that particular thing. Logging in proves who you are (authentication). Authorisation is the next question: are you allowed to touch this account? A site that lets you reset 2FA for any email address is missing that second question.
Session. After you sign in, the site gives your browser a small piece of data, often called a cookie or a token, so it can recognise you on the next page without asking for the password again. Think of a wristband at a festival: you show your ticket once at the gate, then the wristband gets you back in. A correct design ties every sensitive request to that wristband. Here, the reset request was not tied to it.
WAF. A web application firewall. A filter that sits in front of a website and inspects incoming traffic, blocking patterns that look like attacks. Like a bouncer at the door who checks people against a list. The report says the WAF did not block this attack.
Burp Suite, Proxy and Intruder. Burp Suite is a tool used by security testers. Its Proxy sits between your browser and the website, so you can see and edit every message going back and forth, like a postal worker who opens each letter, reads it, and can rewrite it before delivering it. Intruder is the part of Burp that takes one request and sends it again and again with different values in one chosen field, which is exactly what a brute force needs.
Payload. In Intruder, the payload is the list of values to try in the chosen field. For a password field, the payload is a list of candidate passwords.
Severity and CVSS. Severity is a rough label for how bad a bug is, from low to critical. CVSS is a scoring system that turns that judgement into a number. The report rates this issue Medium (5.0).
Insecure design. A weakness that comes from how a feature was planned, not from a coding slip. The feature was built to accept any email address, and that decision is the flaw.
Responsible disclosure. The practice of telling the owner of a system about a bug privately, giving them time to fix it, before telling the public.
Setting up the test
The proof of concept uses two accounts:
- Victim:
[redacted] - Attacker:
[redacted]
Both accounts have two-factor authentication switched on. That matters because the whole attack depends on the reset flow for the second factor existing and being reachable. The only precondition the report gives for the attack is that the attacker knows the victim's email address. The tool used is Burp Suite, with the Proxy to catch the reset request and Intruder to repeat it. No versions of anything are given.
How the flaw was spotted
The "Reset Two-factor Authentication" button sends a request after a normal password login on the 2FA page, and the attacker replaces the email in it with the victim's. Two things were wrong with that:
- Nothing on the server side ties that email address to the session that just signed in. The wristband from the login is not checked against the email in the request.
- Nothing slows down repeated attempts. A password-checking step with no rate limiting can be brute forced, and here every wrong guess has a side effect on the account named in the request.
A user who has already passed the password step should not be able to point the reset flow at somebody else's email address. That is the design principle the report says was violated.
Walking through the attack
Step 1: Prepare both accounts
Two-factor authentication is enabled on both the victim and the attacker account. This is the setup, not part of the attack itself. It makes the scenario realistic: both people are ordinary users who have protected their accounts.
Step 2: Sign in as the attacker
The attacker signs in to HackerOne with their own valid email address and password on the sign-in page:
https://hackerone.com/users/sign_in
This is the ordinary login page. The attacker uses their own credentials, not the victim's. That is the point: the attack does not need the victim's password at all, only their email address.
Step 3: Reach the 2FA page
After the password step, the application redirects to the "Two-factor Authentication" page. The attacker has now passed the first lock and is standing at the second one. On that page there is a "Reset Two-factor Authentication" option, meant for people who have lost their second factor.
Step 4: Intercept the reset request
The attacker clicks "Reset Two-factor Authentication" and catches the resulting request in Burp Suite. Normally the browser sends this message and you never see it. The Proxy pauses it so the attacker can read and edit it. The report does not reproduce the raw request; it only says the email is replaced with the victim's and a brute force payload is set on the password field. Those two boxes are the whole attack surface.
Step 5: Point the request at the victim and arm Intruder
The intercepted request is sent to Intruder. The email is replaced with the victim's email address, and a brute force payload is set on the password field. In plain terms: the attacker takes the form that was meant to say "reset my own 2FA" and rewrites it to say "reset the 2FA for [redacted]", then tells Burp to try a long list of passwords in that password box, one after another.
Step 6: Run the attack
The brute force is started from Intruder. Because there is no rate limiting, the attack runs without restriction, in the researcher's words "infinite times". Nothing on the server says "slow down" or "stop". Each wrong password is simply answered and the next one is accepted.
Step 7: The victim is locked out
The repeated failed attempts lock the victim's account. The attacker can keep the loop running, so the victim cannot access or unlock their own HackerOne account. This is the denial of service: the victim's own account is held shut from the outside.
Step 8: Scale it
The same attack can be run simultaneously against tens or hundreds of users. The report attributes this to the absence of rate limiting, IP restriction and authorisation checks on the reset 2FA functionality. One attacker with a list of email addresses can hold many accounts shut at once.
The researcher notes that the "account unlock instruction" is of no help, because the brute force can run indefinitely and the victim's account keeps getting locked again.
Why it works
The report frames this as a violation of a security design principle. Once a user has passed the initial password-based login flow, the 2FA step must not let them submit another user's email address to the "Reset Two-factor Authentication" GraphQL endpoint. The endpoint accepts any email and a password guess, performs no check that the email belongs to the authenticated session, and applies no rate limiting or IP restriction. The password check on that endpoint is therefore both brute-forceable and a lever for locking out any account whose email is known.
The existing defences did not stop it. The researcher demonstrated the attack live to the H1 team and showed that the WAF did not block the brute force and that the account was locked permanently with no user access. The report also points out that many H1 users' email addresses are publicly available on the site, so scraping the targets requires little effort. Scraping means collecting information automatically from web pages, for example copying every email address shown on public profiles into a list.
What it means for users
Any malicious user on HackerOne who knows a victim's email address can permanently deny that victim access to their own account. The attack can be run against many users at once, and because the lockout is renewed by continued brute forcing, the victim has no way to recover access while the attack continues. The report describes the effect as disallowing any HackerOne user permanent access to their own account.
The researcher rated severity as Medium (5.0), with the weakness described as insecure design and no rate limiting in place. HackerOne closed the report as "informative". The researcher states that a live demo was performed with the H1 team and that, after reporting under the responsible disclosure programme and repeated follow-up, no action was taken.
How it could be fixed
The report suggests a simple mitigation: either implement API rate limiting and block the IP attempting the brute force, or do not allow a user in the "Reset two factor authentication" flow to send the request for any other user's email address. In the second case the request should result in an "unauthorized" HTTP response. The report does not state that any fix was applied.
In everyday terms: either put a speed limit on the reset endpoint and turn away the address that keeps speeding, or make the endpoint check that the email in the request matches the person who signed in, and refuse with an "unauthorized" answer when it does not.
Related things to test
These are the same ideas applied to other features, useful if you want to look for similar bugs yourself.
- Password-checking endpoints reached after a first factor. Look for any endpoint that verifies a password or OTP after login and accepts an identifier (email, username, user ID) as a parameter. A positive result is that changing the identifier to another account still returns a password-validity response rather than an authorisation error.
- Account-lockout side effects. For each such endpoint, send repeated wrong passwords for a test account and watch for lockout messages or unlock emails. A positive result is that the target account becomes locked while the requests keep being accepted.
- Rate limiting and IP controls. Run the same request at increasing volume from one source and check for 429 responses, CAPTCHAs or blocks. A positive result is a long run of accepted requests with no throttling.
- WAF coverage. Repeat the brute force through the same path the application uses and observe whether the WAF intervenes. A positive result is that the WAF does not block the pattern.
- Email enumeration. Check whether the reset flow reveals whether an email is registered, through differing responses or timing. A positive result is a reliable difference between known and unknown addresses.
- Scraping exposure. Check whether user email addresses are publicly listed on profile or programme pages, which would make targets easy to collect.
Glossary
- 2FA (two-factor authentication): a second proof of identity on top of a password, usually a code from a phone.
- Account lockout: a site blocking sign-in after too many wrong passwords, meant to protect the owner.
- API: the set of messages a website's pages use to talk to its server.
- Application-level DoS: a denial of service carried out through the application's own features rather than by flooding the network.
- Burp Suite: a tool for inspecting and editing the traffic between a browser and a website.
- Cookie / token: a small piece of data the site gives your browser after login so it can recognise you on later requests.
- CVSS: a scoring system that turns the severity of a bug into a number.
- Endpoint: a specific address on a server that accepts a particular kind of request.
- Field / parameter: a named slot inside a request, like a box on a form.
- GraphQL: a style of API where the request states exactly which pieces of information it wants back.
- Insecure design: a weakness that comes from how a feature was planned rather than from a coding slip.
- Intruder: the part of Burp Suite that repeats one request many times with different values in a chosen field.
- IP address: the numeric address of a device on the internet.
- IP restriction: refusing or limiting requests based on the address they come from.
- Payload: in Intruder, the list of values to try in the chosen field.
- Proxy: a tool that sits between browser and website so messages can be read and edited.
- Rate limiting: a cap on how often something may be done in a given time.
- Request / response: the message your browser sends and the answer the server sends back.
- Responsible disclosure: telling the owner of a system about a bug privately before telling the public.
- Session: the period during which a site recognises you as signed in, carried by a cookie or token.
- Severity: a rough label for how bad a bug is, from low to critical.
- WAF (web application firewall): a filter in front of a website that blocks traffic patterns that look like attacks.