Skip to content
Info disclosure Write-up Intermediate

Account Takeover on Hackerone using Token leakage

A password reset token was leaked in the Referer header when a user clicked an external link on the password reset page. An attacker controlling that external site could capture the token and use it to reset the victim's password, gaining account access.

medium.com

Published on medium.com

By using Token leakage vulnerability , attacker can easily reset accounts password and get access over the accounts. This vulnerability found on hackerone Plateform.

Mr Horbio, 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 password reset page included the secret token in its URL and did not prevent it from being sent in the Referer header to external sites.

Impact

An attacker who controls the external site could steal the reset token and take over the victim's account by setting a new password.

What the attacker needed

Victim clicks a link to an attacker-controlled site; attacker controls the external site

How it was found

  1. The victim requests a password reset and receives a reset link by email.
  2. The victim opens the reset link, which contains the reset token in the URL.
  3. Before entering a new password, the victim clicks a link to an external site.
  4. The external site logs the Referer header, which includes the reset token.
  5. The attacker uses the stolen token to set a new password and is automatically logged in.

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, the password reset page's address contained a secret token, so the external site learned the token. With that token, an attacker can set a new password 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.

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.