NFS, Samba, Network Shares
NFS Shares
If you can write to a writable NFS export thatβs mounted on the serverβs root (e.g.,/home
), you can place an SSH key in /mnt/root/.ssh/authorized_keys
.
Samba / CIFS
If noperm
is set or the share is writable by user, you can:
If a root-owned service executes myscript.sh
from /mnt
, you gain root.