Password reset token leak on third party website via Referer header [██████████]
The password reset page included the reset token in the URL, and clicking a third-party link from that page sent the full URL, including the token, in the Referer header. An attacker controlling that third-party site could read the token and reset the victim's password.
Originally disclosed on HackerOne
- Triaged in 29 days
- Fixed in 11 months
- Disclosed after 12 months
Summary:
██████████
It has been identified that the application is leaking referrer token to third party sites. In this case it was found that the password reset token is being leaked to third party sites which is a issue knowing the fact that it can allow any malicious users to use the token and reset the passwords of the victim.
##Steps To Reproduce:
- Request a password reset link for a valid account on ████████
- Click on the reset link from your link
- Before resetting the password click on the Facebook link footer section
- You will notice the following request in Burpsuite
Supporting Material/References:
Impact
As you can see in the referrer the reset token is getting leaked to third party sites. So, the person who has the complete control over that particular third party site can compromise the user accounts easily.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the reset token was placed in the page URL and the page did not stop the browser from sending the full URL as the Referer when users followed external links.
Impact
A person with control over the third-party site could read the leaked token and use it to reset the victim's password, potentially compromising the account.
What the attacker needed
Victim clicks a third-party link on reset page; attacker controls that third-party site
How it was found
- Request a password reset link for a valid account.
- Open the reset link from the email or message.
- Before setting a new password, click the Facebook link in the footer.
- Observe the outgoing request in Burpsuite and see the token in the Referer header.
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 report has not been written yet. The Original tab links to the source.
When you visit a website, your browser often tells the next site you click to where you came from, using something called the Referer header. Here, the page for choosing a new password had the secret reset code in its web address, so clicking a link to another site handed that secret code over. Anyone running that other site could then use the code to take over the account.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.