Skip to content
RCE Write-up Advanced

The real slim shady || Ivanti Endpoint Manager (EPM) Pre-Auth RCE CVE-2024-29847

The Ivanti Endpoint Manager Agent Portal service uses .NET Remoting with a low type filter, allowing an unauthenticated attacker to exploit a deserialization flaw and achieve remote code execution. The author demonstrates a technique to bypass the type filter and write a web shell to an IIS directory.

summoning.team

Published on summoning.team

ivanti just pushed a patch for a Critical CVSS 9.8 (Critical) Remote Code Execution Vulnerability that I reported on May 1st 2024, impacting Ivanti Endpoint Manager (EPM). the following blog post I will be publishing the fully working unauthenticated exploit and detail how this bug class works.

The author, on summoning.team

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 service uses .NET Remoting with a low type filter, which still allows deserialization of dangerous objects that can be abused to perform file operations and execute code.

What the attacker needed

Network access to the Agent Portal service; No authentication required

How it was found

  1. The Agent Portal service starts and registers a TCP channel with security disabled.
  2. The service registers the IAgentPortal service as a well-known service type.
  3. An attacker sends a crafted serialized message to the service's dynamic port.
  4. The attacker bypasses the low type filter using a Hashtable trick to obtain a FileInfo or DirectoryInfo object.
  5. The attacker uses the file object to write a web shell to an IIS application pool directory.
  6. The attacker accesses the web shell to execute arbitrary 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.

This report describes a security hole in a program that lets attackers run their own code on a server without needing to log in. The problem is that the program uses an old Microsoft technology that is unsafe when it receives data from the network, and the attacker can send specially crafted data to take control.

What is RCE?

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

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.