
POC for CVE-2022-47966 affecting multiple ManageEngine products
POC for CVE-2022-47966 affecting the following ManageEngine products:
This specific POC only works on products utilizing Apache Santuario (xmlsec) <= 1.4.1 such as:
Other products may perform additional checks on the SAML response. Modifying this POC to work on products that perform additional checks involves:
A technical root cause analysis of the vulnerability can be found on our blog: https://www.horizon3.ai/manageengine-cve-2022-47966-technical-deep-dive
Khoadha of Viettel Security documents his original research of this vulnerability and how it can be exploited across many versions of xmlsec: https://blog.viettelcybersecurity.com/saml-show-stopper/
For analyzing ManageEngine logs for indicators of compromise check out our IOC blog: https://www.horizon3.ai/manageengine-cve-2022-47966-iocs/
This POC abuses the pre-authentication remote code execution vulnerability to run a command with Java's Runtime.exec method.
For Active Directory related products, such as ADManager, an issuer argument is required:
root@kali:~# python3 ./CVE-2022-47966.py --url https://10.0.40.90:8443/samlLogin/<guid> --issuer https://sts.windows.net/<guid>/ --command notepad.exe
For other products, a URL is all that is required:
root@kali:~# python3 ./CVE-2022-47966.py --url https://10.0.40.64:8080/SamlResponseServlet --command notepad.exe
Update to the latest version of the affected product.
This software has been created purely for the purposes of academic research and for the development of effective defensive techniques, and is not intended to be used to attack systems except where explicitly authorized. Project maintainers are not responsible or liable for misuse of the software. Use responsibly.