π Token Leakage via Referrer β The Invisible Slip to Third Parties
A password reset token was included in the URL of a reset page, and when a user clicked a third-party link from that page, the browser sent the full URL including the token in the Referer header to the third party. An attacker with access to that third party's logs could extract the token and take over the account.
π Reported to: United States Agency for Global Media (USAGM) π Status: Recognized in the Hall of Fame π Vulnerability: Token Leakage via Referrer (3rd Party)
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 token was placed in the URL query string and the page did not set a restrictive Referrer-Policy, so the full URL was sent in the Referer header to third-party sites.
Impact
The reset token could be leaked to third-party sites, and anyone with access to those logs could extract it and take full control of the victim's account.
What the attacker needed
Victim clicks a third-party link; attacker can read third-party logs
The fix
Set the Referrer-Policy header to no-referrer or strict-origin, and avoid putting sensitive tokens in URLs.
How it was found
- Navigate to the target site.
- Go to the 'Forgot Password' section.
- Submit a valid email to receive a reset link.
- Open the password reset link from the email inbox.
- Intercept the request using a proxy tool.
- Click a third-party social media link from that page.
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, your browser often tells the new website where you came from by sending a 'Referer' header. If the address of the page you came from contains a secret code (like a password reset token), that secret gets shared with the new website. Here, the reset page's address contained the token, so clicking a social media link leaked it to that site.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.