HexBrain

Nextcloud · Report #1668028

XSS in Desktop Client in the notifications

Validstatus
lowseverity
$750bounty
50upvotes
25 Nov 2022disclosed

Summary

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-c3xh-q694-6rc5

How it was found

Summary:

The Nextcloud Desktop Client application does not properly neutralize the names of files before using them.

Steps To Reproduce:

Server Machine

  1. Install the Nextcloud Server application
  2. Log into your account

Client Machine

  1. Install the Nextcloud Desktop Client application onto a machine that is running the Windows 10 operating system
  2. Log into your account

Server Machine

  1. Upload any file to your Nextcloud Server instance
  2. Rename the file that you uploaded to <h1><b><i><u>MikeIsAStar

Client Machine

  1. Wait until a notification appears exclaiming that some files could not synchronized
  2. Open the main dialog window of the Nextcloud Desktop Client application
  3. Observe that the name of the file that you uploaded is treated as HyperText Markup Language

Supporting Material/References:

{F1864812}

Impact

An attacker can inject arbitrary HyperText Markup Language into the Nextcloud Desktop Client application.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original