How I Almost Found 5,000$ Bug But Reported Too Early - My Multi-Endpoint XSS Story
The application stored user-supplied HTML in profile, job, and task descriptions without sanitisation, and rendered it in staff dashboards. An attacker could inject a blind XSS payload that would execute in a staff member's browser, potentially compromising their account.
When a brand-new bug bounty program dropped on XYZ platform, I jumped on it immediately. Like everyone else, I wanted to be the first to find something big.
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 server accepted and stored raw HTML from user input without sanitising it, then rendered it unsafely in staff-facing pages.
Impact
A blind XSS payload could execute in staff dashboards, potentially leaking cookies and tokens and leading to staff account compromise and privilege escalation.
What the attacker needed
A user account; ability to set a description; staff reviews the description
The fix
The program patched everything after another researcher reported the same bug.
How it was found
- Change a profile description to include an HTML tag with an event handler.
- Observe that the server wraps the input in paragraph tags and returns it unchanged.
- Confirm the HTML persists and appears in responses.
- Realise that staff review these descriptions, making it a blind XSS vector.
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.
The website let people type descriptions that could contain HTML code, and it saved that code without cleaning it. When staff later viewed those descriptions, any hidden JavaScript in the HTML would run in the staff member's browser. This is called stored cross-site scripting (XSS), and it can let an attacker steal the staff member's session or perform actions as them.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.