Stored XSS in Bandcamp
The Item Title field of a merchandise listing was not properly sanitised when rendered in the Buy Now frame, allowing an attacker to inject and execute arbitrary JavaScript. An attacker could make a victim follow the attacker's account and set a cookie for all Bandcamp subdomains.
Published on corben.io
Recently, while my friend Alyssa Herrera and I were collaborating on finding ffmpeg vulnerabilities in bug bounty programs, we came to learn that Bandcamp ran a bug bounty program. If you have never heard of BandCamp, it is essentially a platform that allows artists, fans, and labels to interact, connect, and support…
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 Item Title was sanitised on the main merchandise page but not in the Buy Now frame, so the same input was rendered unsafely in that context.
Impact
An attacker could execute JavaScript in a victim's browser to make them follow the attacker's account and set a cookie for all Bandcamp subdomains.
What the attacker needed
A free artist account; victim views the merchandise and clicks Buy Now
The fix
The report states the issue was patched after being confirmed.
How it was found
- Sign up for an artist account and create a Bandcamp page.
- Use the Add Merch function and enter a simple XSS payload in the Item Title and Description fields.
- Save and publish the merchandise; the payload is sanitised on the main page.
- Click the Buy Now button, which opens a new frame where the payload executes.
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.
A stored cross-site scripting (XSS) flaw lets an attacker save malicious code on a website, which then runs in other visitors' browsers. Here, the merchandise title was cleaned on the main page but not in the pop-up frame shown when someone clicked Buy Now, so the code ran there.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.