Rapid7 Vulnerability & Exploit Database

Aerospike Database UDF Lua Code Execution

Back to Search

Aerospike Database UDF Lua Code Execution

Disclosed
07/31/2020
Created
12/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.

Author(s)

  • b4ny4n
  • bcoles <bcoles@gmail.com>

Platform

Linux,Unix

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/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

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

;