Exploit database

Vulnerability

CVE-2020-13151

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

Aerospike Community Edition 4.9.0.5 allows for unauthenticated submission and execution of user-defined functions (UDFs), written in Lua, as part of a database query. It attempts to restrict code execution by disabling os.execute() calls, but this is insufficient. Anyone with network access can use a crafted UDF to execute arbitrary OS commands on all nodes of the cluster at the permission level of the user running the Aerospike service.

CVE Program

Exploit source choices

4 sources
Aerospike Database UDF Lua Code Execution
MSF-linux--misc--aerospike_database_udf_cmd_execMetasploitLinux,Unix / remote

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.

2020-07-31aerospike_database_udf_cmd_exec.rb
b4ny4n/cve-2020-13151
GH-6c41aa93124c9c2f56650cbfa4272e27GitHubUnofficial GitHub source

POC for CVE-2020-13151

2020-08-014 files · 43 stars