Rapid7 Vulnerability & Exploit Database

Apache RocketMQ update config RCE

Back to Search

Apache RocketMQ update config RCE

Disclosed
05/23/2023
Created
07/06/2023

Description

RocketMQ versions 5.1.0 and below are vulnerable to Arbitrary Code Injection. Broker component of RocketMQ is leaked on the extranet and lack permission verification. An attacker can exploit this vulnerability by using the update configuration function to execute commands as the system users that RocketMQ is running as. Additionally, an attacker can achieve the same effect by forging the RocketMQ protocol content.

Author(s)

  • Malayke
  • jheysel-r7
  • h00die

Platform

Linux,Unix

Architectures

cmd

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

;