111 - NFS
Mount remote share
Enumerate shared folders
Mount folder
Exploits
Gain ownership of folders
Navigate to the mounted folder and obtain the UID of the file owner. Then create a new user on your machine with the same UID, unmount the remote folder, switch to the new user and mount again. This will allow you to ignore access control on the folders since NFS check for permissions client-side
NFS no_root_squash
On local machine
Write a SUID executable to the remote share (copy /bin/sh or compile your own executable then chmod +s
the payload)
On target
Navigate to the shared folder and execute the payload, if /bin/bash was used, remember to invoke it with -p switch or the SUID bit will be dropped
Last updated