Rapid7 Vulnerability & Exploit Database

OpenMediaVault rpc.php Authenticated PHP Code Injection

Back to Search

OpenMediaVault rpc.php Authenticated PHP Code Injection

Disclosed
09/28/2020
Created
11/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(s)

  • Anastasios Stasinopoulos

Platform

Linux,Unix

Architectures

cmd, x86, x64

Development

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

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;