Skip to content
XSS Disclosed report Beginner

Invoice Details activate JS that filled in

The invoice creation form did not sanitise user-supplied fields such as subject, total, description and customer ID, so an attacker could inject HTML that ran JavaScript when the pending transaction was viewed. This allowed script execution in the context of the Coinbase merchant tools page.

Sasi Levi Follow

Originally disclosed on HackerOne

  • Fixed in 30 hours
  • Paid in 30 hours
  • Disclosed after 8 months

Hello security team,

I found XSS on pending invocation details. (Tested on Firefox). Scenario:

  1. Go to https://coinbase.com/merchant_tools?link_type=email_invoice
  2. Fill in valid email.
  3. Subject; Payment request from "><img src=y onerror=prompt(1)>
  4. Total Bitcoin 1 and for order put a "><img src=y onerror=prompt(1)>
  5. Description and Customer ID as a "><img src=y onerror=prompt(1)>
  6. Send the Invoice.
  7. Go to transaction page and click on the pending transaction.
  8. XSS will be activate on the total field and form field, mine is From:

"><img src=y onerror=prompt(1)> ([email protected])

Attached recording POC. Best Regards,

Sasi

The original report as published on HackerOne, by sasi2103. 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

What the attacker needed

Access to merchant tools; victim views the pending invoice

How it was found

  1. Open the merchant tools email invoice page.
  2. Enter a valid email address.
  3. Put an HTML image tag with an error handler in the subject, total, description and customer ID fields.
  4. Send the invoice.
  5. Open the transaction page and click the pending transaction.
  6. The script runs in the total and form fields.

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.

Cross-site scripting (XSS) happens when a website puts user input into a page without cleaning it first. Here, text typed into an invoice form was later shown as if it were part of the page, so a script hidden in that text ran in the browser of anyone who opened the invoice.

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 Sasi Levi

View all

5 more disclosed reports, best first.

More from Coinbase

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.