Facebook Google Plus Twitter LinkedIn YouTube RSS Menu Search Resource - BlogResource - WebinarResource - ReportResource - Eventicons_066 icons_067icons_068icons_069icons_070

ManageEngine ADManager Plus Build 7111 Multiple Vulnerabilities

High

Synopsis

Tenable discovered multiple vulnerabilities in ADMP build 7111.

1) PasswordExpiryNotification Post-Authentication File Upload RCE (CVE-2021-20130)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

An authenticated remote attacker can send a POST message to /RestAPI/WC/PasswordExpiryNotification to upload a JSP file to <ADMP_DIR>\webapps\adsm\ompemberapp\PasswordExpiryNotification\ on the remote ADMP host. The file created is in the form of <unixtime_milliseconds>_<filename>, where <unixtime_miliseconds> is the file creation time in milliseconds since the Unix Epoch, and <filename> is the file name specified in the HTTP upload message.

The attacker can then execute the JSP code by fetching the JSP file at URL /ompemberapp/PasswordExpiryNotification/<unixtime_miliseconds>_<filename> (i.e., 1630429499081_webshell.jsp).

The JSP code can create an administrative Windows user on the ADMP host. Once having admin access on the ADMP host, the attacker can obtain the domain credentials used to add a Windows domain in the ADMP web UI. This domain account tends to have high privileges (i.e., a domain administrator) as it is used to perform Active Directory operations such as creating user accounts and resetting user passwords.

One way the attacker can obtain the domain credentials is to attach a debugger to the ADMP Java process and break into the ADsOpenObject function in ACTIVEDS.dll:

ADsOpenObject(path:'LDAP://kbrdc02.l2k8.local:389/DC=l2k8,DC=local',username:'l2k8.local\administrator',password:'<REDACTED>',...)

2) Personalize Post-Authentication File Upload RCE (CVE-2021-20131)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

An authenticated remote attacker can send a POST message to /RestAPI/WC/Personalize to upload a malicious executable to <ADMP_DIR>\bin\ on the remote ADMP host and replace the existing admanager.exe file with attacker-controlled data. When ADMP restarts, <ADMP_DIR>\bin\admanager.exe executes with attacker-controlled code.

As with the previous vulnerability, the attacker-controlled code can create an administrative Windows user on the ADMP host and the attacker can obtain the credentials of high-privileged domain accounts (i.e., domain administrator).

Solution

Upgrade to Build 7113 or newer.

Disclosure Timeline

09/10/2021 - Tenable discloses via vendor's bug bounty portal.
09/11/2021 - Vendor acknowledges.
09/18/2021 - Vendor states that fixes have been completed. Awaiting release details.
10/12/2021 - Tenable requests status update.
10/12/2021 - Vendor states that fixes have been released.

All information within TRA advisories is provided “as is”, without warranty of any kind, including the implied warranties of merchantability and fitness for a particular purpose, and with no guarantee of completeness, accuracy, or timeliness. Individuals and organizations are responsible for assessing the impact of any actual or potential security vulnerability.

Tenable takes product security very seriously. If you believe you have found a vulnerability in one of our products, we ask that you please work with us to quickly resolve it in order to protect customers. Tenable believes in responding quickly to such reports, maintaining communication with researchers, and providing a solution in short order.

For more details on submitting vulnerability information, please see our Vulnerability Reporting Guidelines page.

If you have questions or corrections about this advisory, please email [email protected]

Risk Information

Tenable Advisory ID: TRA-2021-43
Credit:
Tenable Research
CVSSv3 Base / Temporal Score:
8.8 / 7.9
CVSSv3 Vector:
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Products:
ManageEngine ADManager Plus Build 7111 and prior
Risk Factor:
High

Advisory Timeline

October 13, 2021 - Initial release.