module

OpenMediaVault rpc.php Authenticated PHP Code Injection

Disclosed
Sep 28, 2020
Created
Nov 25, 2020

Description

This module exploits an authenticated PHP code injection
vulnerability found in openmediavault versions before 4.1.36
and 5.x versions before 5.5.12 inclusive in the "sortfield"
POST parameter of the rpc.php page, because "json_encode_safe()"
is not used in config/databasebackend.inc.
Successful exploitation grants attackers the ability to execute
arbitrary commands on the underlying operating system as root.

Author

Anastasios Stasinopoulos

Platform

Linux

Architectures

x86, x64

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/unix/webapp/openmediavault_rpc_rce
msf exploit(openmediavault_rpc_rce) > show targets
...targets...
msf exploit(openmediavault_rpc_rce) > set TARGET < target-id >
msf exploit(openmediavault_rpc_rce) > show options
...show and set options...
msf exploit(openmediavault_rpc_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.