One-click DOS via Response Manipulation
By modifying the redirect location in the login response to skip the two-factor authentication step, the server entered a loop of repeatedly sending GET and POST requests, causing a denial of service. An attacker could keep a browser tab open to flood the server with hundreds of requests per minute.
{{media:0}}
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
This write-up describes a redirection loop found in a private bug bounty program. The target application had a two-factor authentication (2FA) feature: after a user submits an email and password, the server responds with a 303 redirect to /index.php/login/twofa, where the user is asked for a 4 digit code sent by email or through an authenticator app. For accounts without 2FA enabled, the same login POST redirects to /app/profile/details instead.
The researcher describes the issue as a kind of redirection loop that does not actually use 3XX redirects. Instead, the same set of GET and POST requests is repeatedly sent to the server, so the browser does not flag it as a redirect loop. In 1 to 2 minutes, 700 to 800+ HTTP requests were automatically made to the server, which the researcher says will DOS the server.

Setup
The researcher captured the login responses in Burp Suite and edited the redirect before passing the request to the browser. Two accounts were needed:
- A test account with 2FA enabled, used to capture the login POST response and its redirect to
/index.php/login/twofa. - A second test account without 2FA, created because the first account could not have 2FA disabled. Attempting to disable it returned the error: "Once you enable 2FA it is not possible to disable it".
The second account was used to observe the normal post-login redirect to /app/profile/details.
Finding it
The researcher started from a 2FA bypass attempt. After entering an email and password, a POST request is sent to the server. The captured response for the 2FA-enabled account showed a 303 redirect to /index.php/login/twofa.
To see where a user without 2FA is redirected, the researcher logged in with the second account. The captured response showed a redirect to /app/profile/details. The redirect target therefore differs depending on whether 2FA is enabled.
Exploitation
Step 1: Capture the 2FA login response
Log in with the 2FA-enabled account and capture the response to the authentication POST request in Burp Suite. The response contains a 303 redirect to:
Step 2: Change the redirect target
Replace the redirect location with the path used by accounts without 2FA:
Pass the modified request to the browser.
Step 3: Observe the loop
Nothing appeared to happen in the browser at first. Switching back to Burp Suite showed that tons of GET and POST requests were being made to redacted.com continuously. The attack continued until the browser tab was closed. Keeping the tab open for a few minutes impacted the server and led to a DOS.
Root cause
The application logic expects a user with 2FA enabled to enter the 2FA code first and then be redirected to their profile. By changing the redirect target, the researcher skipped the 2FA verification phase and jumped directly to the final request. The server then continuously tried to log the user out of a session that was never created, producing the repeated GET and POST requests.
Because the loop consists of ordinary GET and POST requests rather than 3XX redirects, the browser does not detect it as a redirection loop and does not stop it.
Impact
An attacker who can manipulate the login response can cause a browser tab to send 700 to 800+ requests in 1 to 2 minutes, which the researcher states leads to a DOS. The attack continues as long as the tab remains open. The report does not describe any authentication requirement beyond a valid account, nor does it quantify the effect on other users or on availability beyond the request volume observed.
Fix
The report does not state what fix was applied. A reasonable fix would be for the server to validate the authentication state on the profile request and refuse to proceed when the 2FA step has not been completed, rather than repeatedly attempting to log out a session that does not exist.
Variants to test
- On other applications with multi-step logins, change the redirect after the first step to the final authenticated page and watch for repeated requests in the proxy history.
- Try the same manipulation on password reset or email verification flows, where skipping a step may cause the server to loop.
- Test whether the loop occurs with different HTTP methods (GET versus POST) and whether the browser or server eventually rate-limits the requests.
- Check whether the loop can be triggered without a valid account, for example by replaying a captured response.
What happened, in plain words
A security researcher was testing a website that lets people log in with an email address and a password, and that also offers an extra security step called two-factor authentication (2FA). With 2FA turned on, after you type your password the site asks for a short 4 digit code that is sent to your email or shown in an authenticator app. The researcher found that by changing one small piece of the server's reply during login, he could make the browser send 700 to 800+ requests to the server in 1 to 2 minutes, over and over, until the tab was closed. He describes this as a kind of redirection loop that can take the server down, a denial of service (DOS).

