Skip to content
Account takeover Write-up Intermediate

Secret Input Header leads to Password Reset Poisoning

The application had a password reset feature that used an unkeyed HTTP header to build the reset link, allowing an attacker to poison the link and potentially steal reset tokens. The author found this by discovering a redirect endpoint and fuzzing for hidden parameters.

Viktor Mares Follow

Published on medium.com

{{media:0}}

Viktor Mares, 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 application used an unkeyed HTTP header (such as Host or X-Forwarded-Host) to construct the password reset URL without validating it.

What the attacker needed

Ability to send crafted HTTP headers; victim initiates password reset

The fix

The vulnerability was fixed by the vendor, likely by validating or ignoring untrusted headers when constructing reset links.

How it was found

  1. Visit the domain and note the redirect to the login portal.
  2. Bruteforce directories at the /Portal level and find the /redirect endpoint.
  3. Visit the /redirect endpoint and observe an onsite redirect.
  4. Fuzz for hidden parameters on the /redirect endpoint to find secret URL inputs.

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 forget your password, a website sends you a link to reset it. If the website builds that link using information an attacker can control, the attacker can make the link point to their own server. Then, when you click the link, your reset token goes to the attacker, who can use it to take over your account.

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 Viktor Mares

View all

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