Skip to content
XSS Disclosed report Beginner

Persistent XSS in https://sandbox.reverb.com/item/

A listing's SoundCloud link field was not encoded on output and only validated on the client side, so an attacker could store a script payload that runs when a victim views the listing. This could deface stores, block access, or perform actions as the victim.

bigshaq Follow

Originally disclosed on HackerOne

  • Triaged in 17 hours
  • Fixed in 3 days
  • Paid in 22 hours
  • Disclosed after 33 days

Description

I found a Persistent XSS in a listing page. The flaw is in the SoundCloud link that the listing owner can attach(The parameter is called product[soundcloud_link_attributes][link]). There's no encoding on the user input and it looks like there's only client-side validation.

PoC

The payload:

https://soundcloud.com/rich-the-kid/sets/the-world-is-yours-15?fuzzing" onload=alert(document.domain) x="

If you try to put this payload straight into the "Edit Listing" page it'll give you the following error:

https://sandbox.reverb.com/listings/[YOUR_LISTING_ID]/edit
pxss1.png
pxss1.png From the original on HackerOne

But it looks like there's only client side validation, when I tried to enter a valid link:

https://soundcloud.com/rich-the-kid/sets/the-world-is-yours-15

I got no error message(because it was a valid link) But when I clicked "Save & Review Listing", intercepted the request and tampered the product[soundcloud_link_attributes][link] parameter's value to:

https://soundcloud.com/rich-the-kid/sets/the-world-is-yours-15?fuzzing" onload=alert(document.domain) x="

It updated successfully and because there's no encoding on this input parameter - it allowed me to inject javascript code that'll be stored on my listing page.

alert.png
alert.png From the original on HackerOne

PoC Video: https://youtu.be/Y-8W422hLOw

Impact

An attacker can:

  • Perform a defacement on every possible store in the website (all he need is a single click from the victim)
  • Deny future access from any other shop owner that access this listing(with the self-PXSS that i reported 2 days ago: https://hackerone.com/reports/331725 )
  • Perform operations in the application on behalf of the victim

The hacker selected the Cross-site Scripting (XSS) - Stored weakness. This vulnerability type requires contextual information from the hacker. They provided the following answers:

URL https://sandbox.reverb.com/item/

Verified Yes

The original report as published on HackerOne, by bigshaq. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could deface any store with a single victim click, deny future access to the listing, or perform operations on behalf of the victim.

What the attacker needed

A seller account to create or edit a listing; victim views the malicious listing

How it was found

  1. Enter a valid SoundCloud link in the listing edit page to pass client-side validation.
  2. Intercept the save request and replace the SoundCloud link parameter with a payload containing an event handler.
  3. Submit the tampered request, which updates the listing successfully.
  4. View the listing page, where the stored 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 report has not been written yet. The Original tab links to the source.

When a website saves text from a user and later shows it on a page without cleaning it, an attacker can include code that the browser runs. Here the SoundCloud link field was saved without proper checks, so a malicious link could run script in the browser of anyone who viewed the listing.

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 bigshaq

View all

4 more disclosed reports, best first.

More from Reverb.com

View all

The newest disclosed reports for this program.

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.