Skip to content
Account takeover Disclosed report Intermediate

Password token leak via Host header

The password reset flow leaked the reset token to a third-party site through the Host header and the Referer header. An attacker controlling that site could obtain the token and use it to reset the victim's password and take over the account.

aishkendle Follow

Originally disclosed on HackerOne

Medium 4.6 View original
  • Triaged in 4 hours
  • Fixed in 34 days
  • Disclosed after 36 days

#Password token leak via Host header

##Vulnerability Description: Token will be leaked by the Server to that third party site and that token can be used by third parties to reset the password and take over the account & directly login in your account

##Steps To Reproduce:

  1. Send reset password link to your email address.

2)Now go to email, turn burp suite intercept on and click on reset password link. Check for the requests having the token in referrer and host as third party website. And copy the link 3)Now turn intercept off and reset the password.(with that link) 4)Now reset the password.

#POC: Images Uploaded

Impact

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

Attachments

Screenshot_from_2019-11-14_00-22-22.png
Screenshot_from_2019-11-14_00-22-22.png From the original on HackerOne
Screenshot_from_2019-11-14_00-21-53.png
Screenshot_from_2019-11-14_00-21-53.png
Screenshot_from_2019-11-14_00-22-37.png
Screenshot_from_2019-11-14_00-22-37.png

The original report as published on HackerOne, by aishkendle. 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

Root cause

Likely the application built the reset link or redirect from the untrusted Host header, so the token was sent to an attacker-controlled host and also appeared in the Referer header.

Impact

A person who controls the third-party site could learn the reset token and change the user's password, leading to account takeover.

What the attacker needed

Victim requests a password reset; attacker controls a third-party site; victim opens the reset link

How it was found

  1. Request a password reset link for your own email address.
  2. Open the email, enable interception, and click the reset link.
  3. Inspect the requests for the token appearing in the Referer and for a third-party Host value, then copy the link.
  4. Disable interception and use the copied link to reset the password.

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 forget your password, a site emails you a special link containing a secret code (a token) that proves it is really you. This report says that when the link was opened, the site sent that secret code to another website, probably because it trusted a value in the request called the Host header. Anyone who runs that other website could read the code and use it to change your password.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by aishkendle

View all

2 more disclosed reports, best first.

More from Stripo Inc

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.