Skip to content
RCE Write-up Advanced

Relution Remote Code Execution via Java Deserialization Vulnerability

The Relution MDM application deserialised attacker-supplied messages in its JGroups inter-cluster communication handler, which was started even when clustering was disabled. An attacker with network access to the cluster port could send a crafted serialised object and, via a gadget chain, potentially achieve remote code execution.

Adam Crosser Follow

Published on praetorian.com

In this article we discuss a recent deserialization vulnerability we found in Relution (CVE-2023-48178), a mobile device management product that is popular among multinational German corporations. CVE-2023-48178 can potentially lead to remote code execution and complete compromise of the MDM application and clients…

Justin Copeland, on praetorian.com

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 cluster service called ObjectInputStream.readObject on network messages without any allow-list or type filtering, and it started regardless of whether clustering was configured.

Impact

The flaw could lead to remote code execution and full compromise of the MDM application and managed clients, but on Java 17 the public TemplatesImpl-based chain failed, and the authors did not complete a working RCE chain in this article.

What the attacker needed

Network access to cluster port 7800; multi-cluster deployment component reachable

How it was found

  1. Reverse engineer the JGroups packet structure and protocol.
  2. Build a JGroups BytesMessage that reaches the handle function.
  3. Send the message so the application deserialises it.
  4. Use the CommonsBeanutils1 gadget chain present on the classpath to attempt a reverse shell.

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.

Some Java programs turn a stream of bytes back into live objects, a process called deserialisation. If an attacker can control those bytes, they can smuggle in objects that make the program run code of their choosing, often by chaining existing library classes together (a gadget chain). Here the cluster-communication service accepted such messages and was running even when clustering was switched off.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Adam Crosser

View all

8 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.