Skip to content
Info disclosure Write-up Intermediate

How i found a Password Reset Token Leak via Referer Header:

The password reset token was leaked in the Referer header when a user clicked a third-party link while the reset page was open. An attacker who can intercept network traffic could obtain the token and take over the account.

kataeriidubstep Follow

Published on medium.com

During a security assessment, I discovered a vulnerability in the password reset functionality of the web application, which allows an attacker to leak password reset tokens through the Referer header. Exploiting this vulnerability involves a series of steps following a password reset attempt.

Pavan kumar.G, on 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 page included the token in its URL and did not prevent the token from being sent in the Referer header to other sites.

Impact

An attacker who can intercept network traffic could obtain a valid reset token and gain unauthorised access to the account.

What the attacker needed

Victim has an account; victim clicks a reset link; victim clicks a third-party link; attacker can intercept traffic

The fix

The application should avoid putting the token in a place that leaks via Referer, validate the Referer server-side, and limit token lifetime.

How it was found

  1. Request a password reset using a valid email address.
  2. Click the password reset link received in the email.
  3. Do not change the password and keep the reset page open.
  4. Open a new tab and click any third-party link.
  5. Intercept the request with a tool such as Burp Suite.
  6. Inspect the Referer header to see if it contains the reset token.

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 sends the address of the page you came from (the Referer header) to the new site. Here, that address contained the secret token used to reset a password, so the third-party site (or anyone watching the network) could see it. With that token, someone could reset the victim's password and access their 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 kataeriidubstep

View all

3 more disclosed reports, 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.