JMX Exploitation Revisited
The JMX service exposes default MBean classes (StandardMBean and RequiredModelMBean) that allow remote invocation of arbitrary instance methods on serializable objects and arbitrary static methods on any class. An attacker with access to the JMX endpoint could achieve remote code execution by invoking methods like TemplatesImpl.getOutputProperties() or System.setProperty().
Published on codewhitesec.blogspot.com
The Java Management Extensions (JMX) are used by many if not all enterprise level applications in Java for managing and monitoring of application settings and metrics. While exploiting an accessible JMX endpoint is well known and there are several free tools available, this blog post will present new insights and a…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the default JMX MBean classes StandardMBean and RequiredModelMBean allow remote invocation of arbitrary methods (including static methods) on serializable objects, which can be abused to trigger code execution.
Impact
An attacker with access to the JMX endpoint could achieve remote code execution on the server.
What the attacker needed
Access to JMX endpoint
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
JMX is a Java technology for managing and monitoring applications. If a JMX endpoint is exposed without proper authentication, an attacker can use built-in classes to make the server run arbitrary code. This post shows a new way to do that without needing extra conditions like the server connecting back to the attacker.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.