An in-scope Linux server exports an NFS share writable by any client with no_root_squash, and the tester has only a low-privileged shell on it. What is the BEST way to gain root?
Show the answer
Correct answerC. Mount the export from a tester host as root, plant a SUID root binary, then run it from the shell
AWhy not this: ARP poisoning intercepts traffic but NFS does not send root's password, and it ignores the misconfigured export.
BWhy not this: Root squashing maps root to an unprivileged user and is not enabled here, and a normal user cannot create root-owned files.
CWhy this is right: no_root_squash preserves client root, so a SUID root file placed on the export runs as root on the server.
DWhy not this: The tester has only a low-privileged shell and cannot read the shadow file, and cracking ignores the export flaw.
With no_root_squash, root on the client keeps root identity on the export, so a SUID root file placed there runs as root on the server. Root squashing is the opposite setting: it would map root to an unprivileged user.