Skip to content
Info disclosure Write-up Beginner

Cross-Domain Referrer Leakage (Bug Bounty)

A password reset link containing a token was sent in the Referer header to a third-party host when the reset page loaded external resources. An attacker who controls or observes that third-party host could capture the token and use it to reset the victim's password.

anontriager Follow

Published on anontriager.medium.com

I was checking a reporter's report and saw the bugs, I thought its a informative but then tried following the steps.

Anonymous Traiger, on anontriager.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 reset token was placed in the page URL and the page then loaded third-party resources, so the browser leaked the full URL, token included, in the Referer header.

What the attacker needed

Victim opens the reset link; page loads a third-party resource; attacker sees that third party's logs

How it was found

  1. Request a password reset link for your own email address.
  2. Open the reset link in a browser configured to proxy through an interception tool.
  3. Turn on interception and capture the outgoing request.
  4. Inspect the Referer header for a full reset link containing a token.
  5. Check whether the host in that Referer value is a third-party website.

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 visits a page and that page loads something from another website, the browser often tells the other site where the request came from. That 'where it came from' value is the Referer header. Here the page address itself contained the secret reset token, so the token was handed to an outside site, and anyone reading that site's logs could 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.

More by anontriager

View all

1 more disclosed report, best first.

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.