Skip to content
XSS Write-up Beginner

Here's How I Got My First Bounty: €1000 by Exploiting a Stored XSS

The application stored unsanitised first and last name values from a user's profile and rendered them without encoding in document-sharing interfaces. An attacker could inject JavaScript that executed in other users' browsers when they viewed a shared document or the participants list.

sohelparashar Follow

Published on medium.com

Bug bounty hunting is a journey of curiosity, persistence, and precision. After countless hours of recon, trial, and error, I finally achieved a milestone I’ll never forget: my first bug bounty of €1000.

Risky, 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 failed to encode or sanitise user-supplied profile fields before rendering them in HTML.

Impact

The stored script could execute persistently for other users, potentially allowing session cookie theft, impersonation, or phishing, and worked across Chrome, Firefox, and Edge.

What the attacker needed

Attacker account; victim account; victim opens shared document

The fix

The issue was fixed by the platform's security team after responsible disclosure.

How it was found

  1. Log in with the attacker's account and go to Settings → Profile.
  2. Change the first and last name fields to contain script payloads and save.
  3. Upload a PDF document and add a victim user as a participant.
  4. Decline to sign the document, entering a reason.
  5. The stored script executes when the attacker's name is rendered.
  6. Log in as the victim, open the shared document, and the script executes again in the participants section.

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.

Stored cross-site scripting (XSS) happens when a website saves text a user types, like a name, and later shows it to other people without making it safe. If that text contains code, the browser runs it as if the website itself had written it. Here, an attacker put code in their profile name, and it ran when victims opened a shared document.

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 sohelparashar

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.