How I Used Burp Suite to Discover a $6,000 XSS Vulnerability Thro
A search-preview endpoint reflected user input that was later inserted into a dynamic frontend component, and the backend and frontend sanitised the same data differently. An attacker could potentially trigger browser-side script execution in the affected rendering context.
In reality, many impactful findings come from understanding how applications behave under normal conditions.
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 incomplete, context-dependent output encoding: the backend filtered some characters but the frontend rendering path inserted the same data into a different context without matching escaping.
Impact
An attacker may potentially trigger unintended browser-side behaviour when crafted input is rendered in the affected context, and the program rated it high severity due to the execution context and authenticated user exposure.
What the attacker needed
A free account on the target; victim views crafted search input; no special tooling beyond a proxy
The fix
The report recommends context-aware output encoding, consistent sanitisation of user input, review of the frontend rendering logic and secure templating; the text does not say a fix was deployed.
How it was found
- Browse the application through a proxy and note endpoints that reflect input.
- Compare several search requests in HTTP history and spot inconsistent encoding.
- Move the suspicious request into Repeater and study where the input appears.
- Send harmless marker values and observe how rendering changes.
- Trace the parameter to the search-preview API whose data feeds a dynamic UI component.
- Confirm browser-side execution under controlled conditions, then stop and write the report.
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 text a user typed and puts it back on the page in a way that lets that text run as code in a visitor's browser. Here the search term was cleaned up in one part of the app but handled differently when a preview component displayed it, so the cleaning did not hold. The author says this could let an attacker make the browser do unintended things.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.