XSS in Desktop Client in the notifications
The Nextcloud Desktop Client did not neutralise file names before displaying them in its notification and main dialog windows. An attacker who could name a file on a shared server could inject HTML that the desktop client rendered.
b911bade858ce8e6a0f50f8 Follow
Originally disclosed on HackerOne
- Triaged in 3 days
- Fixed in 41 days
- Paid in 3 months
- Disclosed after 3 months
Summary by the program
Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-c3xh-q694-6rc5
The report
Summary:
The Nextcloud Desktop Client application does not properly neutralize the names of files before using them.
Steps To Reproduce:
Server Machine
- Install the
Nextcloud Serverapplication - Log into your account
Client Machine
- Install the
Nextcloud Desktop Clientapplication onto a machine that is running theWindows 10operating system - Log into your account
Server Machine
- Upload any file to your
Nextcloud Serverinstance - Rename the file that you uploaded to
<h1><b><i><u>MikeIsAStar
Client Machine
- Wait until a notification appears exclaiming that some files could not synchronized
- Open the main dialog window of the
Nextcloud Desktop Clientapplication - Observe that the name of the file that you uploaded is treated as
HyperText Markup Language
Supporting Material/References:

Impact
An attacker can inject arbitrary HyperText Markup Language into the Nextcloud Desktop Client application.
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
Root cause
Likely the desktop client rendered file names as HTML in its notification and dialog UI without escaping them.
Impact
An attacker could inject arbitrary HTML into the desktop client.
What the attacker needed
Nextcloud Server account; Nextcloud Desktop Client on Windows 10; ability to upload and rename a file
How it was found
- Install and log into the Nextcloud Server.
- Install the Nextcloud Desktop Client on Windows 10 and log in.
- Upload a file to the server and rename it to a name containing HTML markup.
- Wait for the synchronisation failure notification.
- Open the client's main dialog and observe the file name rendered as HTML.
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.
When a program shows text it received from somewhere else, it must treat that text as plain text, not as instructions. Here the desktop app showed a file name as if it were a web page, so a crafted name could carry hidden markup. An attacker who can put a file on the server could then make the victim's desktop app display attacker-controlled content.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.