module

Kong Gateway Admin API Remote Code Execution

Disclosed
2020-10-13
Created
2020-12-03

Description

This module uses the Kong admin API to create a route and a serverless function plugin that is associated with
the route. The plugin runs Lua code and is used to run a system command using os.execute(). After execution the
route is deleted, which also deletes the plugin.

Author

Graeme Robinson

Platform

Linux,OSX

Architectures

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/multi/http/kong_gateway_admin_api_rce
msf exploit(kong_gateway_admin_api_rce) > show targets
...targets...
msf exploit(kong_gateway_admin_api_rce) > set TARGET < target-id >
msf exploit(kong_gateway_admin_api_rce) > show options
...show and set options...
msf exploit(kong_gateway_admin_api_rce) > exploit

Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.