Skip to content
Account takeover Write-up Beginner

How I Earned a $4,000 Bug Bounty Using a Simple Yet Overlooked Method

The server trusted the X-Forwarded-Host header without validation, reflecting an attacker-controlled domain in page titles, meta tags and redirect URLs. An attacker could send a password reset link pointing to their own domain, enabling phishing or account takeover.

ekenejosepha1 Follow

Published on medium.com

As a professional penetration tester and bug bounty hunter, I’ve often found that it’s not always the complex zero-days or sophisticated payloads that land you the biggest bounties — it’s the basics done right. This is a breakdown of how I earned $4,000 from a misconfigured header vulnerability on a Fortune 500…

Mr Smith Austin, 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 server trusted the Host or X-Forwarded-Host header without validating it against an allowlist, then used that value in generated URLs.

Impact

An attacker could poison password reset links to point to their own domain, potentially leading to phishing or account takeover; the text does not confirm a live exploit beyond the reflection.

What the attacker needed

Ability to send custom HTTP headers; victim interacts with a crafted reset link

The fix

The server should validate the Host and X-Forwarded-Host headers against an allowlist of trusted domains and never use unvalidated values in generated URLs.

How it was found

  1. Enumerate subdomains and filter live hosts, finding a development assets domain.
  2. Send a request to that host with a modified X-Forwarded-Host header pointing to an attacker domain.
  3. Observe the attacker domain reflected in page titles, meta tags and redirect URLs.
  4. Demonstrate that a password reset link would point to the attacker domain.

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.

A web server often uses the 'Host' header to know which website the browser wants. Some servers also trust an extra header called X-Forwarded-Host, which is meant for proxies. If the server blindly copies that value into links or redirects, an attacker can make the site send users to a domain they control.

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 ekenejosepha1

View all

2 more disclosed reports, best first.

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.