Cross Domain Referrer Leakage
A password reset page loaded third-party resources, and the browser's Referer header sent to those external hosts included the full password reset URL with its token. An attacker who controls or observes such a third-party host could capture the token and use it to reset the victim's password.
Published on mohsinalibukc.medium.com
I was searching for a program where I can test my skills and finally got it, I can’t disclose the program name so I will call it “target”.
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 embedded third-party resources while keeping the token in the page URL, so the browser leaked the full URL in the Referer header to those external hosts.
What the attacker needed
Victim opens the reset link; third-party host receives Referer; attacker controls or observes that host
How it was found
- Request a password reset link and receive it by email.
- Open the reset link in a browser configured to proxy traffic through Burp Suite.
- Turn on interception and capture the resulting request.
- Inspect the Referer header and look for the reset link inside it.
- Check whether the host receiving that header is a third-party website; if the full link with token is present, it is a vulnerability.
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 your browser loads something from another website, such as an image or script, it often tells that website which page you came from using a header called Referer. Here the page you came from was the password reset page, and its address contained the secret token that lets someone set a new password. If that outside website is controlled by an attacker, they learn the token and can 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.