
OpenPLC 3 WebServer Esecuzione remota di codice autenticata
OpenPLC 3 WebServer Autenticato Esecuzione Remota di Codice.
La presenza di Command Injection in Open PLC Webserver v3 consente a un attaccante remoto di eseguire codice arbitrario sfruttando il componente "Hardware Layer Code Box" presente nella pagina "/hardware" dell'applicazione. Testato solo sulla macchina Wifinetictwo.htb di hackthebox.
usage: openplc_exploit.py [-h] [--usage] --ip ADDR --port PORT --target URL -U USER -P PASSWORD
[--payload-program PAYLOAD_PROGRAM]
options:
-h, --help show this help message and exit
--usage show usage message
--ip ADDR ip address for the reverse connection
--port PORT port number to the reverse connection
--target URL target url. Example: http://localhost:8080
-U USER, --username USER
username to log int to openplc web server
-P PASSWORD, --password PASSWORD
password to log in to openplc web server
--payload-program PAYLOAD_PROGRAM
structured text openplc format to send to /upload-program