Bug Bounty Journey — Valid Report Part 12
A stored cross-site scripting vulnerability existed in a document-sharing feature where an admin could set a document link. An attacker could inject a javascript: URL into the link, which would execute when another user clicked it.
medium.com
Published on medium.com
In this journey, I will share my experience with a valid report I submitted. This will be a series until I discover new vulnerabilities. 😊 Let’s begin!
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 validate or sanitise the URL scheme in the document link, allowing a javascript: URI to be stored and later rendered as a clickable link.
Impact
An attacker with admin privileges could execute arbitrary JavaScript in the context of other users who click the shared document link, potentially leading to session compromise or other client-side attacks; the severity was downgraded to Low.
What the attacker needed
Admin-level account; victim clicks the shared document link
How it was found
- As an admin, create a document and use the share feature.
- Intercept the sharing request and change the document link to a javascript: URL.
- Visit the document from a different account and click the link.
- Observe the XSS popup executing.
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 users' browsers. Here, a link field accepted a 'javascript:' address, so clicking the link ran the attacker's script. This could let an attacker do things like steal session data or act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.