Skip to content
XSS Write-up Intermediate

How a Security Team Discovered a $3,000 XSS Bug — And Why I

A profile bio formatting feature allowed a lesser-used attribute to bypass sanitisation, and the content was inserted into a JavaScript template string, enabling stored XSS. Any visitor viewing the malicious profile would execute the script, potentially leading to session theft and account takeover.

cybervolt Follow

Published on medium.com

Cross-Site Scripting (XSS) remains one of the most consistently rewarded and impactful vulnerabilities in modern bug bounty programs. Even today — with frameworks, security headers, and filtering libraries — one overlooked input field is all it takes for an attacker to gain access to user sessions, perform…

cybervolt, 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 sanitisation filter failed to handle a lesser-used styling attribute, and the application inserted user content directly into a JavaScript template string without proper escaping.

Impact

The stored XSS could have allowed session token theft, full account takeover, impersonation, fraud, phishing, and malware spreading, with one compromised profile potentially triggering cascading attacks as other users viewed it.

What the attacker needed

A user account to edit profile bio; victim views the malicious profile

The fix

The text recommends server-side sanitisation and CSP strengthening, and the platform acknowledged the issue and paid a reward, but it does not explicitly state the fix was deployed.

How it was found

  1. A user writes a profile bio and adds special formatting.
  2. The system stores the formatted content.
  3. Other users viewing the profile see that content rendered dynamically.
  4. The team used a harmless test payload to confirm code execution.
  5. They documented the field, data flow, browser context, and whether authentication was needed.

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 their own code into a page that other people view. Here, a profile bio field was supposed to clean up formatting but missed one attribute, and the bio was placed inside a JavaScript template string, so the code ran in visitors' browsers. This is called stored XSS because the malicious content is saved and shown to everyone who views the profile.

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 cybervolt

View all

4 more disclosed reports, 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.