The lab demonstrates the exploitation of the vulnerability CVE-2023-46604 which is a Remote Code Execution (RCE) vulnerability in the Java OpenWire protocol. The vulnerability allows threat actors to run arbitrary shell commands by manipulating the serialized class types in the OpenWire protocol to make the Java runtime load and instantiate any class in its classpath.
The vulnerability in Apache ActiveMQ's OpenWire implementation arises from the marshaller, a component responsible for serialization and deserialization, failing to validate the class type in the provided OpenWire command. As a result, it allows an attacker to instantiate any class they specify, as long as it is present in the runtime's classpath.
For further details, please refer to https://cve.mitre.org/cgi-bin/cvename.cgi?name=2023-46604
Based on the basic description of the vulnerability, we understand that for the exploit to work, the attacker must have network access to a server running the vulnerable software—specifically, the public server in our case—in order to send the malicious OpenWire command to it.
From the packet capture, we can see that IP 146.190.21.92 was communicating with the service using OpenWire. Additionally, we can see the IP sending an OpenWire Exception Respo…