# Exploitation

> Mount NFS shares and exploit UID trust to access files and credentials

- **URL:** https://hackindex.io/services/nfs/exploitation
- **Service:** [NFS](https://hackindex.io/services/nfs.md)
- **Tags:** initial-access, execution
- **Published:** 2026-03-11
- **Updated:** 2026-03-29

NFS exploitation abuses weak export controls to access files you should not reach. When exports use broad host restrictions (like *), anyone on the network can mount the share and browse its contents.

UID spoofing is the core technique. Create a local user with the same UID as the target file owner, mount the export, and the NFS server grants access based on the matching ID alone. SSH keys, configuration files, and application data become directly accessible.

## Guides

- [NFS UID Spoofing – Reading Files Without Root](https://hackindex.io/services/nfs/exploitation/uid-spoofing.md)
- [NFS World-Readable Share – File and Credential Extraction](https://hackindex.io/services/nfs/exploitation/world-readable-share-exploitation.md)
