Skip to content
XSS Disclosed report Beginner

stored xss in transaction

The wallet name and transaction description fields did not properly sanitise user input, allowing stored cross-site scripting. An attacker could inject script that executes when a victim views the transaction history or details.

Andrey Leonov Follow

Originally disclosed on HackerOne

  • Triaged in 6 days
  • Fixed in 7 days
  • Paid in 7 days
  • Disclosed after 3 months
  1. Open wallet settings and remove maxlength="30" from wallet name input
  2. Change name to something like this asdf'"><script>alert(1)</script>
  3. Go to "Send bitcoin" and make inbound transfer from one wallet to another with description: desc<script>alert('xss in description')</script>
  4. Submit form
  5. After submit we got xss both in "from account" name and "to account" name
  6. Go to transaction history https://wallet.robocoin.com/account/6428d1d8-c499-46ab-8587-74260d898f34
  7. Open single transaction details and we got xss in "from account" name, "to account" name and description.

"To Robocoin wallet" feature has the same fields "from account" and description and may be also affected. If you approve my second account [email protected] i will test it. And i think that this issue may affect admin panel.

Attachments

xss_0_1.jpg
xss_0_1.jpg From the original on HackerOne
xss_0_2.jpg
xss_0_2.jpg
xss_0_4.png
xss_0_4.png
xss_0_3.jpg
xss_0_3.jpg
xss_0_5.png
xss_0_5.png
xss_0_6.png
xss_0_6.png
xss_0_7.png
xss_0_7.png

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

Ability to set wallet name; ability to create a transaction

How it was found

  1. Open wallet settings and remove the maxlength attribute from the wallet name input.
  2. Change the wallet name to a script payload.
  3. Go to 'Send bitcoin' and create an inbound transfer with a description containing a script payload.
  4. Submit the form.
  5. Observe the script executing in the 'from account' and 'to account' names.
  6. Open transaction history and a single transaction detail to see the script execute in the names and description.

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.

Stored cross-site scripting (XSS) happens when a website saves harmful code and later shows it to other users without cleaning it. Here, the wallet name and description fields accepted script code, so anyone viewing the transaction would run that code in their browser.

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 Andrey Leonov

View all

26 more disclosed reports, best first.

More from Enter

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.