Rapid7

module

Aerospike Database UDF Lua Code Execution

Disclosed
Jul 31, 2020
Created
Dec 10, 2020

Description

Aerospike Database versions before 5.1.0.3 permitted
user-defined functions (UDF) to call the `os.execute`
Lua function.

This module creates a UDF utilising this function to
execute arbitrary operating system commands with the
privileges of the user running the Aerospike service.

This module does not support authentication; however
Aerospike Database Community Edition does not enable
authentication by default.

This module has been tested successfully on Ubuntu
with Aerospike Database Community Edition versions
4.9.0.5, 4.9.0.11 and 5.0.0.10.

Authors

b4ny4n
bcoles [email protected]

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/linux/misc/aerospike_database_udf_cmd_exec
msf exploit(aerospike_database_udf_cmd_exec) > show targets
...targets...
msf exploit(aerospike_database_udf_cmd_exec) > set TARGET < target-id >
msf exploit(aerospike_database_udf_cmd_exec) > show options
...show and set options...
msf exploit(aerospike_database_udf_cmd_exec) > 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.