module

OpenMediaVault rpc.php Authenticated PHP Code Injection

Disclosed
2020-09-28
Created
2020-11-25

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,Unix

Architectures

cmd, 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
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.