How I was able to Takeover Accounts on Foxit.com
The password reset request accepted a user-supplied reset link, so an attacker could replace the legitimate reset URL with their own address. By sending a reset for a victim's email with an attacker-controlled link, the attacker could receive the reset token and take over the account.
Published on medium.com
The original lives on medium.com
We do not hold its text, 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
Likely the reset password endpoint trusted a client-supplied resetPasswordUrl parameter instead of building the link from a fixed server-side value.
What the attacker needed
Victim's email address known; victim clicks the emailed reset link; attacker-controlled server to receive the link
The fix
The reset link should be generated server-side from a fixed, trusted value rather than taken from a request parameter; the report states the bug was fixed.
How it was found
- Create an account and log out, then open the forgot password form.
- Submit your own email and capture the reset request in an intercepting proxy.
- Note that the resetPasswordUrl parameter matches the link in the email.
- Change that parameter to an external address and confirm the email now contains the changed link.
- Request a reset for the victim's email with the parameter set to an attacker-controlled URL.
- When the victim clicks the emailed link, capture the request at the attacker's server and use it to take over the account.
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 forget your password, a site emails you a special link that lets you set a new one. This site let the person requesting the reset choose where that link points. An attacker could point it at their own server, so when the victim clicked the emailed link, the secret reset code went to the attacker instead.
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.