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.
- 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:
- Go to https://coinbase.com/merchant_tools?link_type=email_invoice
- Fill in valid email.
- Subject; Payment request from "><img src=y onerror=prompt(1)>
- Total Bitcoin 1 and for order put a "><img src=y onerror=prompt(1)>
- Description and Customer ID as a "><img src=y onerror=prompt(1)>
- Send the Invoice.
- Go to transaction page and click on the pending transaction.
- 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
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
- Open the merchant tools email invoice page.
- Enter a valid email address.
- Put an HTML image tag with an error handler in the subject, total, description and customer ID fields.
- Send the invoice.
- Open the transaction page and click the pending transaction.
- 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.