CVE-2022-28810 in zohocorp manageengine adselfservice plus
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
Zoho ManageEngine ADSelfService Plus before build 6122 allows a remote authenticated administrator to execute arbitrary operating OS commands as SYSTEM via the policy custom script feature. Due to the use of a default administrator password, attackers may be able to abuse this functionality with minimal effort. Additionally, a remote and partially authenticated attacker may be able to inject arbitrary commands into the custom script due to an unsanitized password field.
Affected software: zohocorp manageengine adselfservice plus
Scores
- CVSS: 6.8 (medium)
- EPSS: 70.97% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2023-03-07
- Published: 2022-04-18
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade ManageEngine ADSelfService Plus to build 6122 and change the default admin password (CVE-2022-28810)
Patch or upgrade. Build 6122 stops accepting custom scripts through the web console (only VBScript/PowerShell files in <install>\Scripts) and passes passwords encoded as string literals, which closes the command injection. Changing the default admin password and reviewing the post-action scripts removes the authenticated abuse path and any planted command.
Applies to: ManageEngine ADSelfService Plus builds 6121 and below (fixed in build 6122, released 9 April 2022)
- Log in to the ADSelfService Plus web console and read the build number (top-right Help / About). Builds 6121 and below are affected.
- Back up the installation folder (default C:\ManageEngine\ADSelfService Plus) and the database.
- Download the service pack for build 6122 or later from the ManageEngine ADSelfService Plus service pack page.
- Stop the ADSelfService Plus service, run bin\UpdateManager.bat, apply the .ppm service pack, then start the service again.
- Confirm the build now shows 6122 or later.
- Change the built-in 'admin' account password (default: admin) and enable MFA for admin console logins.
- Review Configuration > Self Service > Policy Configuration > Advanced > Password Sync (post-action custom scripts) for every policy and remove any command you did not put there (cmd.exe, curl, powershell one-liners).
- Move legitimate scripts into <install>\Scripts as .vbs or .ps1 files, following the vendor's post-upgrade custom script guidelines.
- If you found unknown commands, treat the server as compromised: reset AD passwords that were changed through ADSelfService Plus since the script was added and investigate the host.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.