HexBrain

Nextcloud · Report #1781751

Ability to control the filename when uploading a logo or favicon on theming

Validstatus
lowseverity
6upvotes
10 Apr 2023disclosed

Summary

Security advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-ch7f-px7m-hg25

How it was found

Summary:

Hello,

When uploading a logo or favicon the filename can be controlled by attacker since the key can be modified which serves as the filename.

{F2044799}

{F2044800}

{F2044798}

Due to an error the path is also disclosed

{F2044802}

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. go to http://localhost/settings/admin/theming
  2. upload a logo or favicon
  3. intercept the request using burp
  4. modify the key

Impact

The attacker can upload any files directly in the webapp and path disclosure. Combining both information can be useful in later attacks.

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