
CVE-2023-33246 - Apache RocketMQ config RCE
CVE-2023-33246 - Apache RocketMQ 配置远程代码执行漏洞
RocketMQ 是一个分布式消息流平台。
RocketMQ 5.1.0 及以下版本存在任意代码注入漏洞。RocketMQ 的 Broker 组件暴露在外部网络,且缺乏权限验证。攻击者可以利用此漏洞,通过更新配置功能以运行 RocketMQ 的系统用户身份执行命令。此外,攻击者还可以通过伪造 RocketMQ 协议内容达到同样效果。
usage: check.py [-h] [--ip IP] [--file FILE] [--port PORT] [--cidr CIDR]
检查 CVE-2023-33246 RocketMQ RCE 漏洞
可选参数:
-h, --help 显示此帮助信息并退出
--ip IP 要检查的单个 IP 地址
--file FILE 包含 IP 地址列表的文件,每行一个
--port PORT 连接服务器时使用的端口号(默认为 9876)
--cidr CIDR 要扫描的 CIDR 范围(例如 1.2.3.0/24)
python3 check.py --ip 127.0.0.1 --port 9876
python3 check.py --cidr 192.168.1.0/24
# 或
python3 check.py --file rocketmq_targets.txt --port 9876
# 文件中的目标格式:
# ip
# ip:port
# http://ip:port