HexBrain

Nextcloud · Report #1403614

Possibility to force an admin to install recommended applications

Validstatus
lowseverity
$100bounty
10upvotes
29 Apr 2022disclosed

Summary

Advisory at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-5vw6-6prg-gvw6

How it was found

Summary:

Endpoint /nextcloud/index.php/core/apps/recommended is accessible via GET http method and doesn't check anti-csrf token. If an admin visits this endpoint in a browser the process of installation of recommended applications begins immediately.

Steps To Reproduce:

  1. an attacker creates a malicious page on controlled domain
  2. an attacker enforce an admin to visit this page
  3. an admin visits this page
  4. applications will be installed in a while

Affected version:

nextcloud/server: 22.2.2 (at least)

Recommendation:

require requesttoken for this GET query or you can change behaviour so to initiate the installation process by manual click (POST query with checking of requesttoken)

[attachment / reference]

{F1517676}

Impact

Increasing of attack surface. Any unused plugins should be disabled or removed. But this way allows to install them.

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