Apache ActiveMQ: Insufficient API restrictions on Jolokia allow authenticated users to perform RCE
Apache Software Foundation Apache ActiveMQ
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.activemq:apache-activemq Maven |
|
|
Original description
Once an user is authenticated on Jolokia, he can potentially trigger arbitrary code execution.
In details, in ActiveMQ configurations, jetty allows org.jolokia.http.AgentServlet to handler request to /api/jolokia
org.jolokia.http.HttpRequestHandler#handlePostRequest is able to create JmxRequest through JSONObject. And calls to org.jolokia.http.HttpRequestHandler#executeRequest.