Easy 500$ Bounty with Host Header Injection By Ramthulla
The change-password endpoint reflected the attacker-controlled Host header in its response without sanitisation, allowing an attacker to inject an XSS payload via the Host header. The author claims this yielded a $500 bounty.
medium.com
Published on medium.com
I’ve discovered another vulnerability on a bug bounty platform, and I’m excited to share the details with you. Let’s dive right in and explore the process!
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
Impact
An attacker could execute arbitrary script in the context of the vulnerable page, though the text does not show a realistic delivery path to a victim.
What the attacker needed
Ability to send a crafted request; victim must trigger the request
How it was found
- Capture the change-password request and send it to Repeater.
- Change the Host header to an attacker-controlled domain and observe it reflected in the response.
- Append an XSS payload to the Host value and observe the script executing in the response.
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 your browser talks to a website, it includes a 'Host' header saying which site it wants. This site took whatever was in that header and put it straight into the page it sent back. By putting a script tag in the Host header, the author made the page run their code, which is called cross-site scripting (XSS).
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.