Skip to content
Account takeover Disclosed report Beginner

Modify Host Header which is sent to email

The password reset email took the host from the request's Host header, so an attacker could change it to a domain they control, making the victim receive a reset link pointing to the attacker's site.

codermak Follow

Originally disclosed on HackerOne

  • Disclosed after 4 days

Summary:

Modify host header and include the fake website in password reset email. Password reset mail is taking source domain from request header host, which can be modified using burp suite and the modified link is sent to the victims email

Steps To Reproduce:

  1. Go to https://da.theendlessweb.com:2222/
  2. Start burp suite
  3. Enter username and click on Send me a Link
  4. Intercep the request and modify the URL to some other custom url
  5. Forward the modified request
  6. Password reset email will be sent.
  7. Check your email and you will see the new url (which was configured in step 4) in the email.

Supporting Material/References:

  • Snapshots in attachment

Impact

With this, attacker can make any victim to visit their custom website and can affect the victim in many ways

Attachments

email-hosting.png
email-hosting.png From the original on HackerOne
Screen_Shot_2020-02-09_at_12.06.31_AM.png
Screen_Shot_2020-02-09_at_12.06.31_AM.png

The original report as published on HackerOne, by codermak. 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 trusted the client-supplied Host header when generating the password reset link instead of using a fixed, configured domain.

Impact

An attacker could make a victim visit a custom website via the reset link, which may be used to phish or otherwise harm the victim.

What the attacker needed

A valid username; ability to intercept and modify HTTP requests; victim receives the reset email

How it was found

  1. Go to the login page of the target site.
  2. Start Burp Suite to intercept traffic.
  3. Enter a username and click the button to send a reset link.
  4. Intercept the request and change the URL to a custom domain.
  5. Forward the modified request.
  6. Check the email and see the custom URL in the reset link.

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 ask a website to reset your password, it sends you an email with a special link. This report shows that the website built that link using a value the user's browser sends (the Host header), which an attacker can change. By changing it, the attacker makes the email contain a link to their own website instead of the real one.

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 codermak

View all

10 more disclosed reports, best first.

More from Endless Group

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.