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.
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.
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
- Log in with the attacker's account and go to Settings → Profile.
- Change the first and last name fields to contain script payloads and save.
- Upload a PDF document and add a victim user as a participant.
- Decline to sign the document, entering a reason.
- The stored script executes when the attacker's name is rendered.
- 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.