Cross-site Scripting (XSS) - Stored in btcpayserver/btcpayserver
Reported on
Sep 6th 2021
✍️ Description
stored xss bug via link in store
🕵️♂️ Proof of Concept
1. goto https://mainnet.demo.btcpayserver.org/stores
and create a store .
2. Now open that store using url https://mainnet.demo.btcpayserver.org/stores/BuBNcrh8vpu4sMcTikqXoP5pXU49hvoFDyqAoA46Tns2
and change website link to javascript:alert(document.domain)
.
3. Now goto https://mainnet.demo.btcpayserver.org/stores
and click that link and see xss is executed
VIDEO
https://drive.google.com/file/d/1EBFvjw2iOmDnsXOBy-zRxwTtMNLHJ_eh/view?usp=sharing
💥 Impact
Stored xss bug allow to execute arbitary javascript code in victim account .
I see you can add many user to your store . So , using this bug you invite victim to your store and then performe xss attack against him
Occurrences
Fixed by https://github.com/btcpayserver/btcpayserver/commit/7f40698bba675a3dfbda6584de84d6f3ff68443a