How to identify and combat unrestricted file upload, path traversal and broken authentication vulnerabilities in ADManager Plus

How to identify and combat unrestricted file upload, path traversal and broken authentication vulnerabilities in ADManager Plus

ADManager Plus builds have been reported to suffer unrestricted file upload, path traversal and broken authentication vulnerabilities, leading to potential unauthenticated remote code execution. For more information on these vulnerabilities and their respective CVE IDs, please refer to our ADManager Plus 7111 release notes here. This article explains these issues and the steps to follow to secure your ADManager Plus instance.

What is the issue?

Unrestricted file upload and path traversal vulnerabilities in ManageEngine ADManager Plus allow unauthenticated remote code execution by an attacker. As a result, an attacker can execute any code of their choice on a remote machine with administrator/system privileges, without authentication.

Whom does it affect?

All users using ADManager Plus versions below 7111.

What is the severity level of this vulnerability?

This is a critical vulnerability.

How to prevent my instance from getting compromised?

To prevent your ADManager Plus installation from getting compromised, you can either upgrade the product to the latest build, which we strongly recommend, or follow the mitigation steps.

Option 1: Update your ADManager Plus:

To update your ADManager Plus instance, download the service pack from this page and follow the instructions given on the page to install the new service pack.

Option 2: Follow these Mitigation steps:

Step 1: Disable SAML Authentication. To do this, login to your ADManager Plus console and go to Delegation → Configuration → Logon Settings → Single Sign On. Disable the 'Enable Single Sign-on with Active Directory' option and click Save.

Step 2: Stop ADManager Plus. 

Step 3: Take a backup of web.xml from ADManager Plus\webapps\adsm\WEB-INF.

Step 4: Add the below snippet in web.xml before </web-app>

<security-constraint>
<web-resource-collection>
<url-pattern>/WC/*</url-pattern>
<url-pattern>/RestAPI/SmartCard/*</url-pattern>
<url-pattern>/ADMPSmartCardConfig.do</url-pattern>
<url-pattern>/RestAPI/WC/SmartCard/*</url-pattern>
<url-pattern>/SmartCardConfig.do</url-pattern>
<url-pattern>/RestAPI/WC/NotificationTemplate/attachFiles/*</url-pattern>
<url-pattern>/ModifyUserPhoto.do</url-pattern>
<url-pattern>/RestAPI/WC/PasswordExpiryNotification/*</url-pattern>
<url-pattern>/RestAPI/WC/Personalize/*</url-pattern>
<url-pattern>/RestAPI/WC/License/*</url-pattern>
<url-pattern>/ChangeDBAPI.do</url-pattern>
<url-pattern>/servlet/ProductConfig/*</url-pattern>
<url-pattern>*.jsp</url-pattern>
</web-resource-collection>
<auth-constraint />
</security-constraint>

Step 5: Start ADManager Plus.

The above mitigation steps might impact these functionalities in your instance: 
  1. Smart card configuration (Smart card authentication feature will function normally).
  2. Bulk modification of photos.
  3. Scheduler notifications in the Microsoft 365 tab.
  4. Few integration configurations.

If you need any additional information or if you face any issues in performing the recommended steps, please write to us at support@admanagerplus.com. You can also call us at +1-844-245-1108 (toll-free).


                  New to ADSelfService Plus?

                    • Related Articles

                    • ADManager Plus security vulnerabilities

                      Read about ManageEngine's security policies, which extend to all its products. Note: ADManager Plus releases backend patches to address any major vulnerabilities. You will be able to view these updates under the bell icon in the product console. This ...
                    • How to identify and address authentication bypass vulnerability in ADManager Plus

                      An authentication bypass vulnerability affecting the REST API URLs in ManageEngine ADManager Plus has been addressed recently. This article explains the vulnerability and the steps to fix it. What is the issue? An authentication bypass vulnerability ...
                    • How to enable SSO in ADManager Plus

                      ADManager Plus offers a built-in option to configure Active-Directory-based SSO to access or log in to it. This SSO option supports both NTLMv2- and SAML-based authentication. Steps to configure SSO to log in to ADManager Plus Click the Delegation ...
                    • How to identify and defend your ADManager Plus installation from the user enumeration without authentication vulnerability

                      ADManager Plus contains a user enumeration without authentication vulnerability, which was reported by Patrick, a vulnerability researcher. This article explains the steps you can take to prevent malicious users from exploiting this vulnerability in ...
                    • How to move ADManager Plus to a new folder

                      Objective: To move the ADManager Plus installation folder from its current location to a new location. Important: Check the build number of your current ADManager Plus installation (Log into ADManager Plus > Click the License link located in the ...