Three of my favourite XSS bugs in bugbounties with my real life f
The author describes three common cross-site scripting (XSS) patterns: client-side-only filtering that can be bypassed, SVG uploads that execute scripts when rendered, and DOM-based XSS via URL parameters. In the SVG case, a profile picture upload returned two URLs, and rendering via an assets subdomain allowed script execution that could lead to one-click account takeover.
This one appears when an app attempts to detect or block XSS only on the client side (JavaScript in the browser) and assumes the backend enforces nothing. In practice, you can easily bypass client side checks by modifying requests or using the browser console, and if the server doesn’t validate or encode output…
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 relied on client-side filtering, failed to sanitise SVG content, and inserted user-controlled URL parameters into the DOM without encoding.
Impact
The SVG upload XSS could be used to obtain user cookies and lead to a one-click account takeover; the quiz stored XSS sent session cookies to the attacker.
What the attacker needed
Victim views the quiz or profile image; attacker can upload SVG or inject quiz content
The fix
Validate and canonicalise inputs on the server, use context-aware output encoding, apply a strict CSP, sanitise or rasterise SVGs, and avoid inserting user-controlled data into the DOM with innerHTML.
How it was found
- Bypass client-side filters on the quiz question preparation page.
- Create stored XSS payloads inside quizzes.
- When someone takes the quiz, their session cookies are sent to the attacker's webhook.
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 lets an attacker sneak in code that runs in other people's browsers. The author shows three ways this happens: the site only checks for bad input in the browser (easy to bypass), it accepts SVG image files that can contain scripts, and it puts URL parameters into the page without cleaning them. The result can be stolen cookies or account takeover.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.