here is how I got my first bounty $$
A reflected cross-site scripting flaw was found in a URL parameter that echoed user input back into the page. An attacker could craft a link that runs script in a victim's browser, though a Cloudflare filter blocked simple payloads and had to be bypassed with a crafted tag.
Published on medium.com
Today, I’m excited to share how I got my first bounty in a private program on HackerOne. Let’s get started!
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 parameter value was reflected into the page without proper output encoding, and the Cloudflare rule only blocked known simple payload patterns.
Impact
An attacker could get script to run in a victim's browser via a crafted link, but only after working around the Cloudflare filter that blocked straightforward payloads.
What the attacker needed
Victim clicks a crafted link; payload must evade Cloudflare filter
How it was found
- Collect URLs for the in-scope wildcard domains using crawling tools.
- Filter the collected URLs down to those with parameters and remove static file links.
- Run the automation tool against the filtered list to spot reflected input.
- Confirm the parameter value is reflected on the page.
- Notice Cloudflare is present and test payload variants until one executes.
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.
Cross-site scripting means a website takes something a visitor typed in a link and puts it straight into the page without cleaning it. If that something is code, the visitor's browser runs it as if the site itself wrote it. Here the researcher found a parameter that did this, then had to find a version of the code that slipped past the site's Cloudflare filter.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.