Skip to content
XSS Write-up Beginner

The 2.5 BTC Stored XSS

The referral sign-up page displayed the names of users who registered via a referral link without proper sanitisation, allowing a stored cross-site scripting attack. An attacker could register accounts with malicious names so that the payload executed when the victim viewed their notifications page.

Khaled Hassan Follow

Published on medium.com

In September 2016, I had found a simple Stored XSS that I earned 2.5 BTC for it from a crypto exchange platfrom. and In this time I was trading too much in cryptocurrencies and I was trying to find the best crypto exchange platform that I can trade on it easily without any restrictions, so I decided to find a one.

Khaled Hassan, on medium.com

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 application inserted the referrer's account name into the notification page without encoding or sanitising it.

Impact

An attacker could run script in the browser of any user whose referral link was used, potentially affecting all users by enumerating user IDs.

What the attacker needed

A free account; victim views notification page

How it was found

  1. Register a new account using a referral link.
  2. Set the account name to a script payload.
  3. Open the notification page to see the payload execute.

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 means a website saves text a user typed and later shows it to other people without making it safe. Here, the name chosen during sign-up was shown on the referral owner's notification page, so a name containing code ran in the browser of anyone who looked at that page.

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 Khaled Hassan

View all

4 more disclosed reports, best first.

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.