Skip to content
XSS Write-up Beginner

Chained Chaos: Discovering 6 XSS in a Single Target

The target site used an outdated jQuery version and reflected user input without proper sanitisation in several places, allowing script execution. An attacker could run arbitrary JavaScript in a victim's browser via crafted URLs or search queries.

medium.com

Published on medium.com

medium.com](https://medium.com/@AhmedSamy-X/lfi-in-the-shadows-a-bug-bounty-private-program-walkthrough-a76024d1314f)

Ahmed Samy, 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 reflected user-supplied input into HTML without proper encoding, and used a known-vulnerable version of jQuery.

Impact

An attacker could execute arbitrary JavaScript in a victim's browser, potentially stealing cookies or performing actions on behalf of the user, though the report does not demonstrate specific exploitation beyond alert boxes.

What the attacker needed

Victim clicks a crafted link; or enters a crafted search term

How it was found

  1. Identify the site uses jQuery v2.2.1 and confirm it is vulnerable via a web search.
  2. Inject a payload into the homepage search box and observe execution.
  3. Fuzz to find a search.php page with another search field and inject a different payload.
  4. Append a payload to a product URL parameter and observe execution.
  5. On a similar product page under a different subdomain, use encoded parameters to trigger execution.
  6. Use a different payload with URL encoding and custom parameters to bypass filters, and also inject via the SignIn page URL.

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 (XSS) is when a website takes input from a user and puts it into a page without cleaning it, so an attacker can make the site run their own JavaScript. Here, the site used an old version of a common JavaScript library (jQuery) and reflected search terms and URL parameters directly into the page, so simple payloads like an SVG with an onload handler executed.

What is XSS?

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

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.