Skip to content
Info disclosure Disclosed report Beginner

Password Reset Token Leak Via Referrer

The password reset token was leaked in the Referer header when a user navigated from the reset page to another site. An attacker who controls that other site could read the token and use it to change the user's password.

0xthem7 Follow

Originally disclosed on HackerOne

  • Disclosed after 3 months

Exploitation

Request password reset to your email address Click on the password reset link Dont change password Click on about us Intercept the request in burpsuite proxy Check if the referer header is leaking password reset token.

Impact

It allows the person who has control of particular site to change the user’s password (CSRF attack), because this person knows reset password token of the user.

Reference:

https://hackerone.com/reports/342693 https://hackerone.com/reports/272379 https://hackerone.com/reports/737042 https://medium.com/@rubiojhayz1234/toyotas-password-reset-token-and-email-address-leak-via-referer-header-b0ede6507c6a https://medium.com/@shahjerry33/password-reset-token-leak-via-referrer-2e622500c2c1

Impact

It allows the person who has control of particular site to change the user’s password (CSRF attack), because this person knows reset password token of the user.

The original report as published on HackerOne, by 0xthem7. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker who controls a site the user visits after the reset page could obtain the token and change the user's password, though this depends on the user following such a link.

What the attacker needed

Victim clicks a link to an attacker-controlled site; attacker can read Referer headers

How it was found

  1. Request a password reset to your email address.
  2. Click the password reset link.
  3. Do not change the password.
  4. Click on 'about us'.
  5. Intercept the request in Burp Suite proxy.
  6. Check whether the Referer header contains the password 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 report has not been written yet. The Original tab links to the source.

When you click a link, your browser often tells the next website where you came from using a 'Referer' header. If the page you came from had a secret password reset code in its address, that secret can be passed along to the other site. Here, the reset code was exposed this way, so anyone running the other site could see it and 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 from Liberapay

View all

The newest disclosed reports for this program.

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.