Move as another logged-on user by stealing their token
On a multi-user host, duplicating the primary token of another session lets you act as that user, including a domain admin who logged in.
On a multi-user host, duplicating the primary token of another session lets you act as that user, including a domain admin who logged in.
A service you can reconfigure, or one whose unquoted path runs through a writable directory, executes your binary as its account on restart.
A service account holding SeImpersonatePrivilege can coerce a SYSTEM authentication and duplicate its token for a full-privilege shell.
A shell or binary holding cap_sys_ptrace can attach to a root-owned process and hijack it to run your shellcode as root.
If sudoers preserves LD_PRELOAD or LD_LIBRARY_PATH, any command you are allowed to run as root loads your shared object first.
When an export is shared with no_root_squash, a SUID binary you create as root on your own box stays root-owned on the server.
A root-run service with a writable unit file or a relative ExecStart lets an unprivileged user execute code as root on the next start.
A mounted or reachable docker.sock is root on the host, because you can start a container that bind-mounts the host filesystem.
A memory-corruption flaw in the SUID pkexec turns any local account into root on unpatched polkit installations.
A binary carrying cap_setuid or cap_dac_read_search grants root-equivalent power without any SUID bit, and defenders rarely audit it.