Exploit database

Vulnerability

CVE-2023-26482

Scope of workflow operations is not validated in nextcloud server

Vulnerability details

Score
9.1
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Description

Nextcloud server is an open source home cloud implementation. In affected versions a missing scope validation allowed users to create workflows which are designed to be only available for administrators. Some workflows are designed to be RCE by invoking defined scripts, in order to generate PDFs, invoking webhooks or running scripts on the server. Due to this combination depending on the available apps the issue can result in a RCE at the end. It is recommended that the Nextcloud Server is upgraded to 24.0.10 or 25.0.4. Users unable to upgrade should disable app `workflow_scripts` and `workflow_pdf_converter` as a mitigation.

CVE Program

Exploit source choices

1 source
Nextcloud Workflows Remote Code Execution
MSF-unix--webapp--nextcloud_workflows_rceMetasploitLinux,Unix / remotePreferred

This module adds workflows as an authenticated user which can only be created by administrators by design. If the app "Nextcloud Workflow Script" is installed it is possible to generate a workflow that executes commands.

2023-03-30nextcloud_workflows_rce.rb