How I was able to earn 1000$ with just 10 minutes of bug bounty?
A password reset link contained the account email as a parameter, and changing that email caused a new reset link for the victim's account to be sent to the attacker's address. The reset token also did not expire after use, so the attacker could obtain a working reset link for another user's account.
Published on ninadmathpati.com
Hello, Guys, I m back with a new blog on bug bounty, I found this bug recently on independent bug bounty program, thought of sharing it.
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 covers a password reset flaw found on an independent bug bounty program. The researcher refers to the target only as asdf.com, a cryptocurrency exchange website. The feature involved is the standard account recovery flow: the login page offers a reset password option, and requesting it sends a reset link to the account's email address.
The reset link the researcher received looked like this:
www.asdf.com/resetpsswd/email=[redacted]&[redacted]
The important observation is that the account's email address travels in the link itself as a parameter, alongside the token. The researcher describes the class of issue as a password reset weakness and characterises the second part of the behaviour as something like an HTTP parameter pollution attack.
Setup
The researcher picked a random website from an independent bug bounty program and created an ordinary account on it. No special role, tooling or version is described. The site enforced 2-factor authentication, which the researcher ran into when trying to complete the reset after tampering with the link.
Finding it
After creating an account, the researcher requested a password reset through the reset option on the login page and inspected the resulting link. The email address in the link is a parameter, so the natural next step was to change it and see how the server handled the modified link. Within about five minutes of testing, the altered link produced a result: a new reset password link for the victim's account arrived in the altered email inbox.

The researcher notes that the changed email alone did not allow a password change, because the site enforced 2-factor authentication. That looked like a dead end until the mail from asdf.com showed up in the altered inbox.
Exploitation
Step 1: request a reset and read the link
Request a password reset for your own account from the login page. The mail contains a link of the form shown above, with the account email and a token as parameters.
Step 2: alter the email parameter
Change the email value in the link to an address you control and process the link. The researcher describes this as getting a new reset link delivered to the altered email address for the victim's account, and compares the behaviour to an HTTP parameter pollution attack.

Step 3: observe the limit
With the altered link, the password could not be changed, because the account was protected by 2-factor authentication. The researcher initially concluded that altering the email did not work, then found the reset mail in the altered inbox.
Step 4: reuse the token
The reset password link carried a token that did not expire after one use. The researcher lists this as the first problem: the token expiration was missing, so a token remained valid after being used once.
Root cause
The report identifies two weaknesses working together. First, the reset token was not invalidated after use, so it did not expire after a single use. Second, the email address was accepted as a parameter in the reset link and was trusted when the link was processed, so changing it caused a new reset link for the victim's account to be sent to the altered address. The researcher describes the second behaviour as similar to HTTP parameter pollution. The 2-factor authentication stopped the password change itself, but not the delivery of the reset link to the attacker-controlled address.
Impact
In the researcher's test, altering the email in the reset link caused a fresh reset link for the victim's account to be delivered to the altered address, and the token did not expire after one use. In the case described, the 2-factor authentication prevented the attacker from completing the password change, so the practical impact was limited by that control. The researcher frames the finding as a client-side issue that pays well when the attack scenario is demonstrated properly.
Fix
The researcher lists the following fixes:
- Token verification and expiration.
- Avoiding unnecessary parameters such as the email address.
- Implementation of 2-factor authentication.
- Most importantly, checking the workflow of that section.
The report does not say which of these the program actually implemented.
Variants to test
- Change the email parameter in a reset link to an address you control and process the link. A positive result is a reset mail for the target account arriving at your address.
- Reuse a reset token after completing a reset once. A positive result is the token still being accepted on a second use.
What happened, in plain words
A security researcher spent about ten minutes on a website and earned 1000 USD. The website was a cryptocurrency exchange, a place where people buy, sell and hold digital money. The researcher writes about it under the made-up name asdf.com, and the work was done through an independent bug bounty program. A bug bounty program is a scheme where a company invites outsiders to look for security mistakes in its systems and pays them for reporting what they find, instead of punishing them.
The mistake was in the password reset feature. Almost every website with accounts has one: you click "forgot my password", the site emails you a special link, and opening that link lets you set a new password. The link has to prove that you really are the account owner, so it carries a long random string called a token. The site also put the account's email address into the link as a visible value.
The researcher noticed that the email address in the link could simply be edited. Changing it caused the site to send a fresh reset link for the victim's account to the address the researcher had typed in. A second problem made it worse: the token in the link did not stop working after it had been used once, so it could be reused. The account had two-factor authentication turned on, which is a second proof of identity beyond the password, usually a short code from a phone app. That stopped the researcher from actually changing the password, so the practical damage was limited. The report still earned 1000 USD, and the researcher's point is that mistakes on the browser side of a website, shown with a clear attack story, pay well.

