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.
- 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:
- Go to https://da.theendlessweb.com:2222/
- Start burp suite
- Enter username and click on Send me a Link
- Intercep the request and modify the URL to some other custom url
- Forward the modified request
- Password reset email will be sent.
- 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


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
- Go to the login page of the target site.
- Start Burp Suite to intercept traffic.
- Enter a username and click the button to send a reset link.
- Intercept the request and change the URL to a custom domain.
- Forward the modified request.
- 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.