Skip to content
XSS Write-up Intermediate

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.

mohanad9837 Follow

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!

mohaned haron, 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 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

  1. Collect URLs for the in-scope wildcard domains using crawling tools.
  2. Filter the collected URLs down to those with parameters and remove static file links.
  3. Run the automation tool against the filtered list to spot reflected input.
  4. Confirm the parameter value is reflected on the page.
  5. 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.

More by mohanad9837

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.