Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Authentication Bypass and RCE in Zoho ManageEngine ADSelfService Plus

IdentifiersCVE-2021-40539CWE-288

CVE-2021-40539 is a critical vulnerability in Zoho ManageEngine ADSelfService Plus affecting builds up to 6113. The flaw resides in REST API URL handling, where an error in URL normalization before validation allows specially crafted requests such as variants of REST API paths to bypass the product’s authentication security filter. By reaching protected REST API endpoints without valid authentication, an attacker can trigger follow-on actions that result in arbitrary command execution and remote code execution. Public reporting and vendor/advisory material indicate exploitation involved uploading a ZIP containing a JSP webshell disguised as an x509 certificate file (for example, service.cer), after which the webshell could be accessed from application paths such as /help/admin-guide/Reports/ReportGenerate.jsp. The issue was fixed in build 6114.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits unauthenticated remote compromise of vulnerable ADSelfService Plus servers. Reported post-exploitation activity includes arbitrary command execution, JSP webshell deployment for persistence, malware installation, credential dumping, theft of NTDS.dit and registry hives, use of WMI for remote execution, account manipulation, lateral movement, data exfiltration, and effective takeover of the affected host. Multiple government advisories state the vulnerability has been actively exploited in the wild, including by APT actors, against critical infrastructure and other enterprise targets.

Mitigation

If you can’t patch tonight, do this now.

Until patching and validation are complete, ensure ADSelfService Plus is not directly accessible from the internet, with particular priority on internet-facing instances. Restrict exposure of the application and its REST API endpoints through network controls, segmentation, and access limitation. Hunt for known indicators of compromise in logs and filesystem paths identified by the vendor and government advisories, including suspicious REST API path patterns and JSP/webshell artifacts. Centralized logging, EDR/SIEM monitoring, and review for post-exploitation behaviors such as WMI execution, credential dumping, and archive/exfiltration activity are recommended.

Remediation

Patch, then assume compromise.

Upgrade Zoho ManageEngine ADSelfService Plus to build 6114 or later, as build 6114 is the vendor-provided fix for CVE-2021-40539. For potentially compromised systems, follow incident response guidance: isolate affected hosts, review relevant access/server/application logs for exploitation artifacts, inspect for known malicious files and webshells, back up necessary data, rebuild or reinstall the product on clean systems, restore from trusted backups, and investigate for unauthorized access, compromised Active Directory accounts, credential theft, and lateral movement. If domain compromise is suspected, perform domain-wide password resets and the appropriate Kerberos ticket resets per authoritative IR guidance.
PUBLIC EXPLOITS

Exploits

2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).

VALID 2 / 3 TOTALView more in app
CVE-2021-40539MaturityPoCVerified exploit

This repository contains a Python exploit script (exploit.py) targeting CVE-2021-40539, a critical authentication bypass and RCE vulnerability in ManageEngine ADSelfService Plus. The exploit works by uploading a JSP webshell and/or a malicious Java class to the vulnerable server via the '/./RestAPI/LogonCustomization' endpoint, then triggering remote code execution through the '/./RestAPI/Connection' endpoint. The script can optionally verify if the target is vulnerable before exploitation. If successful, the attacker gains a webshell at '/help/admin-guide/test.jsp', allowing arbitrary command execution. The repository is structured with a single exploit script and a README referencing external exploitation details. The exploit is operational, providing a working payload and automated exploitation steps.

synacktivDisclosed Nov 3, 2021pythonnetwork
CVE-2021-40539MaturityPoCVerified exploit

This repository contains a Python exploit script (CVE-2021-40539.py) targeting Zoho ManageEngine ADSelfService Plus (version 6113 and earlier) for CVE-2021-40539, a critical authentication bypass and remote code execution vulnerability. The script allows both single-target and batch exploitation. It first checks if the target is vulnerable by sending a crafted POST request to the '/./RestAPI/LogonCustomization' endpoint. If vulnerable, it uploads a JSP webshell and a Java class file (either user-supplied or a default payload) to the same endpoint. The exploit then triggers RCE by sending a POST request to '/./RestAPI/Connection', leveraging the uploaded Java class. Finally, it verifies the webshell at '/help/admin-guide/test.jsp', which can be used to execute arbitrary commands on the target system. The repository also includes a README.md with usage instructions and background on the vulnerability. The exploit is operational, providing a working RCE chain with persistent access via the webshell.

lpyydxsDisclosed Oct 12, 2024pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
ZohocorpManageengine Adselfservice Plusapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence7

Every observed campaign linking this CVE to a named adversary.

Associated malware5

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity

Community discussion across Reddit, Mastodon, and other social sources.