Rapid7 Vulnerability & Exploit Database

Aerospike Database UDF Lua Code Execution

Back to Search

Aerospike Database UDF Lua Code Execution



Aerospike Database versions before 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, and


  • b4ny4n
  • bcoles <bcoles@gmail.com>




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