Skip to content
XXE Write-up Advanced

CVE-2022-28219: Unauthenticated XXE to RCE and Domain Compromise in ManageEngine ADAudit Plus

ADAudit Plus contained an unauthenticated blind XXE in an agent event endpoint and an unsafe deserialisation endpoint that together allowed remote code execution. An attacker could upload a Java payload via XXE and trigger it through the deserialisation endpoint, and could also capture NTLM hashes for relay.

Naveen Sunkavally Follow

Published on horizon3.ai

CVE-2022-28219 is an unauthenticated remote code execution vulnerability affecting Zoho ManageEngine ADAudit Plus, a compliance tool used by enterprises to monitor changes to Active Directory. The vulnerability comprises several issues: untrusted Java deserialization, path traversal, and a blind XML External Entities…

Naveen Sunkavally, on horizon3.ai

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 application used an unsafe default XML parser that resolves external entities and exposed a deserialisation endpoint from a third-party library without proper input sanitisation or authentication.

Impact

An unauthenticated attacker could execute code remotely and, if the application ran with privileged domain credentials, could compromise domain administrator accounts; the XXE could also capture NTLM hashes for relay.

What the attacker needed

Network access to the ADAudit Plus instance; Knowledge of the monitored Windows domain name; Java 8u051 runtime for file upload via XXE

The fix

The vulnerability was fixed in build 7060 by removing the /cewolf endpoint, using a secure DocumentBuilderFactory, and requiring agent authentication.

How it was found

  1. Generate a Java payload using the CommonsBeanutils1 gadget.
  2. Use the XXE vulnerability to upload the payload via a blocking server.
  3. Use the XXE vulnerability to locate the uploaded file path via FTP exfiltration.
  4. Use the /cewolf endpoint to deserialise the uploaded file and execute the command.

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 chain of bugs in a tool that monitors Active Directory. One bug let an attacker make the server fetch and save a file from the attacker's machine (XXE), and another bug let the attacker make the server run that file as code. Together they allowed an unauthenticated attacker to run commands on the server.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

More by Naveen Sunkavally

View all

5 more disclosed reports, best first.

More from Zoho

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.