What is NFS?
Network File System lets UNIX/Linux systems share directories and files over a network.
Common security issues
World-readable exports.
No root squashing.
Sensitive files exposed.
Easy lateral movement with mounts.
Default ports
2049
Enumeration
NFS export discovery, content listing, and share mounting guides
NFS Export Discovery
NFS Share Content Enumeration
Vulnerability Discovery
Find open NFS exports, weak configs, and no_root_squash misconfigs
NFS no_root_squash Detection
Identifies misconfigured NFS exports with no_root_squash enabled, allowing remote root privilege escalation via mounted shares.
NFS World-Readable Exports
Identifies misconfigured NFS exports allowing unauthenticated access, covering enumeration with showmount, mounting shares, and extracting sensitive data from world-readable exports.
Exploitation
Mount NFS shares and exploit UID trust to access files and credentials
NFS UID Spoofing – Reading Files Without Root
NFS World-Readable Share – File and Credential Extraction
Privilege Escalation
Abuse NFS no_root_squash to plant SUID binaries or SSH keys