Token leakage through untrusted 3rd party
The password reset page included social media buttons that, when clicked, sent the full URL including the reset token in the Referer header to the third-party site. An attacker who could observe that traffic could use the token to reset the user's password and take over the account.
medium.com
Published on medium.com
Free articles
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.
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 password reset page placed the secret token in the URL and also included third-party links that caused the browser to send the full URL in the Referer header.
Impact
An attacker who could intercept the Referer header sent to the third party could use the leaked token to reset the user's password and take over the account.
What the attacker needed
Victim requests a password reset; victim clicks a social media button on reset page; attacker can observe traffic to third party
The fix
The website should remove or modify third-party integrations on sensitive pages like the password reset page, or strip the Referer header so no sensitive data is sent.
How it was found
- Request a password reset and receive an email with a reset link containing a token.
- Open the reset link so the token is in the page URL.
- Click a social media button on the reset page.
- Capture the Referer header sent to the third-party site to see the token.
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 click a link to another website, your browser often sends the address of the page you came from in a header called Referer. Here, the password reset page's address contained a secret token, so clicking a social media button shared that secret with the third party. Anyone who could see that shared data could then use the token to reset the victim's password.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.