JBoss EAP/AS <= 6.* RCE - A little bit beyond \xAC\xED
A pre-authentication remote code execution flaw exists in JBoss EAP/AS 6.x, where a crafted serialised Java object sent to the server is deserialised and can execute attacker-supplied code. An attacker could run arbitrary commands on the server without logging in.
As stated by @joaomatosf this is an old but gold vulnerability found by himself and shared in two distinct security conference in Brazil, this vulnerability was part of a training he gave alongside with two other colleagues, check his tweet.
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 server deserialises untrusted, attacker-controlled serialised Java objects without validating their classes, allowing gadget chains to execute code.
Impact
An unauthenticated attacker could execute arbitrary code on the vulnerable JBoss server.
What the attacker needed
Network access to the JBoss service; no login required
How it was found
- Build a malicious serialised Java payload with ysoserial
- Run the exploit tool against the target, supplying the payload file and a port
- The server deserialises the payload and executes the attacker's code
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.
When a Java server receives certain data, it can rebuild ('deserialise') objects from it. If the server trusts that data without checking it, an attacker can send a specially built object that runs their own code on the server. Here this happens before any login, so no account is needed.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.