The picture above is the author's profile image on the site where the write-up was published.
Before going further, a few words that come up constantly.
- A request is a message your browser sends to a server, for example "please log me in with this email and password". A response is the server's reply.
- A GET request is normally used to ask for a page or some data. A POST request is normally used to send data to the server, such as a login form.
- A redirect is the server telling the browser "the page you want is somewhere else, go there instead". It usually comes with a status code in the 300s, such as 303, and a
Locationheader holding the address to go to. - A proxy is a tool that sits between your browser and the server, so you can look at, and change, the requests and responses as they pass. The researcher used Burp Suite, a well-known proxy for this kind of work.
- A session is how a website remembers that you are logged in. After you log in, the server gives your browser a small piece of data (often a cookie) that it checks on every later request. If the server cannot find a valid session, it treats you as logged out.
- DOS, short for denial of service, means making a service so busy that it cannot serve normal users. Think of a shop assistant who is asked the same question thousands of times a minute and has no time left to help real customers.
The setup
The researcher was working on a private bug bounty program, meaning the company invited selected researchers to test its systems and report problems. The application had a 2FA feature. When a user submits an email and password, the server replies with a 303 redirect to /index.php/login/twofa, where the user is asked for the 4 digit code. For accounts without 2FA enabled, the same login POST redirects to /app/profile/details instead.
To compare the two cases, the researcher needed two accounts:
- A test account with 2FA enabled, used to capture the login POST response and its redirect to
/index.php/login/twofa. - A second test account without 2FA, created because the first account could not have 2FA disabled. Trying to disable it returned the error: "Once you enable 2FA it is not possible to disable it".
The second account was used to see the normal post-login redirect to /app/profile/details.
Finding it
The researcher started from an attempt to bypass 2FA, that is, to get past the code step without entering a valid code. After entering an email and password, a POST request is sent to the server. The captured response for the 2FA-enabled account showed a 303 redirect to /index.php/login/twofa.
To see where a user without 2FA is redirected, the researcher logged in with the second account. The captured response showed a redirect to /app/profile/details. So the redirect target differs depending on whether 2FA is enabled. That difference is the clue: the redirect target depends on whether 2FA is enabled.
Exploitation
Step 1: Capture the 2FA login response
Log in with the 2FA-enabled account and capture the response to the authentication POST request in Burp Suite. The response contains a 303 redirect to:
Line by line: this is the address the server tells the browser to visit after the password is accepted. redacted.com stands in for the real site name, which was hidden. /index.php/login/twofa is the page that asks for the 4 digit code. The researcher captured this response so he could edit it before the browser acted on it.
Step 2: Change the redirect target
Replace the redirect location with the path used by accounts without 2FA:
Line by line: this is the address a user without 2FA is normally sent to after logging in, the profile page. By putting this address into the redirect of a 2FA-enabled login, the researcher is telling the browser to skip the code page and go straight to the profile. The modified request is then passed to the browser.
Step 3: Observe the loop
Nothing appeared to happen in the browser at first. Switching back to Burp Suite showed that tons of GET and POST requests were being made to redacted.com continuously. The attack continued until the browser tab was closed. Keeping the tab open for a few minutes impacted the server and led to a DOS. In 1 to 2 minutes, 700 to 800+ HTTP requests were automatically made to the server.
Why does the browser not stop this? A normal redirect loop, where page A sends you to page B and page B sends you back to page A, is detected by browsers and stopped with an error after a few hops. Here there are no 3XX redirects in the loop at all: the same set of ordinary GET and POST requests is simply repeated. To the browser this looks like normal traffic, so it keeps going.
Root cause
The application logic expects a user with 2FA enabled to enter the 2FA code first and then be redirected to their profile. By changing the redirect target, the researcher skipped the 2FA verification phase and jumped directly to the final request. The server then continuously tried to log the user out of a session that was never created, producing the repeated GET and POST requests.
In everyday terms: the server has a checklist. Step one, password. Step two, code. Step three, show the profile. The researcher jumped from step one to step three. The server, seeing that step two never happened, tries to undo a login that it thinks should exist but does not, and the browser keeps following the resulting back-and-forth. Because the loop consists of ordinary GET and POST requests rather than 3XX redirects, the browser does not detect it as a redirection loop and does not stop it.
Impact
An attacker who can manipulate the login response can cause a browser tab to send 700 to 800+ requests in 1 to 2 minutes, which the researcher states leads to a DOS. The attack continues as long as the tab remains open. The report does not describe any authentication requirement beyond a valid account, nor does it quantify the effect on other users or on availability beyond the request volume observed.
Fix
The report does not state what fix was applied. A reasonable fix would be for the server to validate the authentication state on the profile request and refuse to proceed when the 2FA step has not been completed, rather than repeatedly attempting to log out a session that does not exist. In plain words: the server should check its own checklist on every step, not trust the browser to follow the steps in order.
Variants to test
- On other applications with multi-step logins, change the redirect after the first step to the final authenticated page and watch for repeated requests in the proxy history.
- Try the same manipulation on password reset or email verification flows, where skipping a step may cause the server to loop.
- Test whether the loop occurs with different HTTP methods (GET versus POST) and whether the browser or server eventually rate-limits the requests.
- Check whether the loop can be triggered without a valid account, for example by replaying a captured response.
Glossary
- 2FA (two-factor authentication): a login that needs two things, usually a password plus a short code from an email or an authenticator app.
- 303 redirect: an HTTP response that tells the browser to fetch a different address, given in the
Locationheader. - API: a way for one program to talk to another over the network, sending requests and receiving responses.
- Authenticator app: a phone app that generates short codes for logging in.
- Browser: the program you use to view websites, such as Chrome or Firefox.
- Burp Suite: a proxy tool used to capture, inspect and modify requests and responses between a browser and a server.
- Cookie: a small piece of data a website stores in your browser, often used to remember that you are logged in.
- DOS (denial of service): making a service so busy that it cannot serve normal users.
- GET: an HTTP method normally used to ask for a page or data.
- HTTP: the language browsers and servers use to exchange requests and responses.
- POST: an HTTP method normally used to send data to the server, such as a login form.
- Proxy: a tool or server that sits between your browser and the target, letting you see and change traffic.
- Redirect: a server reply telling the browser to go to a different address.
- Redirection loop: a situation where following redirects leads back to where you started, repeating forever.
- Request: a message your browser sends to a server.
- Response: the server's reply to a request.
- Session: the server's record that you are logged in, usually tied to a cookie in your browser.
- Status code: a number in an HTTP response saying what happened, such as 200 for success or 303 for a redirect.
- Vulnerability: a weakness in a system that someone can use to make it behave in a way its owners did not intend.