Skip to content
Info disclosure Write-up Beginner

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.

Mohsinalibukc Follow

Published on mohsinalibukc.medium.com

Bounty$300 View original

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”.

Mohsinalibukc, on mohsinalibukc.medium.com

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

  1. Request a password reset link and receive it by email.
  2. Open the reset link in a browser configured to proxy traffic through Burp Suite.
  3. Turn on interception and capture the resulting request.
  4. Inspect the Referer header and look for the reset link inside it.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.