Nextcloud · Report #1403614
Possibility to force an admin to install recommended applications
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:
- an attacker creates a malicious page on controlled domain
- an attacker enforce an admin to visit this page
- an admin visits this page
- 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.