Networking-Forums.com

Professional Discussions => Vendor Advisories => Topic started by: Netwörkheäd on September 16, 2021, 06:09:44 PM

Title: US-CERT- AA21-259A: APT Actors Exploiting Newly Identified Vulnerability in ManageEngine ADSelfService Plus
Post by: Netwörkheäd on September 16, 2021, 06:09:44 PM
AA21-259A: APT Actors Exploiting Newly Identified Vulnerability in ManageEngine ADSelfService Plus

Original release date: September 16, 2021

Summary

This Joint Cybersecurity Advisory uses the MITRE Adversarial Tactics, Techniques, and Common Knowledge (ATT&CK®) framework, Version 8. See the ATT&CK for Enterprise for  referenced threat actor tactics and for techniques.



This joint advisory is the result of analytic efforts between the Federal Bureau of Investigation (FBI), United States Coast Guard Cyber Command (CGCYBER), and the Cybersecurity and Infrastructure Security Agency (CISA) to highlight the cyber threat associated with active exploitation of a newly identified vulnerability (CVE-2021-40539) in ManageEngine ADSelfService Plus—a self-service password management and single sign-on solution.



CVE-2021-40539, rated critical by the Common Vulnerability Scoring System (CVSS), is an authentication bypass vulnerability affecting representational state transfer (REST) application programming interface (API) URLs that could enable remote code execution. The FBI, CISA, and CGCYBER assess that advanced persistent threat (APT) cyber actors are likely among those exploiting the vulnerability. The exploitation of ManageEngine ADSelfService Plus poses a serious risk to critical infrastructure companies, U.S.-cleared defense contractors, academic institutions, and other entities that use the software. Successful exploitation of the vulnerability allows an attacker to place webshells, which enable the adversary to conduct post-exploitation activities, such as compromising administrator credentials, conducting lateral movement, and exfiltrating registry hives and Active Directory files.



Zoho ManageEngine ADSelfService Plus build 6114, which Zoho released on September 6, 2021, fixes CVE-2021-40539. FBI, CISA, and CGCYBER strongly urge users and administrators to update to ADSelfService Plus build 6114. Additionally, FBI, CISA, and CGCYBER strongly urge organizations ensure ADSelfService Plus is not directly accessible from the internet.



The FBI, CISA, and CGCYBER have reports of malicious cyber actors using exploits against CVE-2021-40539 to gain access [T1190] to ManageEngine ADSelfService Plus, as early as August 2021. The actors have been observed using various tactics, techniques, and procedures (TTPs), including:





The FBI, CISA, and CGCYBER are proactively investigating and responding to this malicious cyber activity.





Sharing technical and/or qualitative information with the FBI, CISA, and CGCYBER helps empower and amplify our capabilities as federal partners to collect and share intelligence and engage with victims while working to unmask and hold accountable, those conducting malicious cyber activities. See the Contact section below for details.



Click here for a PDF version of this report.



Click here for indicators of compromise (IOCs) in STIX format.


Technical Details

Successful compromise of ManageEngine ADSelfService Plus, via exploitation of CVE-2021-40539, allows the attacker to upload a .zip file containing a JavaServer Pages (JSP) webshell masquerading as an x509 certificate: service.cer. Subsequent requests are then made to different API endpoints to further exploit the victim's system.



After the initial exploitation, the JSP webshell is accessible at /help/admin-guide/Reports/ReportGenerate.jsp. The attacker then attempts to move laterally using Windows Management Instrumentation (WMI), gain access to a domain controller, dump NTDS.dit and SECURITY/SYSTEM registry hives, and then, from there, continues the compromised access.



Confirming a successful compromise of ManageEngine ADSelfService Plus may be difficult—the attackers run clean-up scripts designed to remove traces of the initial point of compromise and hide any relationship between exploitation of the vulnerability and the webshell.



Targeted Sectors



APT cyber actors have targeted academic institutions, defense contractors, and critical infrastructure entities in multiple industry sectors—including transportation, IT, manufacturing, communications, logistics, and finance. Illicitly obtained access and information may disrupt company operations and subvert U.S. research in multiple sectors.



Indicators of Compromise



Hashes:



068d1b3813489e41116867729504c40019ff2b1fe32aab4716d429780e666324

49a6f77d380512b274baff4f78783f54cb962e2a8a5e238a453058a351fcfbba



File paths:



C:\ManageEngine\ADSelfService Plus\webapps\adssp\help\admin-guide\reports\ReportGenerate.jsp

C:\ManageEngine\ADSelfService Plus\webapps\adssp\html\promotion\adap.jsp

C:\ManageEngine\ADSelfService Plus\work\Catalina\localhost\ROOT\org\apache\jsp\help

C:\ManageEngine\ADSelfService Plus\jre\bin\SelfSe~1.key (filename varies with an epoch timestamp of creation, extension may vary as well)

C:\ManageEngine\ADSelfService Plus\webapps\adssp\Certificates\SelfService.csr

C:\ManageEngine\ADSelfService Plus\bin\service.cer

C:\Users\Public\custom.txt

C:\Users\Public\custom.bat

C:\ManageEngine\ADSelfService Plus\work\Catalina\localhost\ROOT\org\apache\jsp\help (including subdirectories and contained files)



Webshell URL Paths:



/help/admin-guide/Reports/ReportGenerate.jsp



/html/promotion/adap.jsp



Check log files located at C:\ManageEngine\ADSelfService Plus\logs for evidence of successful exploitation of the ADSelfService Plus vulnerability:





TTPs:





Yara Rules:



rule ReportGenerate_jsp {

   strings:

      $s1 = "decrypt(fpath)"

      $s2 = "decrypt(fcontext)"

      $s3 = "decrypt(commandEnc)"

      $s4 = "upload failed!"

      $s5 = "sevck"

      $s6 = "newid"

   condition:

      filesize < 15KB and 4 of them

}


 



rule EncryptJSP {

   strings:

      $s1 = "AEScrypt"

      $s2 = "AES/CBC/PKCS5Padding"

      $s3 = "SecretKeySpec"

      $s4 = "FileOutputStream"

      $s5 = "getParameter"

      $s6 = "new ProcessBuilder"

      $s7 = "new BufferedReader"

      $s8 = "readLine()"

   condition:

      filesize < 15KB and 6 of them

}

Mitigations

Organizations that identify any activity related to ManageEngine ADSelfService Plus indicators of compromise within their networks should take action immediately.



Zoho ManageEngine ADSelfService Plus build 6114, which Zoho released on September 6, 2021, fixes CVE-2021-40539. FBI, CISA, and CGCYBER strongly urge users and administrators to update to ADSelfService Plus build 6114. Additionally, FBI, CISA, and CGCYBER strongly urge organizations ensure ADSelfService Plus is not directly accessible from the internet.



Additionally, FBI, CISA, and CGCYBER strongly recommend domain-wide password resets and double Kerberos Ticket Granting Ticket (TGT) password resets if any indication is found that the NTDS.dit file was compromised.



Actions for Affected Organizations



Immediately report as an incident to CISA or the FBI (refer to Contact Information section below) the existence of any of the following:




Contact Information

Recipients of this report are encouraged to contribute any additional information that they may have related to this threat.



For any questions related to this report or to report an intrusion and request resources for incident response or technical assistance, please contact:




           

Revisions





           

This product is provided subject to this Notification and this Privacy & Use policy.



Source: AA21-259A: APT Actors Exploiting Newly Identified Vulnerability in ManageEngine ADSelfService Plus (https://us-cert.cisa.gov/ncas/alerts/aa21-259a)