# Privilege Escalation

> Abuse NFS no_root_squash to plant SUID binaries or SSH keys

- **URL:** https://hackindex.io/services/nfs/privilege-escalation
- **Service:** [NFS](https://hackindex.io/services/nfs.md)
- **Tags:** elevation, permissions
- **Published:** 2026-02-13
- **Updated:** 2026-03-29

NFS privilege escalation exploits no_root_squash, the most dangerous NFS misconfiguration. When an export disables root squashing, a local root user on the client is treated as root on the server's filesystem.

With root access to the mounted share, plant a SUID binary or modify system files like /etc/passwd. The target system then executes the binary with root privileges, giving full control through a file written over NFS.

## Guides

- [NFS no_root_squash Abuse – SUID Shell and SSH Key Injection](https://hackindex.io/services/nfs/privilege-escalation/no-root-squash-abuse.md)
