Documentation Index
Fetch the complete documentation index at: https://docs.bytejmp.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
NFS (Network File System) shares configured withno_root_squash allow remote root users to create files as root on the share. If the share is mounted on the target, any SUID file created will execute as root.
Enumerate NFS Shares
From Target
From Attacker
Look For
no_root_squash = remote root keeps root privileges on share.
Exploit
Step 1 — Mount Share on Attacker (as root)
Step 2 — Create SUID Binary
Step 3 — Execute on Target
Alternative — Copy SUID bash
Alternative — Write SSH Key
root_squash vs no_root_squash
| Setting | Behavior |
|---|---|
root_squash (default) | Remote root mapped to nfsnobody — cannot create SUID |
no_root_squash | Remote root stays root — full control |
no_all_squash | Non-root users keep their UID |