Nextcloud · Report #685491
Persistent XSS on favorite via filename
Validstatus
mediumseverity
3upvotes
12 Dec 2019disclosed
How it was found
CVSS
Medium 6.4 CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Description
The name of a file is echoed without encoding when favoring the file, leading to persistent XSS.
POC
To place the payload:
- Create a file called
test'"><img src=x onerror=alert(document.location)>.pdfand upload it.
To trigger the payload:
- click on ... next to the file followed by "add to favorites". The payload will trigger here.
Impact
With a successful attack, an attacker can access all data the attacked user has access to, as well as perform arbitrary requests in the name of the attacked user.