module

Kong Gateway Admin API Remote Code Execution

Disclosed
Oct 13, 2020
Created
Dec 3, 2020

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

Unix

Architectures

cmd

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