Rapid7 Vulnerability & Exploit Database

Kafka UI Unauthenticated Remote Command Execution via the Groovy Filter option.

Back to Search

Kafka UI Unauthenticated Remote Command Execution via the Groovy Filter option.

Disclosed
09/27/2023
Created
02/17/2024

Description

A command injection vulnerability exists in Kafka ui between `v0.4.0` and `v0.7.1` allowing an attacker to inject and execute arbitrary shell commands via the `groovy` filter parameter at the `topic` section.

Author(s)

  • h00die-gr3y <h00die.gr3y@gmail.com>
  • BobTheShopLifter and Thingstad

Platform

Linux,Unix

Architectures

cmd, x64, x86

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

;