Skip to content
RCE Advisory Advanced

GHSL-2020-136: Unsafe deserialization vulnerabilties in Lumisoft .NET and Lumisoft MailServer

Lumisoft MailServer deserialises untrusted XML into a DataSet in an unauthenticated command, and its client libraries deserialise server responses. An attacker could achieve pre-auth remote code execution on the server or, in a man-in-the-middle scenario, on the client.

jarlob Follow

Originally disclosed on GitHub Security Lab

Lumisoft .NET & Lumisoft MailServer is extensively using deserialization of user supplied data into a DataSet object.

jarlob, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application used DataSet.ReadXml on untrusted input, which is known to be unsafe and can lead to code execution.

Impact

This could lead to pre-auth remote code execution on the server, or local privilege escalation if the endpoint is not remotely accessible and the server runs as a privileged process; on the client side, it could lead to pre-auth RCE in a man-in-the-middle scenario or if the user connects to a malicious server.

What the attacker needed

Network access to port 5252; default config allows only localhost

How it was found

  1. Connect to the server on port 5252.
  2. Send the UPDATESETTINGS command with a virtual server ID and a data length.
  3. Send XML data that is read into a DataSet.

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 report has not been written yet. The Original tab links to the source.

Deserialisation is when a program turns data (like XML) back into objects. If that data comes from an attacker, the program can be tricked into creating dangerous objects that run code. Here, the mail server accepted XML from anyone and turned it into a DataSet without checking it, which could let an attacker run their own code on the server.

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 jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.