XSS via Client Side Template Injection in btcpayserver/btcpayserver
Reported on
Mar 6th 2023
Description
Hi Team!
First, when creating an app and in the "display title" if you change it to {{7'*7}}, and you get it, you can see your name become 49.
I think it might be a remote code execution vulnerability via server side template injection, but there is a length limit :(
By changing Display Title to {{alert(document.location)}} it is possible to trigger XSS.
Proof of Concept
Impact
Execution of malicious code, Theft of confidential data , Compromise of the website,Disclosure of confidential information,Additional security vulnerabilities.
Thanks Nicolas, is this find eligible for bounty and cve? Greetings
https://github.com/btcpayserver/btcpayserver/pull/4747
Should be fixed on https://mainnet.demo.btcpayserver.org/apps/3iyZm7qqnKojRxwQW94XWJZkYNXS/crowdfund