The setup
The researcher picked a random website taking part in an independent bug bounty program and created an ordinary account on it. Nothing special was needed: no paid tools, no special permissions, no insider access. The only detail that later mattered was that the site enforced two-factor authentication. The researcher only discovered that when trying to finish the password change after editing the link.
The reset link
On the login page there was a "reset password" option. The researcher used it on their own account and looked at the email that arrived. The link inside looked like this:
www.asdf.com/resetpsswd/email=[redacted]&[redacted]
Reading it piece by piece:
www.asdf.comis the website's address, the same kind of address you type into a browser./resetpsswd/is the path, which tells the site which page or action is being requested. Here it is the password reset action.email=[redacted]is a parameter. A parameter is a named value attached to a link, written as a name, an equals sign and a value. This one carries the account's email address.&separates one parameter from the next.- `[redacted] is the second parameter. The token is a long random-looking string that acts like a temporary key: it proves the person opening the link is allowed to reset that account's password.
The key observation is that the email address is not hidden inside the token. It sits in the link as its own editable value, right next to the token. The researcher classifies the overall issue as a password reset weakness, and describes the second part of the behaviour as something like an HTTP parameter pollution attack. Parameter pollution means sending a parameter more than once, or in an unexpected form, so that different parts of a system disagree about which value is the real one. One part checks one value while another part acts on a different one.
Finding it
- Create an ordinary account on the site.
- Request a password reset from the login page and open the email that arrives.
- Look at the link and notice that the email address is a parameter you can edit.
- Change the email value to an address you control, then open the modified link.
The reasoning behind step 4 is simple: if the site trusts whatever email address is written in the link, it may act on the edited value instead of the real account owner's address. Within about five minutes of testing, something happened. A new reset password link for the victim's account arrived in the altered email inbox.
At first this looked like a dead end. The changed email alone did not allow a password change, because the site enforced two-factor authentication. The researcher concluded that altering the email did not work, and then the mail from asdf.com appeared in the altered inbox.
Exploitation, step by step
Step 1: request a reset and read the link
Request a password reset for your own account from the login page. The email contains a link of the form shown above, with the account email and a token as parameters. This step is just gathering information: you need to see exactly what the site puts into the link before you can judge whether any of it can be changed.
Step 2: alter the email parameter
Change the email value in the link to an address you control and process the link. "Process" here means opening it in a browser, the same way the real recipient would. The researcher describes the result as getting a new reset link delivered to the altered email address for the victim's account, and compares the behaviour to an HTTP parameter pollution attack.

Step 3: observe the limit
With the altered link, the password could not be changed, because the account was protected by two-factor authentication. Two-factor authentication means the site asks for a second proof after the password, typically a short code that changes every minute and is generated by an app or a small device. Without that code, the reset cannot be completed. The researcher initially concluded that altering the email did not work, then found the reset mail sitting in the altered inbox.
Step 4: reuse the token
The reset password link carried a token that did not expire after one use. The researcher lists this as the first problem: token expiration was missing, so a token stayed valid even after it had already been used once. A well-built reset token should behave like a single-use ticket: once it has been redeemed, it is worthless. Here it behaved more like a door key that keeps working after the door has been opened.
Why it worked
The report identifies two weaknesses working together.
First, the reset token was not invalidated after use. It did not expire after a single use, so anyone holding it could keep presenting it.
Second, the email address was accepted as a parameter in the reset link and was trusted when the link was processed. Changing it caused a new reset link for the victim's account to be sent to the altered address. The researcher describes this second behaviour as similar to HTTP parameter pollution: the site took a value supplied by the visitor and used it as if it were trustworthy.
The two-factor authentication stopped the password change itself, but it did not stop the delivery of the reset link to the attacker-controlled address. That is an important distinction for a beginner: a control can block the final step and still leave the earlier steps exposed.
What the impact was
In the researcher's test, altering the email in the reset link caused a fresh reset link for the victim's account to be delivered to the altered address, and the token did not expire after one use. In the case described, two-factor authentication prevented the attacker from completing the password change, so the practical impact was limited by that control. The researcher frames the finding as a client-side issue that pays well when the attack scenario is demonstrated properly. "Client-side" refers to the part of a website that runs in the visitor's browser, as opposed to the server, the machine that stores the data and does the checking. Showing the scenario properly means writing down the exact steps, the exact link and the exact result, so the company can reproduce it.
The fix
The researcher lists the following fixes:
- Token verification and expiration.
- Avoiding unnecessary parameters such as the email address.
- Implementation of two-factor authentication.
- Most importantly, checking the workflow of that section.
In plain words: check the token properly and make it stop working after use; do not put values into a link that the site does not need, because every value a visitor can edit is a value an attacker can edit; keep two-factor authentication in place; and, above all, walk through the whole reset process from start to finish and check that each step only trusts what it should. The report does not say which of these the program actually implemented.
Variants to test
These are the same ideas applied in slightly different ways, useful if you want to look for similar mistakes on a site you are allowed to test:
- Change the email parameter in a reset link to an address you control and process the link. A positive result is a reset mail for the target account arriving at your address.
- Reuse a reset token after completing a reset once. A positive result is the token still being accepted on a second use.
Glossary
- Bug bounty program: a scheme where a company pays outsiders for finding and reporting security mistakes in its systems.
- Cryptocurrency exchange: a website where people buy, sell and hold digital currencies.
- Password reset: the feature that lets you set a new password when you have forgotten the old one, usually by emailing you a special link.
- Token: a long random string used as a temporary key, here proving that whoever opens the reset link is allowed to reset that account.
- Parameter: a named value attached to a link or request, written as a name, an equals sign and a value, with
&separating several of them. - Path: the part of a web address that names the page or action being requested, such as
/resetpsswd/. - HTTP parameter pollution: sending a parameter more than once, or in an unexpected form, so that different parts of a system disagree about which value is the real one.
- Token expiration: the rule that a token stops being accepted after a set time or after it has been used once.
- Two-factor authentication (2FA): a second proof of identity beyond the password, usually a short code from an app or device.
- Client-side: the part of a website that runs in the visitor's browser, as opposed to the server.
- Server: the machine that stores data and performs the checks behind a website.
- Workflow: the sequence of steps a feature goes through, here from requesting a reset to setting a new password.
- Vulnerability: a mistake in a system that someone can use to make it behave in a way its owners did not intend.
- Impact: the practical harm a vulnerability could cause if someone exploited it.